Would love to write a blog entry about this, get more involved with jboss and 
jbpm is my ultimate aim. I need to know what I'm talking about first! ;) 
Unfortunately... with work pressures etc its not always possible. We'll see... 

Taking the "async" out it works fine, I can see the nodes and assert which one 
they should be in. When the custom nodes run in async, the unit test runs to 
completion quicker than the actual workflow completes (or vice versa not sure). 
So when I do:


  | Execution execution = processInstance.findActiveExecutionIn("validate one 
request");
  |     assertNotNull(execution ); //FAILS
  |     String executionId = execution .getId();
  |     executionService.signalExecutionById(executionId);
  | 

The assertion fails. In my custom class I have the following line 
  | public void execute(ActivityExecution execution {
  |  //my code....
  |   execution.waitForSignal(); 
  | }
  | 
  | 
  | public void signal(ActivityExecution execution, 
  |             String signalName, 
  |             Map<String, ?> parameters) {
  |         execution.take(signalName);
  |     }
  | 
  |  

and they all implement ExternalActivityBehaviour. I have no idea what state 
these are in now.


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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254772
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to