Complete the following steps to create a Command task:
In the Workflow Designer or the Task Developer, click Task > Create.
Select Command Task for the task type.
Enter a name for the Command task. Click Create. Then click Done.
Double-click the Command task in the workspace to open the Edit Tasks dialog box.
In the Commands tab, click the Add button to add a command.
In the Name field, enter a name for the new command.
In the Command field, click the Edit button to open the Command Editor.
Enter the command you want to run. Enter one command in the Command Editor. You can use service, service process, workflow, and worklet variables in the command.
Click OK to close the Command Editor.
Repeat steps
4 to
9 to add more commands in the task.
Optionally, click the General tab in the Edit Tasks dialog to assign resources to the Command task.
Click OK.
If you specify non-reusable shell commands for a session, you can promote the non-reusable shell commands to a reusable Command task.