[jboss-user] [jBPM Users] - Signaling executions for processes that containt tasks does

LMarinkov do-not-reply at jboss.com
Fri Sep 11 08:08:32 EDT 2009


I wrote some unit tests using jbpm 4.1 and noticed that errors occur when executions containing task are signalled. I decided to check if the unit test SignalExecutionTest.java written by Tom Baeyens works properly with tasks. Regretfully error occurs also with the SignalExecutionTest if tasks are used instead of state!

This is the link to the test on SVN:
http://anonsvn.jboss.org/repos/jbpm/jbpm4/tags/jbpm-4.1/modules/test-db/src/test/java/org/jbpm/test/execution/SignalExecutionTest.java

I modified the process definitions in SignalExecutionTest so tasks are used instead of state:


  | ...
  |     deployJpdlXmlString(
  |       "<process name='Insurance claim' key='ICL'>" +
  |       "  <start>" +
  |       "    <transition to='a' />" +
  |       "  </start>" +
  |       "  <task name='a'>" +
  |       "    <transition to='b' />" +
  |       "  <task>" +
  |       "  <task name='b' />" +
  |       "</process>"
  |     );
  | ...
  |     deployJpdlXmlString(
  |       "<process name='Insurance claim' key='ICL'>" +
  |       "  <start>" +
  |       "    <transition to='a' />" +
  |       "  </start>" +
  |       "  <task name='a'>" +
  |       "    <transition to='b' />" +
  |       "  </task>" +
  |       "  <task name='b' />" +
  |       "</process>"
  |     );
  | ...
  |     deployJpdlXmlString(
  |       "<process name='p'>" +
  |       "  <start>" +
  |       "    <transition to='a' />" +
  |       "  </start>" +
  |       "  <task name='a' />" +
  |       "</process>"
  |     );
  | 

Also the unit test org.jbpm.test.history.AvgDurationTest will not work if one replaces state with task as seen below:


  |     deployJpdlXmlString(
  |       "<process name='Insurance claim' key='ICL'>" +
  |       "  <start>" +
  |       "    <transition to='one' />" +
  |       "  </start>" +
  |       "  <task name='one'>" +
  |       "    <transition to='two' />" +
  |       "  <task>" +
  |       "  <task name='two'>" +
  |       "    <transition to='three' />" +
  |       "  </task>" +
  |       "  <task name='three'>" +
  |       "    <transition to='end' />" +
  |       "  </task>" +
  |       "  <end name='end' />" +
  |       "</process>"
  |     );
  | 



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254732#4254732

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254732



More information about the jboss-user mailing list