1 Reply Latest reply on Feb 20, 2006 9:42 AM by Nakul Rajurkar

    problem with custom fork handler..

    Nakul Rajurkar Newbie

      Hi All,

      I am trying to create a custom fork handler using following process definition:

      <process-definition name="CFH2">
       <start-state name="start">
       <transition name="toFork" to="fork1"/>
       </start-state>
      <fork name="fork1">
       <delegation class="com.handler.CustomForkHandler">
       <transition name="toJoin" to="join1"></transition>
      </fork>
      <join name="join1">
       <transition name="toEnd" to="end1"></transition>
      </join>
      <end-state name="end1"></end-state>
      </process-definition>


      My Custom Fork Handler looks like :
      public class CustomForkHandler implements ForkHandler {
       public void fork(ForkContext forkContext) throws ExecutionException {
       System.out.println("Inside Custom Fork Handler!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
       }
      }



      I just wanted to check if my custom fork handler is getting called. But some how its not getting called. Can anyone throw any light on this??

      Regards,
      Nakul