Senhaji Mustapha [
http://community.jboss.org/people/m.senhaji] created the discussion
"Dealing & working with drl (drules)"
To view the discussion, visit:
http://community.jboss.org/message/613700#613700
--------------------------------------------------------------
Hello everybody,
I would like to work with *rules-decision* but unfortunatly I don't know how to
deploy(use) drl file.
This is my jpdl.
+<process name="commerce" xmlns="
http://jbpm.org/4.4/jpdl
http://jbpm.org/4.4/jpdl">+
+<swimlane candidate-groups="DC" name="DC"/>+
+<start g="356,7,80,40">+
+ <transition g="-84,-16" name="createOpportunity"
to="commerce_rules"/>+
+</start>+
+<rules-decision name="commerce_rules" g="663,374,48,48" >+
+<transition g="379,397:49,13" name="CCI" to="SubProcess :
CCI"/>+
+ <transition g="-22,11" name="CCP" to="SubProcess
: Clientele Privee"/>+
+ <transition g="954,399:5,-15" name="CCPT"
to="SubProcess : CCPT"/>+
+</rules-decision>+
+......+
And this is my *drl* file.
global java.lang.String decision;
global org.jbpm.jpdl.internal.rules.Outcome outcome;
rule "CCP"
when
eval(decision == "CCP")
then
outcome.set("CCP");
end
If anybody knows the solution, please write it right down. Thank's for help
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/613700#613700]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]