Free cookie consent management tool by TermsFeed

Update Constant Smart Service

On This Page

Overview

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 automatically increase or decrease constants that are used as global counters, we recommend using the Increment Constant Smart Service instead.

Caution:  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

Configuration options

This section contains tab configuration details specific to this smart service. For more information about common configurations see the Process Node Properties page.

Data tab

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

Node inputs

The default inputs include the following:

Input Data Type Description Required Multiple
Constant Constant The constant 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. Yes No
New Value Any The new value for the constant. Yes No
Create New Version Boolean If false (default), then updating the constant via this smart service will not create a new version of the constant. For constants that are frequently updated via the smart service, not creating a version minimizes noise in the version history and conserves memory for better performance. If true, a new version of the constant will be created. No No

Note:  Do not select the constant from the Rules and Constants tab in the Expression Editor.**

Usage considerations

Run at low throughput in autoscaled processes

This smart service is not intended for high-throughput usage and should only be used at low frequency in processes with autoscale enabled. The underlying services this node relies on may not scale to the same degree as autoscale-enabled processes, which may impact performance at high concurrency.

For autoscaled processes, consider one or more of these approaches:

  • Position this node in less used paths within your process flow. This could be an exception path or an uncommon case for the process.
  • Monitor node execution times during performance testing to see if the node performs differently at scale.

When used in an autoscaled process, the node should behave as it would in a standard process of comparable scale. For typical workloads, no special design considerations are needed.

Feedback