◷ Reading Time: 1 minute
CallDecisionTable
This is an integration point between different engines and Decision Table definitions. When other rules require calls to a Decision Table they can use this command.
All output parameters of a decision will automatically be copied on the parent context.
Parameters
- contextMode
- Description: Set context behaviour to call to other rules and logic. If set to Shared, the current context will be used for the target rule. Otherwise a new one is created.
- Mandatory: Yes
- Type: String (Shared/New)
Internal Commands
DecisionTableSource
- uri
- Description: Where is the source of the external DecisionTable to be run?
- Mandatory: Yes
- Type: Physical file or RuleSet address
Sample
DecisionTable integrated into a Flow.
<Activity name="ActivityD">
<CallDecisionTable contextMode="New">
<DecisionTableSource uri="AgeTitle.xml" />
<Param name="person" ref="person"/>
</CallDecisionTable>
<Transition name="tr6" to="end"/>
</Activity>
DecisionTable integrated into a Procedure.
<CallDecisionTable contextMode="Shared">
<DecisionTableSource uri="AgeTitle.xml"/>
</CallDecisionTable>