The Send task “Send “layer full” message” is executed but the message flow doesn’t initiate a new message to the lower pool.
What do I miss?
I also created a java class “InstantiateProcessByMessageDelegate”
import org.camunda.bpm.engine.RuntimeService;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
public class InstantiateProcessByMessageDelegate implements JavaDelegate {
public void execute(DelegateExecution execution) throws Exception {
RuntimeService runtimeService = execution.getProcessEngineServices().getRuntimeService();
runtimeService.startProcessInstanceByMessage("layer_reached");
}
}
For my understanding, could you please explain me the logic of mapping?
In my model above, should I create an Input/Output parameter in the Receive “Send ‘layer full’ message” task and then the same parameters in “place layer” task in the other pool?
In the message events, I don’t understand where to specify the payload you mention.
The point is that I don’t want to terminate the process instance there as it’s a part of a call activity. Also from the second pool I want to return back to to upper pool.
I know that it may look odd but I think it solves my business case.
Just keep in mind that a process instance will not be terminated by an ordinary none end event. This only removes a token from the instance, the instance itself will be running until all tokens have been removed.