StepFunctionsStartExecution: Cannot pass Task Token using sfn.TaskInput.fromText #34189
Labels
@aws-cdk/aws-stepfunctions
Related to AWS StepFunctions
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
I'm not able to write more complex jsonata exression that allows me to pass the TaskToken merged with other values within a same object for the input of the
StepFunctionsStartExecution
when the jsonata static method is used.aws-cdk/packages/aws-cdk-lib/aws-stepfunctions/lib/fields.ts
Line 521 in 0ad4f3b
If I use
it works, but if try to use instead:
it doesn't.
And I needed to use sfn.TaskInput.fromText because I needed to use
$merge
method from jsonata to construct a more complex object.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
I expected this to work:
Current Behavior
I get an error:
Error: Task Token is required in
inputfor callback. Use JsonPath.taskToken to set the token.
Reproduction Steps
Try to use the
StepFunctionsStartExecution
task to call another step function with waitForTaskToken integration pattern and use sfn.TaskInput.fromText instead of fromObject to pass the Task Token.Possible Solution
Revisit the regex pattern.
Additional Information/Context
No response
CDK CLI Version
2.190.0
Framework Version
No response
Node.js Version
22.14.0
OS
MacOS
Language
TypeScript
Language Version
5.8.3
Other information
No response
The text was updated successfully, but these errors were encountered: