JBoss Community

Re: jbpm 5.2 support for XOR gateway and complex gateway.

created by Prashanth Karnam in jBPM - View the full discussion

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);
contentData = new ContentData();


taskClient.complete(userTaskDetails.getTaskId(), userid, contentData,


the jbpm maps the result to the result of the process variable ? or we need to define this explicitly somewhere in the bpmn ??



Prashanth Karnam

Reply to this message by going to Community

Start a new discussion in jBPM at Community