[jboss-user] [jBPM] - Re: jbpm 5.2 support for XOR gateway and complex gateway.
Prashanth Karnam
do-not-reply at jboss.com
Wed Jan 11 02:57:28 EST 2012
Prashanth Karnam [http://community.jboss.org/people/pras_karnam] created the discussion
"Re: jbpm 5.2 support for XOR gateway and complex gateway."
To view the discussion, visit: http://community.jboss.org/message/645856#645856
--------------------------------------------------------------
Hi All,
I have one doubt can you please help me out. I am declaring a process variable as result:Boolean in the bpmn. now when in one of step before the gateway i am setting this process variable as true in the code and passing it through taskclient.complete.
| | | | | | | result = Boolean.TRUE; |
| | | | | | } else { |
| | | | | | | result = Boolean.FALSE; |
| | | | | | } |
| | | | | } |
| | | | } |
| | | | ContentData contentData = null; |
| | | | ByteArrayOutputStream bos = new ByteArrayOutputStream(); |
| | | | ObjectOutputStream out; |
| | | | out = new ObjectOutputStream(bos); |
| | | | out.writeObject(result); |
| | | | out.close(); |
| | | | contentData = new ContentData(); |
| | | | contentData.setContent(bos.toByteArray()); |
| | | | contentData.setAccessType(AccessType.Inline); |
| | | | taskClient.complete(userTaskDetails.getTaskId(), userid, contentData, |
| | | | | | bTaskOperationRespHandler); |
| | | | bTaskOperationRespHandler.waitTillDone(1000); |
the jbpm maps the result to the result of the process variable ? or we need to define this explicitly somewhere in the bpmn ??
regards
Prashanth Karnam
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/645856#645856]
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/20120111/7b85d84a/attachment-0001.html
More information about the jboss-user
mailing list