Parent Process End state (end-error) not set when child process has exited with same error
state
------------------------------------------------------------------------------------------------
Key: JBPM-2707
URL:
https://jira.jboss.org/jira/browse/JBPM-2707
Project: jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.2
Environment: Eclipse 3.5, Oracle 11g, jBPM 4.2
Reporter: Martin Porter
I have a parent process which invokes a child process (subprocess) with
continue="async". When the child process exits with state 'end-error'
the engine handles this correctly but when I attempt to check the end state of the parent
process the state is returned as 'async' instead of 'end-error'. The
following output from the child termination and the assertion shows the error clearly:-
14:17:28,035 FIN | [HibernateSessionResource] ----- committing hibernate tx 29249852
-------------------------------------------------------
14:17:28,035 FIN | [ExecuteJobCmd] executing job ExecuteActivityMessage[80076]...
14:17:28,038 FIN | [ExecuteActivity] executing activity(Business Service Response
Handler)
14:17:28,040 FIN | [ExecuteJobCmd] executed job ExecuteActivityMessage[80076]
14:17:28,041 FIN | [HibernateSessionResource] ----- committing hibernate tx 19509363
-------------------------------------------------------
14:17:33,030 FIN | [HibernateSessionResource] ----- beginning hibernate tx 3662367
--------------------------------------------------------
14:17:33,033 FIN | [Signal] signalling activity(Invoke Child Process),
signalName=error-fail
14:17:33,035 FIN | [HibernateSessionResource] ----- beginning hibernate tx 7392722
--------------------------------------------------------
14:17:33,036 FIN | [HibernateSessionResource] ----- committing hibernate tx 27645654
-------------------------------------------------------
14:17:33,036 FIN | [ExecuteActivity] executing activity(end-error)
14:17:33,036 FIN | [ExecutionImpl]
execution[org.jbpm.examples.subprocess.usecase.waitstate.parent.jbpmKey--1858395621] ends
with state error
14:17:33,037 FIN | [HibernateSessionResource] ----- beginning hibernate tx 18357747
--------------------------------------------------------
14:17:33,040 FIN | [HibernateSessionResource] ----- committing hibernate tx 9669450
-------------------------------------------------------
14:17:33,051 FIN | [DbSessionImpl] deleting process instance
org.jbpm.examples.subprocess.usecase.waitstate.parent.jbpmKey--1858395621
14:17:33,057 FIN | [HibernateSessionResource] ----- committing hibernate tx 28014118
-------------------------------------------------------
14:17:38,040 FIN | [HibernateSessionResource] ----- beginning hibernate tx 3709218
--------------------------------------------------------
14:17:38,041 FIN | [HibernateSessionResource] ----- committing hibernate tx 32379995
-------------------------------------------------------
14:17:38,060 SEV | [BaseJbpmTestCase]
### EXCEPTION ###########################################
14:17:38,061 SEV | [BaseJbpmTestCase] ASSERTION FAILURE: expected:<[error]> but
was:<[async]>
junit.framework.ComparisonFailure: expected:<[end-error]> but was:<[async]>
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira