Workflow Commands

◷ Reading Time: 3 minutes

Workflow

The main workflow definition has some workflow-specific nodes as well as flow nodes.

Summary

Parameters

  1. name
    1. Description: Name of the workflow
    2. Mandatory: Yes
    3. Type: String
  2. version
    1. Description: The version number of the workflow
    2. Mandatory: Yes
    3. Type: String (Version format: a.b.c.d., in which a,b,c, and d are numbers)

Example

 <Workflow name="process1" version="1.0.0.0">
  <Declaration>
…
  </Declaration>
 
  <Nodes>
    <Start name="start">
      <Transition name="tr0" to="pause"/>
    </Start> 

Action

The external event is defined as an action that allows the outside world to send named signals to workflow in order to process a task.

Summary

This node is a type of ReceiverNode that sets the process state into a Waiting mode. This means the process execution will be returned back to the host application and the process will be ready to receive a signal.

Parameters

  1. name
    1. Description: Name of the node
    2. Mandatory: Yes
    3. Type: String
  2. displayName
    1. Description: displays the name of the action that may be displayed on the client
    2. Mandatory: No
    3. Type: String
  3. namespace
    1. Description: a name or url that categorized the action
    2. Mandatory: Yes
    3. Type: String
  4. title
    1. Description: title of the action
    2. Mandatory: Yes
    3. Type: String

Example

<Action name="action1" title="Accept" namespace="http://helpdek/CaseHAndling" displayName="Accept Task">
</Action> 

Timeout

Manages a timeout action in a workflow. When it expires, the workflow automatically executes the defined path of execution.

Summary

his node is another type of ReceiverNode that sets the process state into Waiting mode. When the amount of time that is set as a timeout is passed, the Scope of this receiver will be activated. Please note that this node must be the first node in a Scope

Parameters

  1. name
    1. Description: Name of the node
    2. Mandatory: Yes
    3. Type: String
  2. displayName
    1. Description: display name of the action that may be displayed on the client
    2. Mandatory: No
    3. Type: String
  3. namespace
    1. Description: a name or url that categorized the action
    2. Mandatory: Yes
    3. Type: String
  4. title
    1. Description: title of the action
    2. Mandatory: Yes
    3. Type: String
  5. timeout
    1. Description: the amount of time
    2. Mandatory: Yes
    3. Type: TimeSpan (D.HH:MM:SS)

Example

 <Action name="timeout2" title="TimeoutEmail" namespace="http://helpdek/CaseHandling" displayName="Timeout for email" timeout="00:10:00">
</Action> 

Updated on May 6, 2022

Was this article helpful?

Related Articles