Hello everyone,
I'm writing you because I'm facing some difficulties trying to add childworkflows into the main one.
So, the idea is to generate n childs into one precise step inside the parent workflow and to make all these childs refer to a specific class.
The problem is that when I do this into the parent workflow:
public NextAction components(StateExecution execution) {
for (int i = 0; i < execution.getVariable(COMPONENTS, Integer.class); i++) {
WorkflowInstance childWorkflow = execution.workflowInstanceBuilder()
.setType(ComponentChildWorkflow.TYPE)
.build();
execution.addChildWorkflows(childWorkflow);
}
return NextAction.moveToState(State.poll, "Next iteration");
}
It always says: No workflow definition found for type [componentChildWorkflow]
How can I start n childworkflows to run them
asynchronously?
Thank you very much,
Luca