What should be included in work variables and what should be part of defined data model?

please explain the difference.

3 Likes

Hi Sanjali,

Thanks for raising this question.

Currently, WorkVariable is also part of the DataModel, so we can interpret your question as the difference between WorkVariable and BusinessEntity.

BusinessEntity:

  • Used when you need to bind data directly to the UI and perform operations like Load Object to activate a particular index in a list.
  • Represents the core business data, which is ultimately submitted to the server for further processing.
  • Designed to align with business requirements and ensure seamless interaction between the UI and backend.

WorkVariable:

  • Designed to hold temporary, transactional data that does not have a direct relationship with the business object.
  • Commonly used for storing API responses, allowing developers to extract and copy relevant data to UI elements or business objects as needed.
  • Helps manage intermediate data without impacting the primary business entity.

Let me know if you need further clarification.

3 Likes