Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

Debugging the Workflow scheme

Workflow debugging is a mandatory step in workflow design and should be performed on different sets of acceptable values of workflow input parameters or screen forms.

Controlling the debugging progress

Debugging is controlled using the buttons:

...

NameDescription
StartTo launch the workflow.

...

Pause

...

To pause the workflow.

...

Continue

...

To continue the workflow after stopping it.

...

Stop

...

To stop the workflow.

...

Restart

...

To restart the workflow after stopping it.

...

Step forward

...

To move one step forward in the workflow

...

scheme after stopping the workflow at the breakpoint.

In addition to these buttons, there is an additional option to stop the workflow on a pre-selected task or even several tasks using breakpoints.

...

  1. Select the task (1) on the diagram scheme - as a result, new buttons will appear on the toolbar (2):
    1. "Block Shutdown"shutdown.
  2. Breakpoint ""Breakpoint" Требуется замена скриншота
  3. Click on the "Breakpoint" button - as a result, the selected task will have a "Breakpoint" icon: Требуется замена скриншота
  4. The workflow can now be launched. The workflow will reach a breakpoint and stop. New buttons will appear on the toolbar:
    • "Continue"
    • "Stop"
    • "Restart"
    • "Step forward"
      Требуется замена скриншота

  5. Click one of the buttons to continue:
    • "Step forward" - the workflow will continue to run either to the next breakpoint
    • or "Continue" - the workflow will continue either to the next breakpoint or to the end.
  6. To remove a breakpoint from the task, you should click the "Breakpoint" button again.

...

  1. To temporarily turn off a step from the workflow, you should click on the "Disable block" button - the background color of the button and the color of the task itself will turn gray: Требуется замена скриншота
  2. To restart the debugging of a disabled block, you must click the "Disable block" button again.

This is the end of the overview of the buttons for controlling the workflow during debugging.

Debugging stages

  1. Launching the workflow
  2. Observing the workflow runtime
  3. Viewing intermediate results and getting the final result

Launching a workflow in debugging mode

The workflow is launched in debugging mode by clicking on the "Start" button located at the right end of in the toolbar: Требуется замена скриншота

When you click on the "Start" button, a modal window appears in which you can set the input parameters of the workflow and select the special launch parameters: Требуется замена скриншота

It should be noted that the "Data for special launch" panel appears only if there are robots in the workflow and the designer wants to launch them only on the host he has selected. If the designer leaves the host and account fields empty, the Orchestrator will select the host based on the principle of the lowest load. That is, the one that is either free or least loaded, but still has enough computational resources to launch a new robot, will be selected.

...

After selecting the launch parameters and setting the initial values of the workflow input parameters, the designer clicks on the "Launch" button. The workflow is launched.

Observation of workflow progress

There are two ways to observe the progress of a workflow:

  • by block diagram scheme - running blocks will be highlighted by a frame rotating around them.
  • by logs - the "Logs" panel will appear below the workflow diagram scheme as soon as the workflow is launched. Требуется замена скриншота

The logs show task events:

  • task start
  • task status change
  • task completion
  • старт задачи
  • изменение статуса задачи
  • завершение задачи

The log table has columns:

  • event date and time
  • task name
  • task type
  • event

Viewing intermediate results and obtaining the final result

  1. You can view the initial values of workflow parameters for tasks with the "Start" type.
  2. You can view the values of the input parameters of tasks in the "Events" column for tasks with the status "Task started".
  3. You can view the values of the output parameters of tasks in the "Events" column for tasks with the status "Task completed".
  4. You can view the final results of the workflow for tasks with the "Finish" type.

Debugging a workflow with a screen form

When debugging a workflow with a screen form, when a screen form is reached, the designer must do the following actions to execute it:

  1. LMB select the executing SF - the panel "Block "Screen form"" should appear  
    Требуется замена скриншота

  2. Click on the "Fill Form" button - a modal window with SF should appear, in which you should fill in the missing fields (in this case it is the "Second component" field): Требуется замена скриншота
  3. Enter the number 5 in the second field and click the "Send" button - the data will be sent to the server, and the workflow will continue according to the scheme.

...