[jboss-user] [jBPM Users] - Re: workflow design about wait states

mmusaji do-not-reply at jboss.com
Fri Sep 11 07:02:38 EDT 2009

My classes in the custom nodes do very little. I don't understand how these would have an impact on wait state which is after they execute.

  | public class ValidateOneRequest implements ActivityBehaviour {
  |     private static final long serialVersionUID = 1L;
  |     ExperianDetails experianDetails;
  |     public void execute(ActivityExecution execution) throws Exception {
  |         Thread.sleep(2000);//simulate a delay in processing.
  |         OneDetails oneDetails= (OneDetails)execution.getVariable("oneDetails");
  |         oneDetails = update(oneDetails); //update the object in some way (change a name)
  |         execution.setVariable("oneDetails", oneDetails);
  |     }
  | }

I'm working on a unit test, appreciate your feedback so far. I tried to do this before but because of the fork the unit test would always fail as the unit test thread would continue and fork would not be complete.

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

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

More information about the jboss-user mailing list