We have a Spring Boot Server application with the standard rest endpoints defined in Controller classes that call actions in Service classes.
When we invoke a method createProcessInstance to CREATE PROCESS A we
- retrieve the latest process definition via a call that looks like
ProcessDefinition latestProcessDefinition = repositoryService.createProcessDefinitionQuery()
and then eventually we create the new instance by
ProcessInstance processInstance =
finally we retrieve the task (1st task in the new process) by
TaskInfoQueryWrapper taskInfoQueryWrapper = new TaskInfoQueryWrapper(taskService.createTaskQuery());
TaskInfo taskInfo =
This all works perfectly well when we call it from any point within our java services initiated via endpoint posts
when we call
the same method
from the same service to start a new PROCESS A
from a Delegate java class that is executing as part of a different deployed PROCESS B
the new PROESS A instance is created as expected, but there is no first task associated with it, the TaskInfo comes back from the query as null
Is there some sort of restriction or unexpected behavior when we trigger a new PROCESS A from a delegate invoked by PROCESS B ???