Hi all,
This is more visual aid when reviewing Test Scenarios than a must have but,
is it possible to "hide" a rule that has fired from the list of fired rules.
If you look at the below Rule "JobMapRule", once it has fired and populated
the incomnigData Map it is no longer necessary to know if the rule fired or
not. Its purely a rule to setup up Fact details.
The below rule will appear in every Test Scenario but it is not necessary to
be seen, is there a way to "remove" it from the "fired rules" list
that
appears. Just trying to make this as simple as possible for the business
user so they don't see things that they don't need to worry about when
creating to Test Scenarios
rule "JobMapRule"
dialect "mvel"
when
job : Job( )
then
Map incomingData = new HashMap();
incomingData.put('workType', job.workType);
incomingData.put('status', job.status);
insert(incomingData)
retract(job)
end
Cheers
Mark
--
View this message in context:
http://drools.46999.n3.nabble.com/Hide-a-Rule-that-has-fired-tp4028051.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.