3 Replies Latest reply on Jun 19, 2006 9:21 AM by Vamsi Poondla

    Seam JBPM @CreateProcess Question

    Vamsi Poondla Newbie

      I have a Seam Component with three methods with @CreateProcess annotation

      I also have a method initiateProcess() in the same class.

      My idea is to have a switch statement in initiateProcess() and start the process based on the user choice like below.

      public void inititateProcess(){
       System.out.println("choice is - " + choice);
       switch (choice) {
       case 1:
       createProcess1();
       break;
       case 2:
       createProcess2();
       break;
       case 3:
       createProcess3();
       break;
       default:
       break;
       }
      


      In my JSF code, if I invoke this initiateProcess, the JBPM process is not kicking off

      This is not working
      <h:commandButton value="Start Process" action="#{startProcess.inititateProcess}" />
      


      But if I call one of the processes directly like below, it is working fine.

      <h:commandButton value="Start Process" action="#{startProcess.createProcess1}" />
      


      Anything I am missing here? Please help.

      thanks
      VamC