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"

Building a custom email notification in Deployment Manager.docx (695 KB)

Hello @Will Cho good morning, is there any way I can contact you? I’m currently developing a requirement similar to this and I’m having some issues preventing me from continuing. Thank you.

Hi @FabianN16613093

We encourage our users to share their issues in here so that it may help other users in the future and/or someone may already know how to help you and can share that as well.

Do you mind writing a Question? You can tag Will in your question and reference this post for him to take a look as well.

Thank you!