How can I have workitem (corresponding to the record getting imported) routed to a particular user or role based on the value of certain attribute in the record coming in?
book
Article ID: KB0088487
calendar_today
Updated On:
Products
Versions
TIBCO Collaborative Information Manager
-
Not Applicable
-
Description
Resolution: How can I have workitem (corresponding to the record getting imported) routed to a particular user or role based on the value of certain attribute in the record coming in?
Environment:
TIBCO Product name and version: TIBCO Collaborative Information Manager 7.x Operating System(s): All Operating Systems
Symptoms:
Not applicable.
Cause:
Not applicable.
Resolution:
Example Scenario: Attribute ATTR1 in the incoming record has a value "abc" but the repository is only expecting a Y or N value. Based on this, I need to route the 'erraneous' record to a particular user (user A) while all other records that confirms or are correct should either go straight into the repository or gets routed to user B for enhancement.
This requirement can be achieved as follows:
1. Create a new condition xml for the attribute say ATTR1 (you can use CONDITION_CatalogProductUOM.xml under $MQ_HOME\config\rules directory as a reference) and add this condition in the Rule Domain NewProductIntroductionEdit.xml in the same directory e.g.:
2. Add this new condition and rule domain to the exisitng enterprise as indicated in CIM Customization Guide, Chapter 8 Customizing Business Processes : Adding New Business Process Domains section.
3. Now create a Business Process Rule (BPR) for "New Record Introduction Edit" with following settings:
If the repository is: <CatalogName> and the ATTR1 of the product is: Y and the workitem state is: Any Then set participent to: <roleName> and set the next workitem state to: Final step
With this BPR, while importing the datasource whenever the value of UOM is found as Y then workitem will be created an assigned to specified role.
Attachments:
None.
References:
None
Issue/Introduction
How can I have workitem (corresponding to the record getting imported) routed to a particular user or role based on the value of certain attribute in the record coming in?