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.
This should be possible in Seam CVS.
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 ?
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.
It works, thanks a lot.