Configure a workflow in the Advanced mode
Workflows can also be configured directly using a JSON configuration. To access the JSON configuration for a new workflow
Objective
Workflows can also be configured directly using a JSON configuration. To access the JSON configuration for a new workflow, click on the Expert tab of the "New Workflow" or "Edit Workflow" window.
Discover the JSON configuration
Users can type directly in the JSON editor to configure a Workflow. The JSON configuration includes more options than the ones available via the GUI.
Workflow parameters reference
In alphabetical order, the parameters are the following:
Example JSON configuration
Below is the JSON configuration of a typical workflow. It has 2 stages with respectively 2 actions in "Stage 1" and 2 action in "Stage 2".
Date perimeter parameters
To define the date perimeter you do so using an absolute date limit (e.g. set in time) or a relative date limit (e.g. calculated off the curent date).
To define an absolute date perimeter use the dateMin & dateMax parameters and enter the dates as string using the format YYYY-MM-DD. For instance, this would let you recompute a workflow between specific dates in the past.
To define a relative date perimeter use the days parameters and enter distance from the current date in days of the lower & upper limits. For instance, this would be used in a daily workflow that would need to only affect data from "the day before yesterday" and "today". The number corresponds to the number of days to subtract from today's date.
Stage parameters
The parameters of stages can also be modified directly from the user interface.
Override configurations
Action configurations
Overriding action configurations lets you reuse the same action in several workflows with different execution parameters without affecting the actions' configurations themselves. For instance lets assume that you have set the perimeter of an action, with a specific set of values: "perimeterValues":["1","2"]
You can reuse this same action with different perimeter values in the same workflow as follow:
This specific example is meaningless but shows you how you can easily define different configurations for the same actions in a single workflow.
Configuration priorities
Configurations can be overriden at the 3 different levels: workflow, stages or actions. The most granular level of configuration applies to all sub-objects. For instance configurations set at the stage level will be overriden by any configurations set at the action level. Let's use the following example to illustrate the priority order:
Following the JSON configuration above, the perimeter values for the different actions run in the workflow will be as follow:
Workflow timeout
If an action within a workflow takes more time than expected, it is possible to set a timeout option to the workflow gets interrupted. The timeout duration is set as the value of the workflow_timeout parameter in a human readable format such as "worfklow_timeout":"1h 10m"
Values are cumulative from one time unit to another. Supported time units include:
Below a JSON configuration example using the workflow timeout option:
Go further
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for a custom analysis of your project.
Ask questions, give your feedback and interact directly with the team building the Data Platform on the dedicated Discord channel.
If you need support with your OVHcloud services, create a request in our Help Centre.
Join our community of users.

