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-tp40...
Sent from the Drools: User forum mailing list archive at
Nabble.com.