Workflow Step Task Types

Important The Workflow object is the legacy process model used in early versions of Process Director. BP Logix recommends the use of the Process Timeline object, and not the Workflow object. The Workflow object remains in the product for backwards compatibility, but doesn't receive any new functionality updates, other than required bug fixes. No new features have been added to this object since Process Director v4.5. All new process-based functionality is solely added to the Process Timeline.

Users are assigned a task when they are added to a Workflow Step. A context sensitive web page or Form is displayed that is specific to the task type when the user selects the entry in their Task List, or the link in their email notification. Each task type defines a set of functions or actions that can be performed, as well as custom instructions for the participants.

Note If your process includes tasks for unauthenticated users, please refer to the documentation on Anonymous Users for special concerns that may apply to some settings.

The Workflow engine embedded within Process Director supports the following tasks:

User Task #

The user task is any actionable item assigned to a user. If a user task has been assigned to a user, a Task will appear in their Task List. They must complete the task before it can be removed from the Task List. A user who is assigned a task will be automatically given permission to any object in the Workflow package so they may complete the task. Examples of this task can be an approval task or update task.

When a Workflow Step is assigned to a user with an invalid UID or user ID, Process Director will immediately stop the process, and place the Workflow Step into an error state. This is also true for anonymous user assignments if the email address isn't a valid format (Process Director can't validate the email address itself, only the format).

Participants Tab

A user step in the Workflow can have participants assigned to it. Some Workflow Steps can run without any users (e.g. Form Actions, Parallel Tasks, Sub Workflow, etc.).

Notifications Tab

Each step in the Workflow can have unique notification options.

Advanced Options Tab

Depending on the task type for the step different options will be available. Some of these options will appear under the Advanced Options tab, others will appear under a tab that is unique to the task type.

Decision Task #

The Decision Step is used to take a single branch coming out of this step. Assign conditions on the actual branches (use right-click Properties on the actual branches). Only a single branch can be taken. You can designate a single branch to be the default if (Default Branch property of the branch) the conditions of multiple branches could evaluate to true.

Form Actions #

The Form Options task allows the Workflow package to control which Form will be the default when multiple forms are contained within the Workflow and allows new forms to be attached.

Parallel Tasks #

This allows you to run your steps in parallel. The Parallel Task Step will start all branches coming out of this step at once. You can optionally add conditions to any branches. The Wait step can be used to wait for all parallel branches to complete.

Process #

Subprocesses and End Process Steps

The Process step requires that a Workflow definition be configured. The configured process will be started as a subprocess (child process) of the main (parent) Workflow. A subprocess can consist of a Workflow or a Process Timeline. You may copy objects from the parent process to the child process and vice versa.

When a subprocess contains an End Process step, it will return the name of the End Process step as a result for the parent Process Activity. Process Timelines and Workflows use the End Process function differently, so the results can be slightly different depending on the type of subprocess that is called by the Process step.

Workflow

In the example above, the Workflow End Process step is named completed.  If this Workflow runs as a subprocess, then, when the process reaches this step and completes, the name "Complete" will be passed to the parent Workflow as the result of the Process step that started the sub-process.

Workflows do NOT automatically end when an End process step is reached. Workflows end when all of the required steps in a Workflow have completed. This enables you to have two Workflow paths running concurrently, or in parallel, each of which may have its own End Process step. If a Workflow contains two parallel paths that each have a different End Process step, then, when the subprocess completes, it will return a comma-separated string containing the names of BOTH end process steps. In the parent Workflow, the returned string will then be set as the result of the Process step that started the subprocess.

Timeline

For information on how Process Timelines work in this configuration, please refer to the Results Tab section of the Process Timeline Activities topic.

Comment #

This task type is only for documenting the Workflow. It allows text to be entered that can be used to describe the Workflow process.

Script #

The Script task supports the ability to call custom script functions. For more information on the custom scripts refer to the Scripting section of this guide.

Meta Data #

The purpose of this task is to assign Meta Data to the Workflow objects. The Meta Data is extracted from the default form instance, and can be applied to all Workflow objects, or to objects in a specific group.

Wait #

This task will wait for certain conditions before completing (e.g. Parallel Tasks to complete, Sub-Workflows to complete, etc.). This can also be used for Workflow synchronization to synchronize events between different processes.

For the wait step to be satisfied these conditions must be true:

  • If Wait for Parallel Steps to Complete is checked, all parallel tasks complete.
  • If Wait for Sub Processes to Complete is checked, all child sub-processes (or a specific sub-process) must be complete.
  • If Wait for event string to be posted is checked it will wait until that event is posted (from an external source or process).
    Or
    The Stop Waiting When Any Branch Condition Is Met is checked, and the condition on any branch leaving the wait task is satisfied (note: if no conditions are specified on the branch, this will cause the wait task to complete immediately).
    Or
    If the Set maximum date to wait from form field occurs before the wait event is satisfied the step will be canceled and it will automatically advance to the next step in the Workflow.
    Or
    If the time the step has waited exceeded the result of the value specified in the Set maximum date to wait from system variable field, the step will be canceled and the Workflow will automatically advance to the next step.

Custom Task #

Process Director Custom Tasks can be used as a Workflow Step. The different types of Custom Tasks appear on the left side of the Workflow definition screen, below the Built-In Tasks.

Clicking on a Custom Task Type will display the Custom Tasks of that type at the top of the sidebar. In the example below, the sidebar displays the Process Custom Tasks.

Simply drag the Custom Task onto the flowchart, just as you'd any Built-In Task. Open the properties of the Custom Task, and use the Custom Task Options tab to configure the task. On the Custom Task Options tab, click the Configure button to open the configuration screen for the task. Each Custom Task will have a specific configuration screen. For details on the configuration settings for a Custom Task, please refer to the Custom Tasks Reference Guide.