|
![]() |
A utility task is an activity that can update a work object without human input. It may perform computations, searches, retrieve data from another system, make a decision affecting the course of the flow, and so on. COLLAPSE CANDIDATE
Some utility tasks appear in the flow immediately before an assignment task, to complete preprocessing. Others may appear immediately after an assignment task, for post-processing of user decisions and input.
Don't confuse
Utility
activities with functions — Java code in
instances of the Rule-Utility-Function rule type. A Utility
activity is defined in a class derived from the Work- or Data- base class
and has an Activity Type of Utility
.
1. Drag theshape onto the flow.
2. When the Utility Properties panel appears, complete these fields:
Field |
Description |
Name |
Enter a text name for this Utility shape of 32 characters or less. Choose a name meaningful to application users who see this on the work object history display, the breadcrumbs control (for entry points), and the Where-Am-I? diagram. For example, Compute Customer Open-To-Buy.BUG-2983 The task name is only descriptive; it does not affect runtime execution of the flow. This name also appears inside the Utility shape on the Diagram tab. |
Rule ![]() |
|
Application |
|
Work Type |
|
Use Case |
|
Parameters |
If the utility selected requires parameters, supply a literal value for each parameter. Process Commander validates these parameter values when you exit from Visio editing (unless the flow in is Draft mode). 5.5 GRP-405
|
Audit Note |
|
Audit Note |
Optional. Enter a brief text note to be included in the work history object that the system creates when a flow execution uses this utility task.
|
Entry Point? |
Select to indicate that this Utility task is an entry point, which a user can return to using the breadcrumbs control or the standard flow action Previous. The default is cleared. 5.2 Because a utility task presents no user form, if a user clicks a breadcrumbs control to return to this entry point, flow processing resumes and pauses at the next assignment or other task that requires user input. |
Only going back? |
This checkbox appears only when you select the Entry Point? checkbox. Select to restrict users at runtime from jumping ahead to this step without having completed the preceding steps. After having completed this step, users may jump back to it from steps that follow it.
|
3. Click Apply when done. (To edit these shape properties after you save the Flow form, open the Diagram tab, right-click the shape, and select the Edit tab on the pop-up window.) GRP-202
4. Connect at least one incoming connector to the utility shape.
5. Ordinarily, connect one outgoing connector from the utility shape.
If the activity
uses the TaskStatus-Set method to one of a few possible activity
outcomes, the outgoing connectors can depend on this Status value. For
example, a utility activity might return the values "HIRE",
"REJECT", and "WAIT" through a TaskStatus-Set
method. Using three connectors from the utility, one for each status
value, simplifies the flow diagram by eliminating a fork or decision
shape. VIDOD F-122
You can add a Utility shape by dragging an activity rule of the following types from the Application Explorer onto the Visio diagram:
Locate
LoadDeclarativePage
OnChange
Trigger
Validate
Utility
Click the icon to select the rule. See Using the Application Explorer. V6.1 Proj-179 GRP-2259
![]() |
About Activity
rules How to create activities for use in flows TaskStatus-Set method |
![]() |
Standard activities for flows |