-
Activate the following triggers in MQL:
promote bus 'eService Trigger Program Parameters' 'TaskStateAssignDeliverablePromoteAction' 'autoPromoteTask';
promote bus 'eService Trigger Program Parameters' 'TaskStateActiveDeliverablePromoteAction' 'autoPromoteTask';
promote bus 'eService Trigger Program Parameters' 'TaskStateReviewDeliverablePromoteAction' 'autoPromoteTask';
promote bus 'eService Trigger Program Parameters' 'TaskStateCompleteDeliverablePromoteAction' 'autoPromoteTask'; For information about MQL, see the MQL
Concepts. For more information about triggers, see the Collaboration and
Approvals Administration Guide.
- To configure auto-promote functionality for a new deliverable type, follow these steps:
You need the creator context in MQL for running the commands. In the examples below, the type "Sketch" is used to promote the Task to Complete when the Sketch gets promoted to Complete. - Determine the policy and state mapping information of the Deliverable type:
print relationship 'Task Deliverable' select totype[];
print type Sketch select policy;
print policy 'ECR Supporting Document' select state.name state.trigger; The output, which is used to determine the trigger name to update for the context deliverable type, is shown below: state[Preliminary].name = Preliminary
state[Complete].name = Complete
state[Preliminary].trigger = PromoteAction:emxTriggerManager(PolicyECRSupportingDocumentStatePreliminaryPromoteAction) - Add the correct trigger event to the Deliverable policy state being promoted from.
This command needs to include any existing triggers currently defined. The trigger events to use with this functionality include: - TaskStateAssignDeliverablePromoteAction
- TaskStateActiveDeliverablePromoteAction
- TaskStateReviewDeliverablePromoteAction
- TaskStateCompleteDeliverablePromoteAction
The MQL would look something like this: modify policy 'Sketch'
state Preliminary
add trigger promote action emxTriggerManager input
"PolicyECRSupportingDocumentStatePreliminaryPromoteAction
TaskStateCompleteDeliverablePromoteAction";
|