diff --git a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/a.json b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/a.json index aa9476666..000a7b692 100644 --- a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/a.json +++ b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/a.json @@ -1 +1,89 @@ -{"id":"5d8015cea7b44c96","definitionId":"7fe314161d2d2ac6","name":"A","createdAt":"2023-11-15T13:55:38.86581+00:00","version":1,"toolVersion":"3.0.0.0","variables":[],"inputs":[],"outputs":[{"type":"Object","name":"Output1","displayName":"Output 1","category":"Primitives","isArray":false}],"outcomes":[],"customProperties":{"Elsa:WorkflowContextProviderTypes":[]},"isReadonly":false,"isLatest":true,"isPublished":true,"options":{"usableAsActivity":true,"autoUpdateConsumingWorkflows":true},"root":{"type":"Elsa.Flowchart","version":1,"id":"d84ccfca1b90bc0c","nodeId":"Workflow1:d84ccfca1b90bc0c","metadata":{},"customProperties":{"source":"FlowchartJsonConverter.cs:47","notFoundConnections":[],"canStartWorkflow":false,"runAsynchronously":false},"activities":[{"outputName":{"typeName":"String","expression":{"type":"Literal","value":"Output1"},"memoryReference":{"id":"a6389a28e986c6ff:input-0"}},"outputValue":{"typeName":"Object","expression":{"type":"Literal","value":"Foo"},"memoryReference":{"id":"a6389a28e986c6ff:input-1"}},"id":"a6389a28e986c6ff","nodeId":"Workflow1:d84ccfca1b90bc0c:a6389a28e986c6ff","name":"SetOutput1","type":"Elsa.SetOutput","version":1,"customProperties":{"canStartWorkflow":false,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":-60,"y":240},"size":{"width":107.734375,"height":50}}}}],"connections":[]}} \ No newline at end of file +{ + "id": "5d8015cea7b44c96", + "definitionId": "7fe314161d2d2ac6", + "name": "A", + "createdAt": "2023-11-15T13:55:38.86581+00:00", + "version": 1, + "toolVersion": "3.0.0.0", + "variables": [], + "inputs": [], + "outputs": [ + { + "type": "Object", + "name": "Output1", + "displayName": "Output 1", + "category": "Primitives", + "isArray": false + } + ], + "outcomes": [], + "customProperties": { + "Elsa:WorkflowContextProviderTypes": [] + }, + "isReadonly": false, + "isLatest": true, + "isPublished": true, + "options": { + "usableAsActivity": true, + "autoUpdateConsumingWorkflows": true + }, + "root": { + "type": "Elsa.Flowchart", + "version": 1, + "id": "d84ccfca1b90bc0c", + "nodeId": "Workflow1:d84ccfca1b90bc0c", + "metadata": {}, + "customProperties": { + "source": "FlowchartJsonConverter.cs:47", + "notFoundConnections": [], + "canStartWorkflow": false, + "runAsynchronously": false + }, + "activities": [ + { + "outputName": { + "typeName": "String", + "expression": { + "type": "Literal", + "value": "Output1" + }, + "memoryReference": { + "id": "a6389a28e986c6ff:input-0" + } + }, + "outputValue": { + "typeName": "Object", + "expression": { + "type": "Literal", + "value": "Foo" + }, + "memoryReference": { + "id": "a6389a28e986c6ff:input-1" + } + }, + "id": "a6389a28e986c6ff", + "nodeId": "Workflow1:d84ccfca1b90bc0c:a6389a28e986c6ff", + "name": "SetOutput1", + "type": "Elsa.SetOutput", + "version": 1, + "customProperties": { + "canStartWorkflow": false, + "runAsynchronously": false + }, + "metadata": { + "designer": { + "position": { + "x": -60, + "y": 240 + }, + "size": { + "width": 107.734375, + "height": 50 + } + } + } + } + ], + "connections": [] + } +} \ No newline at end of file diff --git a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/b.json b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/b.json index ad8e6b858..5c2ac2259 100644 --- a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/b.json +++ b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/b.json @@ -1 +1,86 @@ -{"id":"d5221501eeb78037","definitionId":"8c751e0c53821439","name":"B","createdAt":"2023-11-15T13:59:18.773434+00:00","version":1,"toolVersion":"3.0.0.0","variables":[],"inputs":[],"outputs":[{"type":"Object","name":"Output1","displayName":"Output 1","category":"Primitives","isArray":false}],"outcomes":[],"customProperties":{"Elsa:WorkflowContextProviderTypes":[]},"isReadonly":false,"isLatest":true,"isPublished":true,"options":{"usableAsActivity":true,"autoUpdateConsumingWorkflows":true},"root":{"type":"Elsa.Flowchart","version":1,"id":"49a24a01a4c318de","nodeId":"Workflow1:49a24a01a4c318de","metadata":{},"customProperties":{"source":"FlowchartJsonConverter.cs:47","notFoundConnections":[],"canStartWorkflow":false,"runAsynchronously":false},"activities":[{"script":{"typeName":"String","expression":{"type":"Literal","value":"return \u0022Bar\u0022;"},"memoryReference":{"id":"247da1e267d76f80:input-0"}},"possibleOutcomes":null,"result":{"typeName":"Object","memoryReference":{"id":"Output1"}},"id":"247da1e267d76f80","nodeId":"Workflow1:49a24a01a4c318de:247da1e267d76f80","name":"RunCSharp1","type":"Elsa.RunCSharp","version":1,"customProperties":{"canStartWorkflow":false,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":-200,"y":-140},"size":{"width":83.640625,"height":50}}}}],"connections":[]}} \ No newline at end of file +{ + "id": "d5221501eeb78037", + "definitionId": "8c751e0c53821439", + "name": "B", + "createdAt": "2023-11-15T13:59:18.773434+00:00", + "version": 1, + "toolVersion": "3.0.0.0", + "variables": [], + "inputs": [], + "outputs": [ + { + "type": "Object", + "name": "Output1", + "displayName": "Output 1", + "category": "Primitives", + "isArray": false + } + ], + "outcomes": [], + "customProperties": { + "Elsa:WorkflowContextProviderTypes": [] + }, + "isReadonly": false, + "isLatest": true, + "isPublished": true, + "options": { + "usableAsActivity": true, + "autoUpdateConsumingWorkflows": true + }, + "root": { + "type": "Elsa.Flowchart", + "version": 1, + "id": "49a24a01a4c318de", + "nodeId": "Workflow1:49a24a01a4c318de", + "metadata": {}, + "customProperties": { + "source": "FlowchartJsonConverter.cs:47", + "notFoundConnections": [], + "canStartWorkflow": false, + "runAsynchronously": false + }, + "activities": [ + { + "script": { + "typeName": "String", + "expression": { + "type": "Literal", + "value": "return \u0022Bar\u0022;" + }, + "memoryReference": { + "id": "247da1e267d76f80:input-0" + } + }, + "possibleOutcomes": null, + "result": { + "typeName": "Object", + "memoryReference": { + "id": "Output1" + } + }, + "id": "247da1e267d76f80", + "nodeId": "Workflow1:49a24a01a4c318de:247da1e267d76f80", + "name": "RunCSharp1", + "type": "Elsa.RunCSharp", + "version": 1, + "customProperties": { + "canStartWorkflow": false, + "runAsynchronously": false + }, + "metadata": { + "designer": { + "position": { + "x": -200, + "y": -140 + }, + "size": { + "width": 83.640625, + "height": 50 + } + } + } + } + ], + "connections": [] + } +} \ No newline at end of file diff --git a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/c.json b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/c.json index 1295f5cda..ea77423f7 100644 --- a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/c.json +++ b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/c.json @@ -1 +1,130 @@ -{"id":"c4041d72854d317c","definitionId":"8472bcf9ca261e55","name":"C","createdAt":"2023-11-15T14:05:30.708042+00:00","version":6,"toolVersion":"3.0.0.0","variables":[],"inputs":[],"outputs":[{"type":"Object","name":"Output1","displayName":"Output 1","category":"Primitives","isArray":false},{"type":"Object","name":"Output2","displayName":"Output 2","category":"Primitives","isArray":false}],"outcomes":[],"customProperties":{"Elsa:WorkflowContextProviderTypes":[]},"isReadonly":false,"isLatest":true,"isPublished":true,"options":{"usableAsActivity":true,"autoUpdateConsumingWorkflows":true},"root":{"type":"Elsa.Flowchart","version":1,"id":"6ee60c9988b58904","nodeId":"Workflow1:6ee60c9988b58904","metadata":{},"customProperties":{"source":"FlowchartJsonConverter.cs:47","notFoundConnections":[],"canStartWorkflow":false,"runAsynchronously":false},"activities":[{"workflowDefinitionId":"7fe314161d2d2ac6","workflowDefinitionVersionId":"5d8015cea7b44c96","latestAvailablePublishedVersion":1,"latestAvailablePublishedVersionId":"5d8015cea7b44c96","id":"67daca2a2fc729b6","nodeId":"Workflow1:6ee60c9988b58904:67daca2a2fc729b6","name":"A1","type":"A","version":1,"customProperties":{"canStartWorkflow":false,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":-311.5,"y":-145},"size":{"width":41.59375,"height":50}}},"output1":{"typeName":"Object","memoryReference":{"id":"Output1"}}},{"workflowDefinitionId":"8c751e0c53821439","workflowDefinitionVersionId":"d5221501eeb78037","latestAvailablePublishedVersion":1,"latestAvailablePublishedVersionId":"d5221501eeb78037","id":"d152d5815dcdea0d","nodeId":"Workflow1:6ee60c9988b58904:d152d5815dcdea0d","name":"B1","type":"B","version":1,"customProperties":{"canStartWorkflow":false,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":-194.5,"y":-145},"size":{"width":41.125,"height":50}}},"output1":{"typeName":"Object","memoryReference":{"id":"Output2"}}}],"connections":[{"source":{"activity":"67daca2a2fc729b6","port":"Done"},"target":{"activity":"d152d5815dcdea0d","port":"In"}}]}} \ No newline at end of file +{ + "id": "c4041d72854d317c", + "definitionId": "8472bcf9ca261e55", + "name": "C", + "createdAt": "2023-11-15T14:05:30.708042+00:00", + "version": 6, + "toolVersion": "3.0.0.0", + "variables": [], + "inputs": [], + "outputs": [ + { + "type": "Object", + "name": "Output1", + "displayName": "Output 1", + "category": "Primitives", + "isArray": false + }, + { + "type": "Object", + "name": "Output2", + "displayName": "Output 2", + "category": "Primitives", + "isArray": false + } + ], + "outcomes": [], + "customProperties": { + "Elsa:WorkflowContextProviderTypes": [] + }, + "isReadonly": false, + "isLatest": true, + "isPublished": true, + "options": { + "usableAsActivity": true, + "autoUpdateConsumingWorkflows": true + }, + "root": { + "type": "Elsa.Flowchart", + "version": 1, + "id": "6ee60c9988b58904", + "nodeId": "Workflow1:6ee60c9988b58904", + "metadata": {}, + "customProperties": { + "source": "FlowchartJsonConverter.cs:47", + "notFoundConnections": [], + "canStartWorkflow": false, + "runAsynchronously": false + }, + "activities": [ + { + "workflowDefinitionId": "7fe314161d2d2ac6", + "workflowDefinitionVersionId": "5d8015cea7b44c96", + "latestAvailablePublishedVersion": 1, + "latestAvailablePublishedVersionId": "5d8015cea7b44c96", + "id": "67daca2a2fc729b6", + "nodeId": "Workflow1:6ee60c9988b58904:67daca2a2fc729b6", + "name": "A1", + "type": "A", + "version": 1, + "customProperties": { + "canStartWorkflow": false, + "runAsynchronously": false + }, + "metadata": { + "designer": { + "position": { + "x": -311.5, + "y": -145 + }, + "size": { + "width": 41.59375, + "height": 50 + } + } + }, + "output1": { + "typeName": "Object", + "memoryReference": { + "id": "Output1" + } + } + }, + { + "workflowDefinitionId": "8c751e0c53821439", + "workflowDefinitionVersionId": "d5221501eeb78037", + "latestAvailablePublishedVersion": 1, + "latestAvailablePublishedVersionId": "d5221501eeb78037", + "id": "d152d5815dcdea0d", + "nodeId": "Workflow1:6ee60c9988b58904:d152d5815dcdea0d", + "name": "B1", + "type": "B", + "version": 1, + "customProperties": { + "canStartWorkflow": false, + "runAsynchronously": false + }, + "metadata": { + "designer": { + "position": { + "x": -194.5, + "y": -145 + }, + "size": { + "width": 41.125, + "height": 50 + } + } + }, + "output1": { + "typeName": "Object", + "memoryReference": { + "id": "Output2" + } + } + } + ], + "connections": [ + { + "source": { + "activity": "67daca2a2fc729b6", + "port": "Done" + }, + "target": { + "activity": "d152d5815dcdea0d", + "port": "In" + } + } + ] + } +} \ No newline at end of file diff --git a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/calculator.json b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/calculator.json index 8eadac363..716f1e9f4 100644 --- a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/calculator.json +++ b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/calculator.json @@ -1 +1,137 @@ -{"id":"Wv2qJngeBUy6nauIj3WZxg","definitionId":"g-yf4Gck40S_T1E5pW8OVA","name":"Calculator","createdAt":"2023-10-18T17:22:19.425264+00:00","version":5,"toolVersion":"3.0.0.0","variables":[{"id":"1a3c8e08fbf04b42b01f5df8e6296b74","name":"TheSum","typeName":"Int32","isArray":false,"storageDriverTypeName":"Elsa.Workflows.Core.Services.WorkflowStorageDriver, Elsa.Workflows.Core"}],"inputs":[],"outputs":[],"outcomes":[],"customProperties":{},"isReadonly":false,"isLatest":true,"isPublished":true,"options":{"autoUpdateConsumingWorkflows":false},"root":{"type":"Elsa.Flowchart","version":1,"id":"GGOfdS1e60-vuDvSskzt6A","metadata":{},"customProperties":{"source":"FlowchartJsonConverter.cs:46","notFoundConnections":[],"canStartWorkflow":false,"runAsynchronously":false},"activities":[{"workflowDefinitionId":"P4X-srRSDUeKpFHiDXMW-w","workflowDefinitionVersionId":"E02197RyVk6VyofGoO6YJQ","latestAvailablePublishedVersion":3,"latestAvailablePublishedVersionId":"E02197RyVk6VyofGoO6YJQ","id":"WDS8owJicUuwae0D5GPbZw","name":"Sum1","type":"Sum","version":3,"customProperties":{"canStartWorkflow":false,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":-150.5,"y":-173},"size":{"width":94.765625,"height":116.015625}}},"a":{"typeName":"Int32","expression":{"type":"Literal","value":"4"},"memoryReference":{"id":"WDS8owJicUuwae0D5GPbZw:input-0"}},"b":{"typeName":"Int32","expression":{"type":"Literal","value":"5"},"memoryReference":{"id":"WDS8owJicUuwae0D5GPbZw:input-1"}},"result":{"typeName":"Int32","memoryReference":{"id":"1a3c8e08fbf04b42b01f5df8e6296b74"}}},{"text":{"typeName":"String","expression":{"type":"JavaScript","value":"\u0060Result: ${getTheSum()}\u0060"},"memoryReference":{"id":"NDqbEDwcIUu7zJ0FDxbHdg:input-0"}},"id":"NDqbEDwcIUu7zJ0FDxbHdg","name":"WriteLine1","type":"Elsa.WriteLine","version":1,"customProperties":{"canStartWorkflow":false,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":80,"y":-139.9921875},"size":{"width":139.296875,"height":50}}}}],"connections":[{"source":{"activity":"WDS8owJicUuwae0D5GPbZw","port":"Done"},"target":{"activity":"NDqbEDwcIUu7zJ0FDxbHdg","port":"In"}}]}} \ No newline at end of file +{ + "id": "Wv2qJngeBUy6nauIj3WZxg", + "definitionId": "g-yf4Gck40S_T1E5pW8OVA", + "name": "Calculator", + "createdAt": "2023-10-18T17:22:19.425264+00:00", + "version": 5, + "toolVersion": "3.0.0.0", + "variables": [ + { + "id": "1a3c8e08fbf04b42b01f5df8e6296b74", + "name": "TheSum", + "typeName": "Int32", + "isArray": false, + "storageDriverTypeName": "Elsa.Workflows.Core.Services.WorkflowStorageDriver, Elsa.Workflows.Core" + } + ], + "inputs": [], + "outputs": [], + "outcomes": [], + "customProperties": {}, + "isReadonly": false, + "isLatest": true, + "isPublished": true, + "options": { + "autoUpdateConsumingWorkflows": false + }, + "root": { + "type": "Elsa.Flowchart", + "version": 1, + "id": "GGOfdS1e60-vuDvSskzt6A", + "metadata": {}, + "customProperties": { + "source": "FlowchartJsonConverter.cs:46", + "notFoundConnections": [], + "canStartWorkflow": false, + "runAsynchronously": false + }, + "activities": [ + { + "workflowDefinitionId": "P4X-srRSDUeKpFHiDXMW-w", + "workflowDefinitionVersionId": "E02197RyVk6VyofGoO6YJQ", + "latestAvailablePublishedVersion": 3, + "latestAvailablePublishedVersionId": "E02197RyVk6VyofGoO6YJQ", + "id": "WDS8owJicUuwae0D5GPbZw", + "name": "Sum1", + "type": "Sum", + "version": 3, + "customProperties": { + "canStartWorkflow": false, + "runAsynchronously": false + }, + "metadata": { + "designer": { + "position": { + "x": -150.5, + "y": -173 + }, + "size": { + "width": 94.765625, + "height": 116.015625 + } + } + }, + "a": { + "typeName": "Int32", + "expression": { + "type": "Literal", + "value": "4" + }, + "memoryReference": { + "id": "WDS8owJicUuwae0D5GPbZw:input-0" + } + }, + "b": { + "typeName": "Int32", + "expression": { + "type": "Literal", + "value": "5" + }, + "memoryReference": { + "id": "WDS8owJicUuwae0D5GPbZw:input-1" + } + }, + "result": { + "typeName": "Int32", + "memoryReference": { + "id": "1a3c8e08fbf04b42b01f5df8e6296b74" + } + } + }, + { + "text": { + "typeName": "String", + "expression": { + "type": "JavaScript", + "value": "\u0060Result: ${getTheSum()}\u0060" + }, + "memoryReference": { + "id": "NDqbEDwcIUu7zJ0FDxbHdg:input-0" + } + }, + "id": "NDqbEDwcIUu7zJ0FDxbHdg", + "name": "WriteLine1", + "type": "Elsa.WriteLine", + "version": 1, + "customProperties": { + "canStartWorkflow": false, + "runAsynchronously": false + }, + "metadata": { + "designer": { + "position": { + "x": 80, + "y": -139.9921875 + }, + "size": { + "width": 139.296875, + "height": 50 + } + } + } + } + ], + "connections": [ + { + "source": { + "activity": "WDS8owJicUuwae0D5GPbZw", + "port": "Done" + }, + "target": { + "activity": "NDqbEDwcIUu7zJ0FDxbHdg", + "port": "In" + } + } + ] + } +} \ No newline at end of file diff --git a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/consumer.json b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/consumer.json index ff6b7bae6..f0a582b93 100644 --- a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/consumer.json +++ b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/consumer.json @@ -80,7 +80,7 @@ "typeName": "String", "expression": { "type": "CSharp", - "value": "return Variable.Variable1.ToString();" + "value": "return Variables.Variable1.ToString();" }, "memoryReference": { "id": "b3b9071594676f52:input-0" diff --git a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/d.json b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/d.json index 0c2dce2f3..87c2a5124 100644 --- a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/d.json +++ b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/d.json @@ -1 +1,135 @@ -{"id":"cbf12a4a3d1a52ef","definitionId":"133353946cd83e1d","name":"D","createdAt":"2023-11-15T14:07:04.052579+00:00","version":1,"toolVersion":"3.0.0.0","variables":[{"id":"f1106ece80fd17a8","name":"Variable1","typeName":"Object","isArray":false,"storageDriverTypeName":"Elsa.Workflows.Core.Services.WorkflowStorageDriver, Elsa.Workflows.Core"},{"id":"3a8b25edc9bf109","name":"Variable2","typeName":"Object","isArray":false,"storageDriverTypeName":"Elsa.Workflows.Core.Services.WorkflowStorageDriver, Elsa.Workflows.Core"}],"inputs":[],"outputs":[],"outcomes":[],"customProperties":{"Elsa:WorkflowContextProviderTypes":[]},"isReadonly":false,"isLatest":true,"isPublished":true,"options":{"autoUpdateConsumingWorkflows":false},"root":{"type":"Elsa.Flowchart","version":1,"id":"26838161a6f32e2e","nodeId":"Workflow1:26838161a6f32e2e","metadata":{},"customProperties":{"source":"FlowchartJsonConverter.cs:47","notFoundConnections":[],"canStartWorkflow":false,"runAsynchronously":false},"activities":[{"workflowDefinitionId":"8472bcf9ca261e55","workflowDefinitionVersionId":"c4041d72854d317c","latestAvailablePublishedVersion":6,"latestAvailablePublishedVersionId":"c4041d72854d317c","id":"db7bda6a28d8de82","nodeId":"Workflow1:26838161a6f32e2e:db7bda6a28d8de82","name":"C1","type":"C","version":6,"customProperties":{"canStartWorkflow":false,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":-298.5,"y":-168},"size":{"width":41.578125,"height":50}}},"output1":{"typeName":"Object","memoryReference":{"id":"f1106ece80fd17a8"}},"output2":{"typeName":"Object","memoryReference":{"id":"3a8b25edc9bf109"}}},{"text":{"typeName":"String","expression":{"type":"CSharp","value":"return $\u0022{Variable.Variable1}{Variable.Variable2}\u0022;"},"memoryReference":{"id":"a815c4cf1e668419:input-0"}},"id":"a815c4cf1e668419","nodeId":"Workflow1:26838161a6f32e2e:a815c4cf1e668419","name":"WriteLine1","type":"Elsa.WriteLine","version":1,"customProperties":{"canStartWorkflow":false,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":-139.5,"y":-168},"size":{"width":139.296875,"height":50}}}}],"connections":[{"source":{"activity":"db7bda6a28d8de82","port":"Done"},"target":{"activity":"a815c4cf1e668419","port":"In"}}]}} \ No newline at end of file +{ + "id": "cbf12a4a3d1a52ef", + "definitionId": "133353946cd83e1d", + "name": "D", + "createdAt": "2023-11-15T14:07:04.052579+00:00", + "version": 1, + "toolVersion": "3.0.0.0", + "variables": [ + { + "id": "f1106ece80fd17a8", + "name": "Variable1", + "typeName": "Object", + "isArray": false, + "storageDriverTypeName": "Elsa.Workflows.Core.Services.WorkflowStorageDriver, Elsa.Workflows.Core" + }, + { + "id": "3a8b25edc9bf109", + "name": "Variable2", + "typeName": "Object", + "isArray": false, + "storageDriverTypeName": "Elsa.Workflows.Core.Services.WorkflowStorageDriver, Elsa.Workflows.Core" + } + ], + "inputs": [], + "outputs": [], + "outcomes": [], + "customProperties": { + "Elsa:WorkflowContextProviderTypes": [] + }, + "isReadonly": false, + "isLatest": true, + "isPublished": true, + "options": { + "autoUpdateConsumingWorkflows": false + }, + "root": { + "type": "Elsa.Flowchart", + "version": 1, + "id": "26838161a6f32e2e", + "nodeId": "Workflow1:26838161a6f32e2e", + "metadata": {}, + "customProperties": { + "source": "FlowchartJsonConverter.cs:47", + "notFoundConnections": [], + "canStartWorkflow": false, + "runAsynchronously": false + }, + "activities": [ + { + "workflowDefinitionId": "8472bcf9ca261e55", + "workflowDefinitionVersionId": "c4041d72854d317c", + "latestAvailablePublishedVersion": 6, + "latestAvailablePublishedVersionId": "c4041d72854d317c", + "id": "db7bda6a28d8de82", + "nodeId": "Workflow1:26838161a6f32e2e:db7bda6a28d8de82", + "name": "C1", + "type": "C", + "version": 6, + "customProperties": { + "canStartWorkflow": false, + "runAsynchronously": false + }, + "metadata": { + "designer": { + "position": { + "x": -298.5, + "y": -168 + }, + "size": { + "width": 41.578125, + "height": 50 + } + } + }, + "output1": { + "typeName": "Object", + "memoryReference": { + "id": "f1106ece80fd17a8" + } + }, + "output2": { + "typeName": "Object", + "memoryReference": { + "id": "3a8b25edc9bf109" + } + } + }, + { + "text": { + "typeName": "String", + "expression": { + "type": "CSharp", + "value": "return $\u0022{Variables.Variable1}{Variables.Variable2}\u0022;" + }, + "memoryReference": { + "id": "a815c4cf1e668419:input-0" + } + }, + "id": "a815c4cf1e668419", + "nodeId": "Workflow1:26838161a6f32e2e:a815c4cf1e668419", + "name": "WriteLine1", + "type": "Elsa.WriteLine", + "version": 1, + "customProperties": { + "canStartWorkflow": false, + "runAsynchronously": false + }, + "metadata": { + "designer": { + "position": { + "x": -139.5, + "y": -168 + }, + "size": { + "width": 139.296875, + "height": 50 + } + } + } + } + ], + "connections": [ + { + "source": { + "activity": "db7bda6a28d8de82", + "port": "Done" + }, + "target": { + "activity": "a815c4cf1e668419", + "port": "In" + } + } + ] + } +} \ No newline at end of file diff --git a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/sum.json b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/sum.json index 147fc8c16..f1e2c7215 100644 --- a/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/sum.json +++ b/test/integration/Elsa.IntegrationTests/Scenarios/ParentChildOutputMapping/Workflows/sum.json @@ -1 +1,102 @@ -{"id":"E02197RyVk6VyofGoO6YJQ","definitionId":"P4X-srRSDUeKpFHiDXMW-w","name":"Sum","createdAt":"2023-10-18T16:37:20.670222+00:00","version":3,"toolVersion":"3.0.0.0","variables":[],"inputs":[{"uiHint":"single-line","storageDriverType":"Elsa.Workflows.Core.Services.WorkflowStorageDriver, Elsa.Workflows.Core","type":"Int32","name":"A","displayName":"A","category":"Primitives","isArray":false},{"uiHint":"single-line","storageDriverType":"Elsa.Workflows.Core.Services.WorkflowStorageDriver, Elsa.Workflows.Core","type":"Int32","name":"B","displayName":"B","category":"Primitives","isArray":false}],"outputs":[{"type":"Int32","name":"Result","displayName":"Result","category":"Primitives","isArray":false}],"outcomes":[],"customProperties":{},"isReadonly":false,"isLatest":true,"isPublished":true,"options":{"usableAsActivity":true,"autoUpdateConsumingWorkflows":true,"activityCategory":"Custom"},"root":{"type":"Elsa.Flowchart","version":1,"id":"4FUOkS0zNUGe8JyVY3Sqmw","metadata":{},"customProperties":{"source":"FlowchartJsonConverter.cs:46","notFoundConnections":[],"canStartWorkflow":false,"runAsynchronously":false},"activities":[{"possibleOutcomes":null,"script":{"typeName":"String","expression":{"type":"Literal","value":"getA() \u002B getB()"},"memoryReference":{"id":"weO38K8Dfk-cSK8KVIiQMg:input-1"}},"result":{"typeName":"Object","memoryReference":{"id":"Result"}},"id":"weO38K8Dfk-cSK8KVIiQMg","name":"RunJavaScript1","type":"Elsa.RunJavaScript","version":1,"customProperties":{"canStartWorkflow":false,"runAsynchronously":false},"metadata":{"designer":{"position":{"x":-240,"y":300},"size":{"width":175.6875,"height":50}}}}],"connections":[]}} \ No newline at end of file +{ + "id": "E02197RyVk6VyofGoO6YJQ", + "definitionId": "P4X-srRSDUeKpFHiDXMW-w", + "name": "Sum", + "createdAt": "2023-10-18T16:37:20.670222+00:00", + "version": 3, + "toolVersion": "3.0.0.0", + "variables": [], + "inputs": [ + { + "uiHint": "single-line", + "storageDriverType": "Elsa.Workflows.Core.Services.WorkflowStorageDriver, Elsa.Workflows.Core", + "type": "Int32", + "name": "A", + "displayName": "A", + "category": "Primitives", + "isArray": false + }, + { + "uiHint": "single-line", + "storageDriverType": "Elsa.Workflows.Core.Services.WorkflowStorageDriver, Elsa.Workflows.Core", + "type": "Int32", + "name": "B", + "displayName": "B", + "category": "Primitives", + "isArray": false + } + ], + "outputs": [ + { + "type": "Int32", + "name": "Result", + "displayName": "Result", + "category": "Primitives", + "isArray": false + } + ], + "outcomes": [], + "customProperties": {}, + "isReadonly": false, + "isLatest": true, + "isPublished": true, + "options": { + "usableAsActivity": true, + "autoUpdateConsumingWorkflows": true, + "activityCategory": "Custom" + }, + "root": { + "type": "Elsa.Flowchart", + "version": 1, + "id": "4FUOkS0zNUGe8JyVY3Sqmw", + "metadata": {}, + "customProperties": { + "source": "FlowchartJsonConverter.cs:46", + "notFoundConnections": [], + "canStartWorkflow": false, + "runAsynchronously": false + }, + "activities": [ + { + "possibleOutcomes": null, + "script": { + "typeName": "String", + "expression": { + "type": "Literal", + "value": "getA() \u002B getB()" + }, + "memoryReference": { + "id": "weO38K8Dfk-cSK8KVIiQMg:input-1" + } + }, + "result": { + "typeName": "Object", + "memoryReference": { + "id": "Result" + } + }, + "id": "weO38K8Dfk-cSK8KVIiQMg", + "name": "RunJavaScript1", + "type": "Elsa.RunJavaScript", + "version": 1, + "customProperties": { + "canStartWorkflow": false, + "runAsynchronously": false + }, + "metadata": { + "designer": { + "position": { + "x": -240, + "y": 300 + }, + "size": { + "width": 175.6875, + "height": 50 + } + } + } + } + ], + "connections": [] + } +} \ No newline at end of file