[jboss-user] [jBPM] - Re: how to setVariable
Juliano Dantas
do-not-reply at jboss.com
Mon Nov 19 11:38:06 EST 2012
Juliano Dantas [https://community.jboss.org/people/jdantas9] created the discussion
"Re: how to setVariable"
To view the discussion, visit: https://community.jboss.org/message/777216#777216
--------------------------------------------------------------
I think this can help you:
public void setVariable(Long processInstanceId, String nome, Object value) {
*TransactionManager transactionManager = jBpmConfiguration.getTransactionManager();*
*try {*
* transactionManager.begin();*
RuleFlowProcessInstance processInstance = (RuleFlowProcessInstance) JBpmConfiguration.getInstance().getKnowledgeSession().getProcessInstance(processInstanceId);
processInstance.setVariable(nome, value);
*transactionManager.commit();*
* } catch (Exception e) {*
* logger.error(e.getMessage());*
* }*
}
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/777216#777216]
Start a new discussion in jBPM at Community
[https://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/20121119/5bbe05d4/attachment-0001.html
More information about the jboss-user
mailing list