# Editing Scenarios

## Composing scenarios

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

![](https://3071851461-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Nnmtk9_gFGWOddsf6%2F-M6irHFkyR98_RGhJvOZ%2F-M6ivV08mHG6jW1EXyVs%2Fscen!.gif?alt=media\&token=eb554ae6-fd91-47c3-9367-f0f29ba8e32d)

[Action](https://readme.directual.com/scenarios/editing-scenarios/action-steps), [Integration](https://readme.directual.com/scenarios/editing-scenarios/integration-steps) and [System](https://readme.directual.com/scenarios/editing-scenarios/system-steps) steps have one connector that leads to the next step. [Condition steps](https://readme.directual.com/scenarios/editing-scenarios/condition-steps) 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:

![](https://3071851461-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Nnmtk9_gFGWOddsf6%2F-M6iwT-79sSwTn-o5Ao-%2F-M6j1rrNetCzCEDnNsvH%2FPublishing.png?alt=media\&token=6abf6fe9-3b41-4396-b3f6-0be4aa667601)

{% 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.

![](https://3071851461-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Nnmtk9_gFGWOddsf6%2F-M6iwT-79sSwTn-o5Ao-%2F-M6j8HLfdxyV4pp_jl7_%2Fscen-stat.gif?alt=media\&token=4bd178ea-37d5-4f0a-994d-5c61b0d841b0)

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.

![](https://3071851461-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4Nnmtk9_gFGWOddsf6%2F-M6j8mmaSOgCgDOsPRc6%2F-M6j9_JDC6jC5xj7pcez%2Fscen-draft.gif?alt=media\&token=66b349da-201c-48b9-a624-840b8ac0d0e2)
