[jboss-user] [jBPM] - Re: How to use a POJO as Gateway condition
Gary Struthers
do-not-reply at jboss.com
Thu Aug 4 20:29:37 EDT 2011
Gary Struthers [http://community.jboss.org/people/GaryS] created the discussion
"Re: How to use a POJO as Gateway condition"
To view the discussion, visit: http://community.jboss.org/message/619540#619540
--------------------------------------------------------------
The example projects only show drools, xPath, and cron as language attribute in conditionExpressions. I tried the above and it didn't work. IIRC it failed in KnowledgeBuilder.
Then I tried
<conditionExpression xsi:type="tFormalExpression" language=" http://www.jboss.org/drools/rule http://www.jboss.org/drools/rule">PIvars(applicationReady == true);</conditionExpression>
The Gateway ignored it.
This ugly one does work but if there is a clean way that works I'd like to know.
<conditionExpression xsi:type="tFormalExpression">
org.drools.runtime.process.WorkflowProcessInstance process = (org.drools.runtime.process.WorkflowProcessInstance)kcontext.getProcessInstance();
edu.berkeley.ouae.workflow.dto.FreshmanReadPIvars vars = process.getVariable("vars");
return vars.isApplicationReady() == false;</conditionExpression>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/619540#619540]
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/20110804/ecac9c89/attachment.html
More information about the jboss-user
mailing list