This content has been marked as final.
Show 2 replies
-
1. Re: jbpm4 arg
xdirewolfx Jul 17, 2009 2:43 AM (in response to xdirewolfx)anyone got an answer for this
-
2. Re: jbpm4 arg
efabbri Jul 17, 2009 5:35 AM (in response to xdirewolfx)I found this solution.
http://docs.jboss.com/jbpm/v4.0/userguide/html_single/#java
If you watch the source file of the test class (you can find it in the java examples) you will see that you can pass to the execution a Map<String, Object>. In this map you can insert an object as:Map<String, Object> attributes = new HashMap<String, Object>(); attributes.put("myObject", new Object()); executionService.startProcessById(processId, attributes);
and now everytime your process call #{myObject} it return your "new Object()" that you have passed in initialization.
Does is this what you want? See the examples!
Emanuele Fabbri