Build a custom task in Deployment Manager
Attached document shows how we implemented for our client a custom email notification sent by Deployment Manager. We utilized custom task feature in Deployment Manager.
The design & implementation captured in the document (with screenshots) can be useful for any Pega client who wants to send out a tailored email from DM pipeline. This custom email content is client specific and different from the email content sent by OOTB DM notifications. The document will also demonstrate how to create a new custom DM task in general.
**See the attached document
Additional notes
In addition, the following information may be helpful in implementing a new custom DM task.
- How to map the input parameters entered in the Deployment Manager task to the parameter page of the RunTask activity: .taskInfo.inputParameters(1).value
- "Call ResolveTaskSuccess" activity parameters; this activity returns Success to Deployment Manager to complete the task and continue to next task in the pipeline. Without this, DM may hang.
- TaskID = TaskPage.taskID
- OrchestratorURL = D_GetDeploymentManagerSettings.orchestratorURL
- LogContent = "Sent an email notification successfully"
- "Call ResolveTaskWithError" activity parameters; this activity returns Error to Deployment Manager to complete the task with error and wait for a user action (e.g. abort, skip, retry).
- TaskID = TaskPage.taskID
- OrchestratorURL = D_GetDeploymentManagerSettings.orchestratorURL
- LogContent = ""** Unexpected error occurred while sending a roll email"