What are work variables in Vdesigner2.0?

What are work variables in Vdesigner2.0?

4 Likes

A work variable typically refers to a temporary or intermediate value used during the development of a program or system.
These variables are often used to store data that will be processed or manipulated during the execution of algorithms, functions, or workflows. Work variables are especially common in environments where iterative development, testing, and debugging occur.

6 Likes

Work variables play a crucial role in defining application workflows, acting as temporary storage components that help make real-time decisions during a user journey. These variables dictate how data is processed, stored, and retrieved, ensuring seamless interactions within the application. Work variables are classified into two types: Persistent Work Variables and Non-Persistent Work Variables.

  • Persistent work variables are stored in the database and remain available even after the completion of a user journey. These variables are useful when the data needs to be referenced later, such as tracking the status of PAN and Aadhaar verification. For instance, in a financial application, if a user completes the PAN and Aadhaar seeding process, storing the variable PAN_AADHAAR_SEEDING_SCENARIOS_JOURNEY_STATUS ensures that the verification status is available for future reference.

  • On the other hand, Non-Persistent Work Variables exist only during a session and are discarded once the session ends. These variables are useful for handling temporary data not required after the workflow is completed.

For example, if an agent visits a customer’s address and asks a security guard about the customer’s presence, a variable such as InquiredWithSecurityGuard might be used temporarily to decide the next step but does not need to be stored permanently.

1 Like