In Visio Workflow Designer you can create Automatic Activities. An Automatic Workflow Activity is an activity performed by the Content Manager that requires no user input.
Before you begin
Before starting task, make sure that you have your Automatic Activity implementation available, either as C# code to paste or as an External Activity, implemented as a .NET assembly and uploaded as a Template Building Block.
Procedure
- In Microsoft Visio, add an Automatic Activity or Automatic Decision Activity to a new or existing Workflow Process Definition and specify its fields. To specify C# code directly in this dialog, set Script Type to C#; alternatively, to refer to your External Activity class, set Script Type to External Activity.
- Select Edit Script.
A Script Editor dialog opens.
- Do one of the following:
To add C# code directly, enter code directly in the dialog.
To refer to an External Activity class, type the following:
AssemblyTbbId = "tcm:1-2-2048"
Type = "MyWorkflow.MyActivityClass"
replacing tcm:1-2-2-048 with the Content Manager URI or WebDAV URL of your Template Building Block, and replacing MyWorkflow.MyActivityClass with the name of your class.
- Select OK to close the editor.
- Select OK again to close the Automatic Activity Properties window.
- Select Save Tridion Sites Workflow Process Definition.
Results
You have created an automatic activity.