> For the complete documentation index, see [llms.txt](https://readme.directual.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://readme.directual.com/scenarios/editing-scenarios.md).

# Editing Scenarios

## Composing scenarios

To compose a scenario, drag and drop steps from the right panel into the workflow.

![](/files/-M6ivV08mHG6jW1EXyVs)

[Action](/scenarios/editing-scenarios/action-steps.md), [Integration](/scenarios/editing-scenarios/integration-steps.md) and [System](/scenarios/editing-scenarios/system-steps.md) steps have one connector that leads to the next step. [Condition steps](/scenarios/editing-scenarios/condition-steps.md) have two connectors: one for 'true' and one for 'false'.

## Scenario status model

There are two scenario views:

* **Editing** view (draft): This view represents the current draft of your scenario, where you can design and modify it
* **Running** view: This view represents a scenario which currently processes data (if it is not stopped). The running view can differ from the draft

When you **publish** your draft, the current running view is archived as a new version, and your draft becomes current active version:

![](/files/-M6j1rrNetCzCEDnNsvH)

{% hint style="info" %}
Publishing a scenario does not affect the STOP/RUN state.
{% endhint %}

To manage versions of your scenarios:

* Click 'Edit' to edit the Draft
* Click 'Publish draft' to update the current running version (the old one is archived). Don't forget to RUN your scenario. By default, it is in the Stopped state.

![](/files/-M6j8HLfdxyV4pp_jl7_)

The Running view provides the following instrument panels:

* Scenario logs: Logs for each step/object
* Debug scenario: Manually push an object into the scenario

The Editing view has the following instrument panels:

* Scenario steps: A visual representation of your scenario's workflow
* Debug scenario: Manually test your scenario
* Scenario logs: Logs for each step/object
* Versions history: View all versions and revert your scenario draft to a previous one if needed

## Scenario versions

Every time you publish a draft, a new version is saved. You can select any version and replace your draft with it to manage changes effectively and maintain a history of your scenario's evolution.

![](/files/-M6j9_JDC6jC5xj7pcez)
