Execute Javascript code
Task in alpha phase
This Data Factory task is in phase. You can contact the Product-Live team at contact@product-live.com if you want more details and get an early access.
This task allows to execute Javascript code to produce a result based on the given input parameters.
Task name:
Max execution time (secondes):
Examples
json
{
"name": "code-execute-javascript",
"taskReferenceName": "get_input",
"description": "Initialize job inputs",
"inputParameters": {
"data": {
"number": 3
},
"expression": "function f() { return $.data.number % 2 === 0; }",
},
"type": "SUB_WORKFLOW",
"startDelay": 0,
"optional": false
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
Definition
Property | Type | Required | Description |
---|---|---|---|
The name (or type) of the task | |||
The unique name of the task in your job. It is used to reference this task in the workflow. | |||
The functional description of this task in your job. | |||
The type of the task. It must be SUB_WORKFLOW . | |||
true : the job continues if there is an error on this task. false : the job fails. | |||
Input parameters of the task. See below |
Inputs Parameters
WARNING
This task does not support the Data Factory variable as an input parameter.
Property | Type | Required | Description |
---|---|---|---|
The data to be used by the Javascript code | |||
The Javascript code to be executed |
Outputs
Property | Type | Description |
---|---|---|
The result of the Javascript code execution |