# Execution Order

The State Machine component is executed before all normal components with an execution order of **-1** and automatically enters the entry state on Start.

### Trigger Execution Order&#x20;

When triggering a transition on a state machine, the state machine processes the following operations in the given order:

1. Exit origin state
2. Enter transition
3. Exit transiton
4. Enter target state


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ilumisoft.gitbook.io/visual-state-machine/advanced/execution-order.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
