[jboss-user] [jBPM] - JBPM4.3 Variable History

Huisheng Xu do-not-reply at jboss.com
Tue Apr 6 08:44:57 EDT 2010

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 {

  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

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100406/09814fc8/attachment.html 

More information about the jboss-user mailing list