...
This operation delegates endpoint execution to the workflow developer. The workflow editor will default to "Any", which will execute on any one of the selected endpoints, which will be randomly picked from selected endpoints or a specific endpoint where previous step may have executed. Changing this value to "All" to will result in execution on all selected endpoints.
Special Considerations
FlexDeploy Properties
FlexDeploy will pass in any Properties normally available in workflows via System Environment Variables.
Example
Code Block | ||||
---|---|---|---|---|
| ||||
import os
​
TEST_INP = ​os.getenv('TEST_INP') |
Outputs
User defined outputs – an output must be defined in the workflow editor to be accessible. Within your script use the Map outputs setOutput(type Map<StringKey,Object>Value) to set any outputs.
Example
Code Block | ||||
---|---|---|---|---|
| ||||
ouptuts.putsetOutput("MY_STRING_OUTPUT","Output result") # output will be "Output result" ouptuts.put("MY_BOOLEAN_OUTPUT",bool("")) # output will be false |
Setting Status
The status of the File can be set in your script using the packageFunctions object. This object has several functions available to it, see the example below. If an exception occurs in your script, the status will be set to Failed. Statuses will only be set when deploying.
Code Block | ||||
---|---|---|---|---|
| ||||
packageFunctions.setObjectResultStatusSuccess() # Status will be Success packageFunctions.setObjectResultStatusFailed() # Status will be Failed packageFunctions.setObjectResultStatusSkipped() # Status will be Skipped packageFunctions.setObjectResultStatusNotAttempted() # Status will be Not Attempted packageFunctions.setObjectResultStatusIgnore() # Status will be Unknown |
...