JBoss Rules integration with OSWorkflow is performed by a Condition
and a FunctionProvider. Condition
gives the rules the flow of control of the process; the FunctionProvider
simply executes rules at a designated moment.
The RulesCondition
is like any other OSWorkflow Condition
and implements com.opensymphony.workflow.Condition
. The helper object RuleConditionalResult
is available in every rule set executed through the Condition
to mark the return value of the Condition
predicate. The return value of the condition is the RuleConditionalResult.getResult()
result.
Also, the transientVars
and arguments map contents are passed directly to the JBoss Rules WorkingMemory
.
The only mandatory parameter of the Condition
is the ruleName
. This parameter indicates which DRL file from the classpath will be loaded and executed.
You can append other parameters in the invocation, which will be available as objects inside the WorkingMemory
. Remember that variable...