Red Hat Bugzilla – Bug 866531
Process with group tasks and parallel gateways fails to finish with EE6 bundle
Last modified: 2016-07-31 21:07:33 EDT
Created attachment 627510 [details]
Description of problem:
My environment is BRMS 5.3.1 ER3 ee6 deployable bundle, EAP 6.0, PostgreSQL 9.1.6.
I have a simple process with a sequence like this: parallel gateway -> 2 user tasks assigned to group -> parallel gateway. When running the process, it never gets past the second gateway. Looking into the database, I can see that both tasks were finished, the diagram shows the marker on the second gateway, but that's where it ends, it stops at the gateway.
I encountered this in the Console (not sure yet if the problem is only there).
The problem seems to be exclusively with multiple group tasks going to one parallel gateway. I have not seen this with script tasks nor with human tasks assigned to user. XOR gateway also does not cause this.
Version-Release number of selected component (if applicable):
I have seen this first in BRMS 5.3.1 ER1, could not test it sooner than ER3.
Steps to Reproduce:
I'm using group called user.
1. get the provided repo and import it to Guvnor
2. build the package and log into Console
3. start the test process (called test), go to group tasks, claim both and complete them.
4. go to process overview and look at the instance diagram - refresh the process if you want.
The instance is still running, marker is on the second gateway.
The instance was finished.
The repository export contains 2 more processes - scriptTaskGateway and onegrouptask.
The first one shows that if you use script tasks instead of group user tasks, it works.
The second shows that it also works well if there is only one group task and the other is script task.
Created attachment 629335 [details]
I also find this:
012-10-18 14:19:04,196 [FATAL] Uncaught Exception:
(TypeError): this$static is undefined
in the console, in messages, when I claim the group task. I am not sure if it's related though.
Unfortunately I can't reproduce it with pattached repository on this bundle: http://jawa05.englab.brq.redhat.com/candidate/BRMS-5.3.1-ER3/brms-p-5.3.1.ER3-deployable-ee6.zip
Changes done to run it:
1. define postgresql module with jdbc driver
2. define data source for postgresql in standalone.xml
3. define brms security realm in standalone
4. define org.jboss.netty dependency in MANIFEST.MF for business-central-server.war and jbpm-human-task.war
5. configure persistence.xml for business-central-server.war and jbpm-human-task.war to use postgresql dialect
Attached is a server log file from single test of executing test process, as you can see script task was executed as soon as second task was completed and process instance has finished correctly.
Created attachment 629928 [details]
Server log from a test run
one more configuration that was done: register default user group callback implementation via web.xml of jbm-human-task.war
(In reply to comment #3)
> Changes done to run it:
> 1. define postgresql module with jdbc driver
> 2. define data source for postgresql in standalone.xml
> 3. define brms security realm in standalone
> 4. define org.jboss.netty dependency in MANIFEST.MF for
> business-central-server.war and jbpm-human-task.war
> 5. configure persistence.xml for business-central-server.war and
> jbpm-human-task.war to use postgresql dialect
Could you send me/attach your persistence.xml files? Perhaps even the standalone.xml. Maybe I have something configured wrong, though it seems a bit unlikely with what it is doing..
Created attachment 631579 [details]
configuration set (persistence, standalon and web.xml)
Misconfiguration, solved, closing. Thanks for the help, Maciej.