<manual-activity id="1" category="AC1">
...
<task>
...
</task>
<allocation-strategy type="curam express rule"
identifier="Sample Allocation Rules">
<cer-set-mappings primary-class="SampleAllocationClass">
<cer-class-mapping>
<source-attribute wdo-name="TaskCreateDetails"
name="caseID" />
<target-attribute cer-class-name="SampleAllocationClass"
name="caseID" />
</cer-class-mapping>
<cer-class-mapping>
<source-attribute wdo-name="TaskCreateDetails"
name="subject" />
<target-attribute cer-class-name="RuleClassA"
name="subject" />
</cer-class-mapping>
<cer-class-mapping>
<source-attribute wdo-name="ListTaskDetails"
name="employerIDs" />
<target-attribute cer-class-name="RuleClassA"
name="listOfEmployerIDs" />
</cer-class-mapping>
<cer-class-mapping>
<source-attribute wdo-name="ListTaskDetails"
name="concernRoleID" />
<target-attribute cer-class-name="SampleAllocationClass"
name="listConcernRoleIDs" />
</cer-class-mapping>
<cer-class-mapping>
<source-attribute wdo-name="ListTaskDetails"
name="participantIDs" />
<target-attribute cer-class-name="SampleAllocationClass.listRuleClassB.RuleClassB"
name="participantIDs" />
</cer-class-mapping>
</cer-set-mappings>
</allocation-strategy>
<event-wait>
...
</event-wait>
...
</manual-activity>
- cer-set-mappings
- This contains the details of all the mappings for the CER rule set specified in the allocation identifier. The primary-class metadata tag must point to a CER rule class that contains an attribute called targets. This is required as the workflow engine uses an attribute of this name to determine the list of allocation targets for the specified allocation strategy. Mappings must be created for all of the attributes that have been marked as specified in all of the CER rule classes used for the allocation strategy.
- cer-class-mapping
- This contains the details of one mapping between a rule class attribute specified in the CER rule set and it's associated workflow data object attribute. One of these mappings must exist for each CER rule class attribute that has been marked as specified being used in the allocation strategy. The following metadata constitutes a valid mapping:
- source-attribute
- This contains the details of the source attribute in the mapping (i.e. where the data will be provided from at runtime). A source attribute consists of a workflow data object name and it's associated attribute name (see Workflow Data Objects). Attributes of list workflow data objects may also be used here if the mapping being created is related to a CER rule class attribute list type.
- target-attribute
- This contains the details of the target attribute in the mapping (i.e. where the data will be mapped into at runtime). A target attribute consists of a CER class name and it's associated attribute name. Some but not all CER rule class attribute types are supported for use in allocation strategy mappings. The supported types include String, Boolean, Number, Date and DateTime. A list of rule classes may also be specified as well as lists of the base types outlined previously.