- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2017 12:32 PM
I would like to implement a simple business rule task:
<businessRuleTask id="businessruletask1" name="Business rule task" activiti:ruleVariablesInput="${input1}, ${input2}" activiti:rules="DecideWS" activiti:resultVariable="choice"></businessRuleTask>
where input1 and input2 are process variables that I set before starting an instance.
The rule is the following:
rule "DecideWS"
when
input1 = 0.8
then
1
end
When I try to deploy it I get the error:
[5,9]: [ERR 102] Line 5:9 mismatched input '=' in rule "DecideWS"
[0,0]: Parser returned a null Package
How can I implement such a rule?
Let's suppose that input1 and input2 are of type ArrayList<Double>, how can I tell to Drools to get an element inside them?
Thanks in advance.
- Labels:
-
Alfresco Process Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2017 06:56 AM
I solved by creating an other class that describes an input object for the drools engine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2017 06:56 AM
I solved by creating an other class that describes an input object for the drools engine.
