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"; }
DOH! Flushing occurs at the end of the conversation.... since i want mutiple JBPM processes in my conversation i will need to flush manually....
.. am i right..... or am i being a tit? (of the feathered variety.... not the bouncy type)