-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Running test-workflow from test-harness #9
Comments
Hi, Here is the snippet for the second dynamic task in the main workflow: {
"name": "dyntask",
"taskReferenceName": "task_2",
"inputParameters": {
"taskToExecute": "workflow.input.task2Name"
},
"type": "DYNAMIC",
"dynamicTaskNameParam": "taskToExecute"
} The taskToExecute comes as workflow input - so when you start the workflow pass the following input if you want the task_2 to be say "task_3": {
"task2Name": "task_3"
} Conductor will use the input as the name of the task and schedule task_3. |
Thanks for your help - it now works. I have some other follow-up questions where I would like to ask you for some more help & information. What is the typical "API call interaction" when running a workflow? What I have figured out so far is this
=> Is this right so far..? Can you possibly share with me a state machine diagram? Some other questions came up during my tests:
Many thanks for your help. |
The state machine you described is correct. I will publish the state machine diagram on the documentation soon. To answer your questions in the order:
|
Thanks a lot. I am looking forward to taking a look at the state machine. |
Added FAILED_WITH_TERMINAL_ERROR status to show up in the workflow graph
Added FAILED_WITH_TERMINAL_ERROR status to show up in the workflow graph
Added WorkFlow refresh functionality
I could compile conductor with gradle and also could start "main_workflow" with the Swagger UI.
I also could change the state of task_1 to "in progress" and "complete" but have problems to start dyn-task_2 ... not sure what API calls I need to start task_2 to feed parameter "taskToExecute".
Is there a way to execute the tasks of "main_workflow" task-after-task and see the API call interactions to learn more about its internal workings? There are some test classes within test-harness like "End2EndTests.java", but I couldn't figure out whether these classes will do the job and I couldn't even figure out how to start those test classes.
I appreciate any help.
The text was updated successfully, but these errors were encountered: