Skip to content

Running Flux Services

Flux services can be invoked via Flux REST API or Coder.

Using Coder is the simplest and fastest way to run a Flux service. This is suitable during the development phase of your integration. To run a Flux service:

  1. Right click on the Flux file from the Coder Navigator view.
  2. Click Run As > Flux Service.

Invoking from the editor

You can also invoke a Flux Service from the editor. Right click the canvas and click Run As > Flux Service.

  1. Right click the Flux file from the Coder Navigator view.
  2. Click Run.

Afterwards, the IDE will show a dialog that allows you to add and set properties before running the service. These properties include:

  • Start State

    This specifies on what state the execution should start. If Default is selected, the first state on the Flux definition will be used as a start state. The default starting state is marked as green in the editor.

  • Inputs

    If you have Flux inputs on your service, they will be shown on the dialog. You can then set the values for each input defined in the Flux Service.

  • Tags

    The values to add as tags to the Flux execution. This is equivalent to adding tags on the Flux properties except that tags added from the dialog are bound to the execution only.

After running, Coder opens the console for you, logging any information relevant to your service.

Running a Flux Service in Coder Studio

Running a Flux Service in Coder Cloud