Huisheng Xu [http://community.jboss.org/people/rebody] replied to the discussion

"JBPM4.3 Variable History"

To view the discussion, visit: http://community.jboss.org/message/535773#535773

--------------------------------------------------------------
Hi Khaled,
  If you want to store the created variable, you should put the codes into 
transaction. So Whether you open a Environment or put all of function into a 
Command.

  open environment:

EnvironmentImpl environment = ((EnvironmentFactory) 
processEngine).openEnvironment();
try {
  // create variable
} finally {
    environment.close();
}

  using Command:

processEngine.execute(new Command() {
    public Object execute(Environment env) {
        // create variable
    }
});

  Furthermore, if you let spring to manage the transaction for jBPM4, you 
needn't do like above.

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/535773#535773]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to