[jboss-user] [jBPM] - Re: How to set a process to use drl rule just by using the drools-guvnor, web editor, and jbpm console?
Thomas Setiabudi
do-not-reply at jboss.com
Tue Oct 9 22:33:03 EDT 2012
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion
"Re: How to set a process to use drl rule just by using the drools-guvnor, web editor, and jbpm console?"
To view the discussion, visit: https://community.jboss.org/message/763994#763994
--------------------------------------------------------------
Seems like I have to create a Technical Rule (DRL) inside the drools-guvnor,
by doing it this way, i can specify my import line.
And I manage to get my rule works without calling fireAllRules, maybe this is caused by my architecture where I use JBPM as service by managing the process via jbpm-console REST service instead of embedding the JBPM engine in my own application.
my test rule that finally works looks like this:
import org.drools.runtime.process.WorkflowProcessInstance
rule "AlterName"
ruleflow-group "ChangeName"
when
processInstance : WorkflowProcessInstance()
eval(1 < 18);
then
processInstance.setVariable("name", "NewName");
end
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/763994#763994]
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/20121009/baff9165/attachment.html
More information about the jboss-user
mailing list