Customize workflow notifications: Edit the built-in notification activity
You must edit the built-in NotifyGroup workflow activity, so that it is associated with the custom workflow activity you implement in the Customize workflow notifications: Implement custom workflow activity step.
PREREQUISITES:
You have downloaded the DeafultWorkflows.zip file from the Sitefinity CMS GitHub repository.
Unzip the DeafultWorkflows.zip file and copy the built-in workflow file for content items - AnyContentApprovalWorkflow.xamlx. After you add this file to the project with the custom activity and build the project, you see the custom activity added to the workflow toolbox in Visual Studio.
In this example, you will change the one step approval workflow. To do so:
- In Visual Studio, open the context menu of your Telerik.Sitefinity.Samples.Workflow project and click Add » New Folder. Name the folder Workflows.
- Open the Install SDK folder and navigate to Content » Resources.
- Extract the contents of the DefaultWorkflows.zip file.
- Copy the AnyContentApprovalWorkflow.xamlx file and paste it in the newly created Workflows folder in Visual Studio.
- In the context menu of the copied file, click View Designer.
- Navigate to WorkflowService » Content Approval » One Level Approval » Draft item workflow.
- Edit the built-in NotifyGroup activity by changing its name to CustomNotifyGroup, so that it matches to the name of the custom workflow activity. Your workflow must look similar to:
.png?sfvrsn=0)
- Save your changes.
- In the context menu of the AnyContentApprovalWorkflow.xamlx file, click Properties » Build Action » Embedded Resource.
- Build your project.
You now must Customize workflow notifications: Register the custom workflow in the backend.