-
1. Re: How to pass a variable to a Seam action in a Jbpm proces
jim.barrows Aug 30, 2007 4:33 PM (in response to chawax)I'm not sure you can. While it is possible to do so where SEAM JSTL is used, I'm not sure that jBPM uses the SEAM version.
There is this an annoying lack of integration between SEAM and jBPM. I think this is one of those near miss points. -
2. Re: How to pass a variable to a Seam action in a Jbpm proces
pmuir Aug 30, 2007 6:40 PM (in response to chawax)This should be possible in Seam CVS.
-
3. Re: How to pass a variable to a Seam action in a Jbpm proces
chawax Aug 31, 2007 3:23 AM (in response to chawax)It's a shame :( So I will have to do it another way for the moment.
One more question on integration between JBPM and SEAM : I put @CreateProcess annotation on a method in a Seam component to create a process instance. How can I do (if possible) to set a process instance variable from my Seam component ? Is the process created before or after the method is executed ? -
4. Re: How to pass a variable to a Seam action in a Jbpm proces
damianharvey Aug 31, 2007 4:23 AM (in response to chawax)If you use @CreateProcess the process will be started when the method finishes assuming a non-null outcome. You can outject a variable into the Business Process context like this:
@Out(scope=ScopeType.BUSINESS_PROCESS) Mybean myBean;
If you set the value of myBean in the method that is annotated with @CreateProcess it will be available to you in the jBPM process via normal EL eg.#{myBean.myValue}
Cheers, Damian. -
5. Re: How to pass a variable to a Seam action in a Jbpm proces
chawax Aug 31, 2007 11:05 AM (in response to chawax)It works, thanks a lot.