This content has been marked as final.
Show 3 replies
-
1. Re: EntityManager in a decision expression
gavin.king Feb 6, 2006 1:12 AM (in response to amarinis)Just call a method of a Seam component. The Seam component can access the EM.
-
2. Re: EntityManager in a decision expression
amarinis Feb 8, 2006 10:14 PM (in response to amarinis)FYI
I needed to make the component Stateful too.
thanks -
3. Re: EntityManager in a decision expression
js8523 Feb 9, 2006 4:38 AM (in response to amarinis)You will need to have the statefull bean set to session scope to be of any use, else it will no last between jsf and jbpm invocation.
The other way is to use process variables that are outjected on process creation and injected/outjected during the decision node invocation.
use scope=ScopeType.BUSINESS_PROCESS
But make sure everything you try to put in that scope is Serializable.
HTH,
James