Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Resource Variable Activity

  • Last UpdatedJun 21, 2024
  • 4 minute read

Activity description

The Resource Variable Activity can be used to identify an actor to perform a workflow activity, through a variable. It sets the resource properties to a variable. If the variable type is set as 'resource' then the resource property is set to the variable. If variable is set as 'string' then the actor IDs are assigned to variable. The activity gives the output "Activity Executed" which is the output condition to be set to link this activity to the next. This activity can also be used to assign the next activity based on actor workload to the person with the lightest load, in order to properly balance workload.

Activity Properties

The Resource Variable activity has to be configured by specifying appropriate values for the different properties in the Activity Properties area. The Activity Properties can be accessed by clicking on the Activity Properties tool in the Tool Bar or by selecting the appropriate option from the right click menu for the Resource Variable activity. The Activity Properties are organized under the following groups of related properties. The properties under each group are described in this topic.

Name & Description

The properties in the Name & Description group have been described below. You can use these properties to specify the name and description for the activity.

Name - This property can be used to specify a name for the activity.

Property Type: Optional (This property needs to be set only if necessary.)

Description - This property specifies a brief description to be displayed for the activity.

Property Type: Optional (This property needs to be set only if necessary.)

Configuration

The properties in the Configuration group have been described below. You can use these properties to configure the functionality of the activity.

Assign Resource - This property allows the user to select the variable to which the resource properties will be set. The variables will have to be created in the properties for the Start activity. The variables can be one of the three types - String, Array or Resource. String variables take one UserID at a time, while Arrays take in a number of UserIDs pointing to different resources. Resource variables will take the complete resource properties.

Property Type: Mandatory (This property must be set if the activity is to be executed.)

Enable Workload Balancing - This property allows the user to set the Enable Workload Balancing property by selecting from the drop down. Setting this property value to Yes, enables workload balancing. This ensures that the task assignment will be done taking workload balancing into consideration.

Property Type: Optional (This property needs to be set only if required.)

MaxUsers Count - This property allows the user to specify the maximum number of actors who will be considered for task assignment. This property is related to the previous property. If workload balancing is set to Yes, then this property needs to be set to a value greater than 1, in order for workload balancing to be performed.

Property Type: Optional (This property needs to be set only if required.)

Actors

The property in the Actors group has been described below. You can use this property to specify the actors who will work on the activity.

Actors - This property specifies the actor(s) who are to be assigned to the variable using the ResourceVariable activity.

Property Type: Mandatory (This property must be set if the activity is to be executed.)

Steps to set the Actors property

  1. To specify the actors, click on the button for the 'Actors' property to open the property window.

  2. In this window, build an expression to select the actors using the actors properties. Select an attribute from the first drop down list, then select the operator, type of value (Value, Variable, Content, XMLVariables), and the corresponding value for the property from the corresponding drop downs. Select "End" from the last drop down to complete the expression. If you are building a compound expression, you can select one of the logical operators to connect the different conditions that form the expression.

  3. Add the condition to the expression by clicking Add. This will display the expression in the text area.

  4. You can remove a condition already added to the expression by clicking Undo.

  5. You can also clear an existing expression if necessary by clicking Clear. This is useful if you want to clear large expressions in the text area in order to build a new expression.

  6. After building the expression, click Update to save it.

See Resource Variable - Actors for a detailed description of the Actors property window.

See the Using XML Variables section in the About the XML Variable User Interface topic for details on how to use the XMLVariables to build the expression.

Looping Behavior

The property in the Looping Behavior group has been described below. You can use this property to specify the looping behavior of the activity.

Loop through this action if output is - This property is used to specify the condition for looping the activity by selecting an activity output from the drop down.

Property Type: Optional (This property needs to be set only if necessary.)

Activity outputs:

The Resource Variable Activity returns the following values -

Not Enough Resources: Displayed when filter Condition did not yield enough resources

Activity Executed: Displayed when the Resource variable is set successfully

Exception Behavior

Each activity has the Raise Error on Unhandled Linked Output property on click of which, it shows all the default configured mapped error outputs in red with their check boxes selected.

See Mapped Error Outputs for more details.

In This Topic
TitleResults for “How to create a CRG?”Also Available in