Managing Data Within a Scenario

When starting a scenario instance, a user data object, accessible via the data property, is generated automatically. This user data object is freely usable by developers to store data for the duration of the scenario instance.

You can initialize this user data object from outside the scenario by passing it as a parameter in the start method.

In the case of sensitive information, you may not want the data to be displayed externally, for example on the controlling page of SAP Intelligent Robotic Process Automation Factory. If so, use sc.localData instead of sc.data in the generated code to keep the data locally.