Managing a Workflow Group (4.3)
This section includes the following topics:
Opening a Workflow Group Configuration
You create a new workflow group configuration from the Build view of the Desktop User Interface. To open the workflow group configuration, click Build → New Configuration. Select Workflow Group from the Configurations dialog.
To open an existing workflow group configuration, click Build and select the workflow group configuration in the Configuration Browser, or right-click a workflow configuration and then select View Configuration.
Creating a Workflow Group
You create a workflow group by adding a workflow or a workflow group, as a member to the group.
To create a workflow group:
In the Available To Add pane, select a workflow or a workflow group.
Note!
An invalid workflow member will not affect the validity of the workflow group.
Click the arrow button.
The member is added in the Group Members list.
Note!
Batch, task and system task workflow members can be combined in a workflow group, but real-time workflow members can only be combined with other real-time workflow members. However, for real-time workflows, we recommend that only one workflow is included in each workflow group, unless you have selected the Continuous Workflow Execution checkbox in the Execution tab, which will allow you to have multiple real-time workflows in the same group.
Click the Save As button and give the new workflow group a name.
Removing a Member from a Workflow Group
When you remove a member from a workflow group, the member does not cease to exist:
A workflow member may still be running according to its configuration or as a member of a workflow group in the system.
A workflow group member may still run as a member of another workflow group in the system.
To remove a member from a workflow group:
Select the member that you want to remove in the Group Members list in the Members tab in the workflow group configuration.
Click the (Remove) button.
You will get a question if you are sure you want to remove the member.Click Yes if you are sure.
The member is removed from the group.
Executing a Workflow Group
Execute the Workflow group either manually, from the Execution Manager - see Execution Manager(4.3) - or, schedule an automatic execution - see the section below, Scheduling.
Configuring a Workflow Group
Configuring a workflow group includes:
Planning members' execution order
Setting the workflow group execution parameters
Setting the workflow group scheduling parameters
Members' Execution Order
When planning the execution order of the members in your workflow group, use the Prerequisites column in the Group Members table. By doing so you ensure:
A linear execution
A certain execution order
That every member is fully executed before the next member starts running
Hint!
If you use the Continuous Workflow Execution setting, you can override this behavior by allowing scheduled workflows to execute even though all workflow members are not finished. See the section below, Execution, for further information.
To configure members' execution order:
Select a member in the Group Members pane in the Members tab.
Click the Edit button.
The Prerequisites dialog box opens.Prerequisites dialogSelect the checkboxes for the members that the current member should follow.
Click OK.
See the image below for an example of how it may look.
You can rearrange the members' order of appearance in the Group Members list, by using the Up and Down buttons. When rearranging a list, that is already configured with Prerequisites you notice that the Prerequisites parameter is removed and a yellow warning icon appears instead. Note that this does not affect the workflow group validity. To remove the notification sign, either open the Prerequisites dialog box and click OK, or - to remove all the notification signs - save the workflow group configuration, and reopen it.
Execution
Click the Execution tab in the workflow group configuration.
Entry | Description |
---|---|
Max Simultaneous Running Workflows | Enter the maximum number of workflows you want to be able to run concurrently. |
Startup Delay | If Max Simultaneous Running Workflows is set to a value larger than 1, enter the delay (in seconds) of the execution start for each of the workflows that may run simultaneously. |
Continuous Workflow Execution | Select this checkbox if you want to allow members in scheduled workflow groups to execute on schedule even though all workflow members in the group have not finished execution. This may be useful in case one member is delayed for some reason. In that case remaining workflow members will not be prevented from executing on schedule. |
Continue | This option activates the default behavior on member abort, which means that the workflow group will run until all its members are fully executed and/or all are aborted. |
Stop | Select this option to have the workflow group stop when a member aborts. A batch Workflow will finish the current batch and then stop. |
Stop Immediately | Select this option to have the workflow group stop immediately when a member aborts. A batch workflow will stop even in the middle of processing a batch. |
Enable | Select this checkbox to enable the workflow group execution settings. |
Distribution | A workflow executes on an EC group. You can specify these EC groups, or the system can select them automatically. The Distribution rules are applied to all included group members, such as workflows and workflow group configurations. When there are conflicting settings, the members that are lowest in the workflow group hierarchy have precedence. When the Distribution rules of the workflow group configurations are set on the same level in the hierarchy, they do not conflict with each other. The following options exist: Sequential - Starts the workflow on the first EC group in the list. If this EC group is not available, it proceeds with the next in line. Workflow Count - Starts the workflow on the EC group running the fewest number of workflows. If the Execution Contexts list contains at least one entry, only this/these EC groups will be considered. Machine Load - Starts the workflow on the EC group with the lowest machine load. If the Execution Contexts list contains at least one entry, only this/these EC groups will be considered. Which EC group to select is based on information from the System Statistics sub-system. Round Robin - Starts the workflow on the available EC groups in turn, but not necessarily in a sequential order. If ecg1, ecg2, and ecg3 are defined, the workflow may first attempt to start on ecg2. The next time it may start on ecg3 and then finally on ecg1. This order is then repeated. If an EC group is not available, the workflow will be started on any other available EC groups. |
Scheduling
The cause of execution for a workflow group can either be a planned time scheme or a specific event. You can configure the cause of execution in the Scheduling tab.
Entry | Description |
---|---|
Day Plans | Use this table to plan timed triggers that will execute your Workflow group. Note that you can define a list of various plans. The system picks the plan that meets the top priority according to the section below, Day Plans Priority Rule. |
Event Trigger | Use this table to define an event execution trigger for the Workflow group, see the section below, Event Triggers. |
Day Plans Priority Rule
The Day Plans table lets you create a list of different execution schemes of the Workflow group. You configure each Day Plan to any interval between executions.
The system applies the following priority rule for picking a Day Plan out of the list:
Last day of month
Day of month (1-31)
Weekday (Monday-Sunday)
Every day
To Configure a Day Plan Schedule:
Click the Add button below the Day Plan table in the Scheduling tab.
The Add Day Plan dialog opens.
Entry | Description |
---|---|
Day | Select the target day. Valid options are:
|
Day Off | Select this checkbox to avoid execution on the day specified in the Day list. |
Start At | Enter a start time for the first execution. |
Stop At | Enter the time for when execution should stop. |
Repeat Every | Enter the interval between execution start time in seconds, minutes, or hours. |
Event Triggers
To trigger the execution of a Workflow group you add a row to the Event Trigger table. A row can be either a certain event, or a chain of events, that must occur in order for the Workflow group execution to set off.
To Configure an Event Trigger:
Click the Add button beneath the Event Triggers table.
The Add Event Chain Trigger dialog opens.Click the Add button.
The Add Event Selection dialog opens.Select an Event Type from the drop-down list. See Event Fields in Event Notifications Configuration(4.3).
Double-click an entry in the Event Filter table.
The Edit Match Value dialog opens.Click the Add button.
The Add Match Value dialog opens.If you want to filter all the events based on specific values of the selected type, enter the values in the Match Value(s) column. Otherwise, if you leave the default value, all events of the selected event type will trigger the execution of the Workflow group.
Click Add/OK/Close to close each of the four dialog boxes, confirming that your entry is included.