[jboss-user] [jBPM] - Re: Variables Scoped only to the Task

Michael Wohlfart do-not-reply at jboss.com
Fri Sep 17 09:01:45 EDT 2010


Michael Wohlfart [http://community.jboss.org/people/mwohlf] created the discussion

"Re: Variables Scoped only to the Task"

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

--------------------------------------------------------------
You might be able to do this programmatically if you try this:

EnvironmentImpl environment = processEngine.openEnvironment();
try {
  task.createVariable("variableName", "variableContent", null, false);
  transitionChoiceVariable = task.getVariableObject("variableName");
  transitionChoiceVariable.setExecution(null);
} finally {
  environment.close();
}

this should create a variable that is no longer linked to the execution but still to the task
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100917/303c3dab/attachment.html 


More information about the jboss-user mailing list