jBPM process does not continue after calling TaskService.completeTask(..) from another process
Issue
We are using the BPMS 6.1.0 libraries in a Spring application deployed on Tomcat, and face the following problem:
- We have two processes.
- The first process is started and enters a wait state at a Human Task.
- Another process starts and calls TaskService.completeTask for the task instance of the first process. This happens in a new thread.
- The second process is then completed.
- In the first process, the task is only marked as "Completed" in BPMS..TASK table, but the process is not moved forward.
It seems that all the information related to Process1 is not loaded.
Additional information:
This problem only shows up if we configure the Runtime Manager type as PER_PROCESS_INSTANCE.
If we change it to SINGLETON, then the execution of the two processes works as expected.
Environment
- Red Hat JBoss BPM Suite
- 6.1.0
- Spring application
- Tomcat installation
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
