Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Storage: Stored on a database table separate from the form data. These variables are stored in the "shkactivitydata" database table and are not to be tampered with for reasons mentioned below in the section Storage mechanisms for form data variables and workflow variables.

Key Concepts

Hash Variables

...

Please do keep in mind that it is important to not confuse the form data with workflow variables. As explained before, they are separate entities but both entities can be used as hash variables for use inside, for example, an email body.

Scope of Use

Please note that every hash variable has its scope of use. This dictates where the hash variable can be used. Workflow variable hash variable(#variable.variableName#),  can only be used by elements within and part of a Process.

Additionally, these values are being parsed on the server side, not the client side. If there is a need to parse it, you will need to use workflowutil.processVariable method to do so.

Update Mechanisms

Form Data Update Tool: This built-in tool is used to update values directly in the database. To use this go to Process Builder > Tools > Mapping > Select Update Form Data > Update Fields.

...

In this view, one can see the state and statistical data of a particular completed activity instance.

Choosing the Right Tool

The decision to use workflow variables, form data, or hash variables depends on the specific needs of the process. For simpler decision-making where an audit trail is not critical, form data or hash variables might suffice. However, for complex processes where tracking the history of decisions is important, workflow variables become indispensable.

...