Workflow | ![]() |
Description | ||
The Workflow data type represents a sequence of tasks and an error handler to run within the Controller task.
Command | ||
| Attribute | Description | Required |
|---|---|---|
| name | The workflow name. | Yes |
Parameters specified as nested elements | ||
errorhandler
A errorhandler type describes a set of actions that should be run if an error occurs during the execution of the task sequence.
tasksequence
A tasksequence type contains the set of Ant tasks to run in sequence for the command workflow.
Examples | ||
Shows Workflow data type used in the controller Ant task.
<controller> <execute> <context depot="${depot.name}" entityClass="${context.type}" entityName="${context.name}"/> <workflow name="Restart"> <errorhandler/> <tasksequence> <echo>running Stop command</echo> <controller updateproperties="false"> <execute> <context depot="${depot.name}" entityClass="${context.type}" entityName="${context.name}"/> <command name="Stop"/> </execute> </controller> <echo>running Start command</echo> <controller updateproperties="false"> <execute> <context depot="${depot.name}" entityClass="${context.type}" entityName="${context.name}"/> <command name="Start"/> </execute> </controller> </tasksequence> </workflow> </execute> </controller> 
