Skip to main content
Skip table of contents

State Machines

Existing State machines

The State Machine section allows the user to manage the different State Machines created in your account. In this section, you can create, view details, edit, or delete state machines.

image-20250227-235116.png

Find State Machines

There 3 ways to ease the search of a state machine

  1. You can use the search bar to find state machines. You can find a state machine either by name (or part of it).

  2. You can use the dropdown list next to the search bar to select one or several of the following options

    1. ‘Show machines with an execution running’

    2. ‘Show machies with last execution succeeded’

    3. ‘Show machies with last execution failed’

    4. ‘Show machies with last execution aborted’

  3. You can filter to see only your state machines set up as favorite

image-20241212-185343.png

Set/Unset a State Machine as (un)favorite

States allows you to set state machines as “favorite” to make them appear easily through a filter.

You will just have to click on the blue “star” button on the left of a state machine’s name in the list view:

image-20241212-190027.png

Once selected, the star will appear in gold in the list.

To remove the state machine among the favorites, simply “unstar” the state machine (either in the list view, either in the card).

Setting a state machine as a favorite is user-based. Your choice will not impact other user’s settings.

Create a State Machine

To create a new state machine, click on the “Create State Machine” button

image-20241212-191520.png

A tab will appear in which you will be asked to enter the following information:

  • Name (mandatory and unique)

  • Code of the state machine using the Amazon State Language

  • The default input that will be used when lauching the state machine

While writing the code, you will see a live visualization of the workflow on the right, which appears when the code is properly written.

This workflow will help you visualize the different tasks in your code.

To save, confirm by clicking on “Save changes” under the code section.

To cancel the creation, click on ‘Cancel changes’ or close the tab. 

image-20241212-192014.png

Open and edit a state machine

To open a state machine,

  1. Click on the button ‘Open’ at the end of the row of the state machine

    image-20241212-192720.png
  2. If you are in an execution detail tab, click on the button 'Open state machine'

    image-20241212-192728.png

The tab of the state machine will appear displaying 3 sections

  • State machine configuration

  • Tags

  • Executions

State machine configuration

In this section, you can see and edit the details of the state machine configuration

  • The name

  • The code of the state machine

  • The default input

Additionnally, you may also set up a schedule for your state machine by clicking on the button ‘Schedule’ below the graph of the state machine.

A pop-up will appear in which you can

  • Select a timezone

  • Enter an input that will be used for every scheduled execution of the state machine

  • Define if the schedule execution can be launched if there is already another execution running for the same state machine

  • Define the frequency of the execution either through a selector or by entering it using the CRON format (in the tab ‘Advanced’)

image-20241212-193215.png

As explained in the Settings section, States support RSS feeds to notify you about all the state machine’s activities.

To copy the RSS link to the clipboard, you will first need to enable the RSS in your profile settings. Then click on the button ‘Copy RSS Link’ that appears below the state machine name if the RSS feeds are activated.

image-20241212-194131.png

The link will be automatically copied to your clipboard with a notification stating so.

image-20241212-194314.png

You will then only need to copy the link in your RSS editor

Tags

In this section, you can manage tags on your state machine. Each tag is defined by a key and a value.

Through this feature, you can

  • search them by filling the search bar above the list.

  • create them by clicking on the button ‘Create a tag’. It opens a pop up in which you will be asked the key (name) and the value of the tag

  • edit the existing one by clicking on the ‘pencil’ blue button in the row of the tag. Please note that only the value of the tag can be edited

  • delete a tag by clicking on the red ‘trash can’ button

image-20241212-205331.png

Execution

Once a state Machine has been launched, you can view all executions launched in the State Machine and if they have succeeded.

image-20241212-210800.png

The status can be:

  1. “Running” which means that your execution is still running. If the status does not evolve, you may want to check the execution in detail to identify which state is blocking. Indeed, there is a possibility that one of the states requires an additional input, so it will not produce any output as long as the state has not received this input. It may also indicate that there is no worker available able to manage the blocking state.

  2. “Succeeded”, which means that your State Machine has correctly and fully been executed.

  3. “Failed” which means that the execution failed for some reason (Task, Timeout)

  4. “Aborted” which means that the execution was manually stopped

For each execution, you can see

  • Its id (Column: “Name”)

  • Its start date

  • Its end date

  • Its status

  • A button to reach to complete details of the execution. Clicking on this button opens a tab with history log and step details of the execution of a state machine.

History Log and Step Details of an Execution in a State Machine

In this tab, you can either:

  1. View the input and output from a selected step. by clicking on the desired step in the workflow diagram

image-20241212-211410.png

 The states color indicates their status.

  • Green : success

  • Grey : failure

  • Light Blue : Waiting to run

  • Blue: Running

The right-hand menu appears after clicking on a state, and allows the user to quickly see the Amazon State Language code of this state, its input, its output and its result.

  1. Relaunch an execution by clicking on the button 'Start a new execution”

    1. Please know that, if the execution is still running, the button will not be available. However, a button to stop the execution will be available instead. It will allow you to abort the execution

  2. View a track record of all events that occurred during the execution of the steps of the State Machine, by scrolling down to the section “Events History”.

    1. Please know that, for each event, you can see the details of the event by clicking on the button “View details” at the end of the row of the event

image-20241212-212034.png

Start the execution of a State Machine

  1. To start the execution of a state machine

    1. you can click on the button ‘Execute’ in the list of state machine on the main page of the module ‘State machines’

    2. you can click on the button ‘Execute’ in the tab of a state machine configuration

    3. you can click on the button ‘Start a new execution’ in the tab of an execution

  2. A pop-up window will appear for which you have:

    • the possibility to give a name to the execution (it may be easier to identify if you have several executions launched),

    • “Execution Input” is the input you want to send to the first state required by the state machine:

      • The input code to send is in JSON language

      • For this step, you must edit the JSON code to add the needed input, or else an error message will appear if the execution failed.

      • if a default input has been set for this state machine, the default input will appear.

image-20241212-212608.png

Delete a state machine

In order to delete a state machine, you need to reach the main page of the “State machines” module. There, you may

  • either delete it individually by clicking on the trashcan button at the end of the row of the state machine

  • or delete several ones simultaneously, by checking first the box at the beginning of the row of the state machines you want to delete and then clicking on the button ‘Delete selected state machine’

image-20241212-232041.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.