# Scenario Run

- Scenario-run starts the scenario with the given variables and retrieves the result after it has completed.
  (In contrast, scenario-start starts the scenario and returns immediately.)
- Scenario-run is best suited for scenarios that guarantee a short-term completion.
- The scenario instances executed via scenario-run are assigned instance names in the format {scenario-name}-{timestamp}.
- The value provided as 'variables' (value attribute) is given as the variables variable when the scenario starts. This component operates when this value changes or intent sensitivity is set.
- If the repeat 'interval property' is set to a value greater than or equal to 0, it will be called repeatedly.

## Properties

- scenarioName: (Required) The name of the scenario to be executed.
- variables: The variables value provided to the scenario. It is the parameter value provided to the scenario. It is linked to the value of this component.
- interval: If the property is set to a value greater than or equal to 0, it will be called repeatedly.

## Data Scheme

- After execution, you will receive the final context of the scenario. (Available for inspection in the browser's developer console)

```json
{
  variables: {
    ... /* parameters when instance starts */
  },
  data: {
    [each step name]: { /* step result */ }
  },
  state: 'STARTED' | 'HALTED', /* scenario status */
  timestamp: 4273809748
}

/* Among the result objects, the data value is set to the component's data property. */
```
