[jboss-user] [JBoss jBPM] - Re: jbpm4 arg

efabbri do-not-reply at jboss.com
Fri Jul 17 05:35:01 EDT 2009


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

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244266#4244266

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244266



More information about the jboss-user mailing list