Note:
The Workflow Status Sync and Publication Feedback features can be set up using the same BR in the Simplified Exchange Setup (V2). The business use case of this topic is relevant only to V2.
The following business rules (BRs) are used to synchronize the publication status (accept or reject) using workflow from PIM to Syndication modules. You can configure the following BRs as per your business requirements:
- Approve BR: This business rule is triggered when an item is approved in the PIM module.
wfcomment:= ""; IIF[IsNullOrEmpty["wfcomment"] = false, SetVariable["wfcomment", GetWorkflowComment[]] ,false] AND SendWorkflowFeedbackToVendorPortal["accept",wfcomment]
- Reject BR: This business rule is triggered when an item is rejected in the PIM module.
wfcomment:= ""; IIF[IsNullOrEmpty["wfcomment"] = false, SetVariable["wfcomment", GetWorkflowComment[]] ,false] AND SendWorkflowFeedbackToVendorPortal["reject",wfcomment]
The following table represents the keywords used in the BRs:
Core Entity Keywords | Description | More Information On |
---|---|---|
IsNullOrEmpty | This keyword is used to verify if the attribute values are null or not | IsNullOrEmpty |
SetVariable | This keyword is used to assign values to the variables that are already defined | SetVariable |
GetWorkflowComment | This keyword is used to get the workflow comment from the workflow. | GetWorkflowComment |
SendWorkflowFeedbackToVendorPortal | This keyword is used to send the workflow feedback to the vendor portal. | SendWorkflowFeedbackToVendorPortal |
Note:
The value of wfActions must be accept or reject according to the BR. Do not modify the value.