To develop an External Activity, create a .NET assembly and upload it to a Template Building Block in Content Manager. (This Template Building Block does not need to be used in a Template.)
Procedure
- Develop a class that extends the
Tridion.ContentManager.CoreService.Workflow.ExternalActivity class. (Only directly implement the Tridion.ContentManager.Workflow.IExternalActivity interface if you have a pressing reason to do so).
- Do one of the following:
- To create an External Activity that contains an Automatic Activity implementation, implement the
Execute() method of this class.
- To create an External Activity that contains an Activity expiration implementation, implement the
Expire() method of this class. Note that this code will only run if the Activity has a due date.
- To create a single External Activity that contains implementations of both, implement both methods.
Refer to the Core Service API reference documentation for more details.
- Create a .NET assembly containing your class.
- Access the Content Manager Explorer website.
- Navigate to a Folder in which you want to create the Template Building Block.
- In the Create Ribbon tab, select New Template Building Block.
A dialog opens for your Template Building Block.
- In the General tab, enter a name for the Template Building Block.
- Select the Source tab and from the Template Type dropdown, select .NET Assembly.
A Load from Disk button appears under the dropdown.
- Select Load from Disk and in the Windows file selection dialog that opens, navigate to and select the DLL you want to upload.
- Select Save and Close to commit your changes.