[jboss-user] [jBPM] - How to use a POJO as Gateway condition

Gary Struthers do-not-reply at jboss.com
Tue Aug 2 20:21:49 EDT 2011


Gary Struthers [http://community.jboss.org/people/GaryS] created the discussion

"How to use a POJO as Gateway condition"

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

--------------------------------------------------------------
I have a POJO as a process variable, "vars". In a diverging Gateway I want to use one of its fields as a condition. This is what I've tried and it seems to work but it's too much Java in a BPMN file. Is this the right way to do it?

    <sequenceFlow id="_12-_13" sourceRef="_12" targetRef="_13" name="valid score" tns:priority="1" >
      <conditionExpression xsi:type="tFormalExpression" >
      org.drools.runtime.process.WorkflowProcessInstance process = (org.drools.runtime.process.WorkflowProcessInstance)kcontext.getProcessInstance();
      x.xx.xxx.workflow.dto.PIvars vars = process.getVariable("vars");
      return vars.isValidScore() == true;</conditionExpression>
    </sequenceFlow>
--------------------------------------------------------------

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

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/20110802/40ffebfa/attachment.html 


More information about the jboss-user mailing list