Skip to main content

Root

Root task is a very specific task which isn't deletable. This is where all your workflows will start execution. This is why you cannot connect anything to it (no Blue input port).


Main tab

tab

Total running instances
Lets you define a maximum of running instances for this workflow.

Max running instances by node
Lets you define a maximum of running instances for each node.

Trigger Error port
Allows you to define if the home error port will be triggered on the first child task error, or at the end of the workflow execution.

Player context
Allows you to define a context for the Workflow Player execution. Context should be a valid JSON object.


Log tab

tab

Lets you define how loggers should behave. Beware that the more logs are sent the slower your workflow will execute.


Web API tab

Lets you define how the workflow can be triggered via a web-service.

tab

To trigger this workflow:

  • Select the node you want to use for execution.
  • Select which workflow version to execute.
  • Copy the "Start workflow URL".
  • By posting the URL you will get the following answer.
"result": true,
"response": {
"status": "https://ait-c7/workflow_template/webapi/eyJpbnN0YW5jZV9pZCI6IDg2LCAiY21k9",
"pause": "https://ait-c7/workflow_template/webapi/eyJpbnN0YW5jZV9pZCI6IDg2",
"resume": "https://ait-c7/workflow_template/webapi/eyJpbnN0YW5jZV9pZCI6IDg2LCAi",
"messages": "https://ait-c7/workflow_template/webapi/eyJpbnN0YW5jZV9pZC",
"stop": "https://ait-c7/workflow_template/webapi/eyJpbnN0YW5jZV9pZCI6IDg2LCAiY21kI",
"instance_id": 86,
"errors": "https://ait-c7/workflow_template/webapi/eyJpbnN0YW5jZV9pZCI6IDg2LCAiY2",
"ended_transfers": "https://ait-c7/workflow_template/webapi/eyJpbnN0YW5jZV9pZCI6ID",
"active_transfers": "https://ait-c7/workflow_template/webapi/eyJpbnN0YW5jZV9pZCI",
"events": "https://ait-c7/workflow_template/webapi/eyJpbnN0YW5jZV9pZCI6IDg2"
}

You may pass additional parameters in your post data. They will be available in gc context during execution of the workflow.

Helper tab

tab

Imports
Lets you import Python libraries. Imports are global, and are available inside User functions and any evaluated fields.

User functions
User functions are global, and any value needed inside the function has to be passed as parameter.

Variables
Variables allow you to repeat frequently used code. It is one-time evaluated, only if needed.

Every object defined here will be available everywhere during Workflow execution.