3 Replies Latest reply on Feb 21, 2006 11:59 PM by Nakul Rajurkar

    Still am not able to write 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. Someone please help??!!
      Regards,
      Nakul