Every worker inside the Everysk Platform returns data objetcts to the workflow, which might be used by other workers. Inside the developer section of worker you are able to customize which data a worker will return to the workflow.
Below you can find all data types accepted:
- string
- number
- boolean
- date
- list(string)
- object
- portfolio
- datastore
- report
- file
Example
When using a worker that must returns a Everysk portfolio object to the workflow you must set the data that will be returned. You must create a list of dictionaries. Each object will contain value, label, type and nested_outputs (this last one, only if there is any other data depending on the current object). The nested_ouputs property must be a list of dictionaries containing the same properties above.
If a dicitionary type is set as a list, then you must add a list_item_type property specifying what types of data will be stored in that list.
[
{
"value": "portfolio",
"label": "Portfolio",
"type": "portfolio",
"nested_outputs": [
{
"value": "id",
"label": "ID",
"type": "string"
},
{
"value": "name",
"label": "Name",
"type": "string"
},
{
"value": "securities",
"label": "Securities",
"type": "list",
"list_item_type": "object",
"nested_outputs": [
{
"value": "id",
"label": "ID",
"type": "list",
"list_item_type": "string"
},
{
"value": "symbol",
"label": "Symbol",
"type": "list",
"list_item_type": "string"
},
{
"value": "quantity",
"label": "Quantity",
"type": "list",
"list_item_type": "number"
}
]
}
]
}
]