Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Execute a Python script from a file. The plugin provides the ability for the user to define additional inputs that will be available to the scripts when executing. In addition, the plugin provides the ability for the user to define any number of outputs from the execution of the script that could be utilized in subsequent steps in the workflow.

Environment/Instance Properties

...

Project Properties

...

Inputs

Input Name

Input Code

Required

Description

File Path

FDPYTHON_INP_FILE_PATH

Yes

Path to the file to run.

Artifacts

This operation delegates the consume/produce artifacts decision to the workflow developer.

...

This operation delegates endpoint selection to the workflow developer. The workflow editor will default the selection to "All", which selects all available endpoints associated to the environment instanceTarget. Selecting a specific resource will result in selection of endpoints associated to the environment instance Target which have that resource defined.

...

FlexDeploy will pass in any Properties normally available in workflows via System Environment Variables.

Example

Property Example
Code Block
languagepytitleProperty Example
import os
​
TEST_INP = ​os.getenv('TEST_INP')

...

User defined outputs – an output must be defined in the workflow editor to be accessible. Within your script use the setOutput(Key,Value) to set any outputs.

Example

Output Example
Code Block
languagepytitleOutput Example
setOutput("MY_STRING_OUTPUT","Output result") # output will be "Output result"