You have just violated #4
I have been working with JBOSS for a few days now. I cannot say that I am very familiar
with it yet.
JBOSS rules have been used to validate data in our system. It works fine as long as we
care only if a product met any one condition.
However, there is now a new requirement which says that the users would like to know all
the conditions which the product met setting it to a particular state.
To explain with an example:
Rule 1 - set status to PENDING if product is HIKING == y
Rule 2 - set status to ERROR if product has High Risk Flag == y
If a product is only HIKING, then this rule works well. If a product is only HISK RISK
then this rule works. However, if a product meets both HIKING and HISK RISK then we would
see only one or the other. Code is as given below:
WorkingMemory workingMemory = null;
workingMemory = getClassValidationRuleBase().newWorkingMemory();
String result = classificationValidationData.getResultValue()
How can get the output such that I get a list of all(multiple) the conditions that were
met by a product setting it to a particular state.
Do you have an example which can show how this can be done.
Thanks for your time and help.