1 Reply Latest reply on Sep 27, 2007 7:56 AM by harpritt k

    Multiple Buisiness processes in a conversation

    harpritt k Novice

      Hi everyone

      i have the follwing simplified version of my code.... its giving me a serious headache with regards to creating multiple JBPM process in my convo.

      I read that the process is created as soon as the @CreateProcess method returns with out exception or null. but i was wondering if there was any reliance on the conversation.

      all i want to do is start a convo with (newTicket()), allow multiple Bussiness processes to be started one after the other in the same conversation (submitTicketAndRepeat()) and then end with the creation of a final bussiness process with submitTicket()......

      any help is appreciated.

      @Begin(join = true)
       public String newTicket() {
       try {
       return "newdoc";
       }
      
      
       @End
       @CreateProcess(definition = "changerequestprocess")
       public String submitTicket() {
       submitTicketMainProcess();
       return "home";
       }
      
      
       @CreateProcess(definition = "changerequestprocess")
       public String submitTicketAndRepeat() {
       submitTicketMainProcess();
      
       // reset convo ojects ready for newdoc view
       return "newdoc";
       }