-
1. Re: Dynamic creation of JBPM processes
pmuir Dec 3, 2007 6:12 AM (in response to chawax)@CreateProcess will call businessProcess.createProcess when the method is complete, not before it so you have a slightly different order of events. How about outjecting programatically in the same order seam does it?
-
2. Re: Dynamic creation of JBPM processes
chawax Dec 3, 2007 8:02 AM (in response to chawax)Yes, that's what I try to do. But I don't really know the order Seam does it ... Where could I find this informations ? I hoped to see it in the source code for @CreateProcess annotation, but I couldn't find it ...
-
3. Re: Dynamic creation of JBPM processes
chawax Dec 3, 2007 8:21 AM (in response to chawax)No need to answer, I just found how to do :)
I did it this way :Contexts.getBusinessProcessContext().set("idDemandeAbsence", this.demandeAbsence.getId()); Contexts.getBusinessProcessContext().set("codeMotifAbsence", this.ligneDemandeAbsence.getMotif()); this.businessProcess.createProcess("validationDemandeAbsence");
According to you, is it the state-of-the-art way to do it ? -
4. Re: Dynamic creation of JBPM processes
pmuir Dec 3, 2007 8:47 AM (in response to chawax)Order is determined the order in which the BijectionInterceptor and BusinessProcessInterceptor (bpm interceptor wraps the bijection - so bijection occurs before, as I said/you implemented). This is a correct way to do it, yes.
-
5. Re: Dynamic creation of JBPM processes
chawax Dec 3, 2007 8:51 AM (in response to chawax)So that's perfect. Thanks a lot for your help.