[rules-users] Check a set of objects for a value?
Patrick
patrick.kelley at anixter.com
Wed Feb 13 08:42:59 EST 2013
Hello,
This is my current drool rule:
rule "RULE1"
when
context : StaticTaskContext(
taskToPerform.name == "TRANSFER",
deallocatedOrder == true,
currentTask != null
)
then
context.setRuleResult("STAYPUT");
end
What I need to do is check to see if the predecessor task is of a certain
value.
ie:
currentTask.getPredecessorTaskChains().iterate().next().getPredecessorTask.getTaskType()
== "VALUE"
The predecessorTaskChain is declared as:
private Set<TaskChain> predecessorTaskChains;
How can I go through all the task chains on the current task?
Thanks
--
View this message in context: http://drools.46999.n3.nabble.com/Check-a-set-of-objects-for-a-value-tp4022277.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list