Defining a New Rule Domain
Procedure
For example, the following shows a rule domain with 10 conditions and 7 actions:
<RuleModel OrganizationID="234" RulesetName="Product Edit Approval" RuleModeName="None" Priority="0" RuleID="-1" RuleType="Standard"> <Description><![CDATA[Conditions and actions defined by the "Product Edit Approval" builder can be used to create various rule templates. Rules created from the templates define list of participants involved during the approval process.</Description> <Imports> <Import Import="com.tibco.mdm.integration.ruleengine.IAttributable;"/> </Imports> <Conditions> <ImportConditions> <ImportCondition ImportCondition="CONDITION_DefaultRuleCheck.xml" default="Y"/> <ImportCondition ImportCondition="CONDITION_Organization.xml" default="Y"/> <ImportCondition ImportCondition="CONDITION_MasterCatalog-CatalogAction.xml" default="Y"/> <ImportCondition ImportCondition="CONDITION_Action.xml" default="Y"/> <ImportCondition ImportCondition="CONDITION_CatalogProductUOM.xml"/> <ImportCondition ImportCondition="CONDITION_CatalogProductSupplierID.xml"/> <ImportCondition ImportCondition="CONDITION_CatalogChangeCode.xml"/> <ImportCondition ImportCondition="CONDITION_DocumentTypeProd.xml"/> <ImportCondition ImportCondition="CONDITION_ConvState.xml" default="Y"/> <ImportCondition ImportCondition="CONDITION_DeploymentMode.xml" default="Y" /> </ImportConditions> </Conditions> <Actions> <ImportActions> <ImportAction ImportAction="ACTION_DefaultRuleCheck.xml" default="Y"/> <ImportAction ImportAction="ACTION_RoleParticipant.xml"/> <ImportAction ImportAction="ACTION_RoleType.xml"/> <ImportAction ImportAction="ACTION_MemberParticipant.xml" default="Y"/> <ImportAction ImportAction="ACTION_EnterpriseMemberParticipant.xml"/> <ImportAction ImportAction="ACTION_MemberType.xml" default="Y"/> <ImportAction ImportAction="ACTION_ConvState.xml" default="Y"/> </ImportActions> </Actions> </RuleModel>
Note: The following is a mandatory condition: <ImportCondition ImportCondition="CONDITION_DefaultRuleCheck.xml" default="Y"/>
Do not remove this condition while defining a new business process domain, else an error occurs.
Copyright © Cloud Software Group, Inc. All rights reserved.