Online documentation, manuals and tutorials
< All Topics
Print

PythonRun

Description

Runs a python script and sends the handle of the running script to the handle output. This handle is used in the PythonEnd Action if we want to stop a running Python script or in the PythonSendMessage Action if we want to send a message from Flow to a Python script, and it is needed because several scripts can be started at some point and the running script is determined through this handle.

Properties

Specific

Script source option

Enum

The source of the python script can be specified in three ways:

  • Inline script
  • Inline script as expression
  • Script file

Inline script

Python

If Inline script was selected for Script source option, then the source code of the script should be entered here.

Inline script as expression

EXPRESSION (string)

If Inline script as expression was selected for Script source option, then here you need to enter an expression that will return a string containing the source code of the script when evaluated.

Script file

EXPRESSION (string)

If Script file' was selected forScript source option’, then the file path to the `.py’ file should be entered here.

Python path

EXPRESSION (string)

The full path to the python command. If the python command is already in the system path, then it can be set to an empty string, i.e. "".

Inputs

seqin

SEQ | OPTIONAL

A standard sequence input.

Outputs

seqout

SEQ | OPTIONAL

A standard sequence output.

handle

DATA(integer) | OPTIONAL

Returns the handle of the running script used in PythonEnd and PythonSendMessage Actions.

message

DATA(string) | OPTIONAL

Everything that is printed to stdout within the running Python script will be sent through this output. In this way, the python script sends a message to Flow, and if Flow wants to send a message to the Python script, then the PythonSendMessage Action should be used.

Examples

  • Charts
Page content