Update Constant Smart Service

The Update Constant Smart Service allows you to change the value of a constant in a process to a specified value of any type. The smart service uses the context specified in the Assignment tab of the process model and creates a new version of the constant with the new value. Since a new version is created, there is no actual output. You can only run this smart service on one constant at a time.

If you want to automically increase or decrease constants that are used as global counters, we recommmend using the Increment Constant Smart Service instead.

Only users who have permissions to update the constant specified can execute the smart service on that constant. Attempting to complete this task without the proper user rights generates an error message for the process administrator and pauses the process.

You must specify values for the node inputs listed in the table below. You can either manually enter data into the text-field or generate a value using the Expression Editor. When using the Expression Editor, you can reference and modify process variables, rules, constants, and other data. The expressions then populate your node input values.

Properties

  • Category: Rule Management
  • Icon:
  • Assignment Options: Unattended

Configuring the Smart Service

The following tabs only display in the Process Designer view. Navigate through each one to configure your smart service.

General Tab

The General tab allows you to name and describe the node.

Data Tab

The Data Tab displays the node inputs and outputs for the activity. You can add additional inputs and custom outputs, if needed. The default inputs include the following:

Input Data Type Description Required Multiple
Constant Constant The constant of type Number (Integer) to be updated. Typically, you should use the picker or autocomplete to select the constant. You can also use a custom expression function plug-in that returns the desired constant.
Note: Do not select the constant from the Rules and Constants tab in the Expression Editor.
Yes No
New Value Any The new value for the constant. Yes No

Additional Tabs

The following tabs appear in the Properties dialog box for all nodes. Configure them as needed.

FEEDBACK