Add project files.

This commit is contained in:
2025-08-18 17:11:43 +03:30
parent 807dc263be
commit e5eb10d604
3943 changed files with 223719 additions and 0 deletions
@@ -0,0 +1,41 @@
using Elsa.Testing.Shared;
using Xunit.Abstractions;
namespace Elsa.Workflows.IntegrationTests.Scenarios.FlowchartCompletion;
/// <summary>
/// Tests for the flowchart completion feature using various workflow setups.
/// </summary>
public class Tests
{
private readonly CapturingTextWriter _capturingTextWriter = new();
private readonly IServiceProvider _services;
public Tests(ITestOutputHelper testOutputHelper)
{
_services = new TestApplicationBuilder(testOutputHelper).WithCapturingTextWriter(_capturingTextWriter).Build();
}
[Theory(DisplayName = "Workflows should complete successfully.")]
[InlineData("workflow1.json")]
[InlineData("workflow2.json")]
[InlineData("workflow3.json")]
[InlineData("workflow4.json")]
[InlineData("workflow5.json")]
[InlineData("workflow6.json")]
public async Task Test1(string workflowFileName)
{
// Populate registries.
await _services.PopulateRegistriesAsync();
// Import workflow.
var fileName = $"Scenarios/FlowchartCompletion/Workflows/{workflowFileName}";
var workflowDefinition = await _services.ImportWorkflowDefinitionAsync(fileName);
// Execute.
var workflowState = await _services.RunWorkflowUntilEndAsync(workflowDefinition.DefinitionId);
// Assert that the workflow has completed.
Assert.Equal(WorkflowStatus.Finished, workflowState.Status);
}
}
@@ -0,0 +1,127 @@
{
"id": "f7f7563b32de444797363df61e5109d3",
"definitionId": "d91eff09eaad43efb9d58332f1f22c82",
"name": "Flows",
"createdAt": "2023-04-18T13:32:26.294066+00:00",
"version": 1,
"variables": [],
"inputs": [],
"outputs": [],
"outcomes": [],
"metadata": {},
"isLatest": true,
"isPublished": false,
"root": {
"type": "Elsa.Flowchart",
"version": 1,
"id": "Flowchart1",
"metadata": {},
"applicationProperties": {
"NotFoundConnectionsKey": []
},
"start": "WriteLine1",
"activities": [
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine1"
},
"memoryReference": {
"id": "WriteLine1:input-1"
}
},
"id": "WriteLine1",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2020,
"y": 2320
}
},
"displayText": "WriteLine1"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine2"
},
"memoryReference": {
"id": "WriteLine2:input-1"
}
},
"id": "WriteLine2",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2260,
"y": 2260
}
},
"displayText": "WriteLine2"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine3"
},
"memoryReference": {
"id": "WriteLine3:input-1"
}
},
"id": "WriteLine3",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2260,
"y": 2380
}
},
"displayText": "WriteLine3"
}
}
],
"connections": [
{
"source": "WriteLine1",
"target": "WriteLine2",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine1",
"target": "WriteLine3",
"sourcePort": "Done",
"targetPort": "In"
}
]
}
}
@@ -0,0 +1,361 @@
{
"id": "dc6576d848aa4f46812356467575705f",
"definitionId": "991a4f39f7074a9988465230cfdb8d81",
"name": "Braided flow",
"createdAt": "2023-04-18T13:45:03.454228+00:00",
"version": 1,
"variables": [],
"inputs": [],
"outputs": [],
"outcomes": [],
"metadata": {},
"isLatest": true,
"isPublished": false,
"root": {
"type": "Elsa.Flowchart",
"version": 1,
"id": "Flowchart1",
"metadata": {},
"applicationProperties": {
"NotFoundConnectionsKey": []
},
"start": "WriteLine1",
"activities": [
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine7"
},
"memoryReference": {
"id": "WriteLine7:input-1"
}
},
"id": "WriteLine7",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2340,
"y": 2220
}
},
"displayText": "WriteLine7"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine9"
},
"memoryReference": {
"id": "WriteLine9:input-1"
}
},
"id": "WriteLine9",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2560,
"y": 2320
}
},
"displayText": "WriteLine9"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine1"
},
"memoryReference": {
"id": "WriteLine1:input-1"
}
},
"id": "WriteLine1",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 1600,
"y": 2320
}
},
"displayText": "WriteLine1"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine2"
},
"memoryReference": {
"id": "WriteLine2:input-1"
}
},
"id": "WriteLine2",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 1820,
"y": 2220
}
},
"displayText": "WriteLine2"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine3"
},
"memoryReference": {
"id": "WriteLine3:input-1"
}
},
"id": "WriteLine3",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 1820,
"y": 2400
}
},
"displayText": "WriteLine3"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine4"
},
"memoryReference": {
"id": "WriteLine4:input-1"
}
},
"id": "WriteLine4",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2060,
"y": 2160
}
},
"displayText": "WriteLine4"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine5"
},
"memoryReference": {
"id": "WriteLine5:input-1"
}
},
"id": "WriteLine5",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2060,
"y": 2320
}
},
"displayText": "WriteLine5"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine6"
},
"memoryReference": {
"id": "WriteLine6:input-1"
}
},
"id": "WriteLine6",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2060,
"y": 2480
}
},
"displayText": "WriteLine6"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine8"
},
"memoryReference": {
"id": "WriteLine8:input-1"
}
},
"id": "WriteLine8",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2340,
"y": 2400
}
},
"displayText": "WriteLine8"
}
}
],
"connections": [
{
"source": "WriteLine5",
"target": "WriteLine7",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine8",
"target": "WriteLine9",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine7",
"target": "WriteLine9",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine1",
"target": "WriteLine2",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine2",
"target": "WriteLine4",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine3",
"target": "WriteLine5",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine1",
"target": "WriteLine3",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine4",
"target": "WriteLine7",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine2",
"target": "WriteLine5",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine6",
"target": "WriteLine8",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine3",
"target": "WriteLine6",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine5",
"target": "WriteLine8",
"sourcePort": "Done",
"targetPort": "In"
}
]
}
}
@@ -0,0 +1,469 @@
{
"id": "01146119d31041c195148662710d95c7",
"definitionId": "abb565fd716f4eb7be0510ab8ff36329",
"name": "Braided delayed flow",
"createdAt": "2023-04-18T14:06:58.250625+00:00",
"version": 4,
"variables": [],
"inputs": [],
"outputs": [],
"outcomes": [],
"metadata": {},
"isLatest": true,
"isPublished": false,
"root": {
"type": "Elsa.Flowchart",
"version": 1,
"id": "Flowchart1",
"metadata": {},
"applicationProperties": {
"NotFoundConnectionsKey": []
},
"start": "WriteLine1",
"activities": [
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine1"
},
"memoryReference": {
"id": "WriteLine1:input-1"
}
},
"id": "WriteLine1",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 1600,
"y": 2320
}
},
"displayText": "WriteLine1"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine2"
},
"memoryReference": {
"id": "WriteLine2:input-1"
}
},
"id": "WriteLine2",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 1820,
"y": 2220
}
},
"displayText": "WriteLine2"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine3"
},
"memoryReference": {
"id": "WriteLine3:input-1"
}
},
"id": "WriteLine3",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 1820,
"y": 2400
}
},
"displayText": "WriteLine3"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine4"
},
"memoryReference": {
"id": "WriteLine4:input-1"
}
},
"id": "WriteLine4",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2060,
"y": 2160
}
},
"displayText": "WriteLine4"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine5"
},
"memoryReference": {
"id": "WriteLine5:input-1"
}
},
"id": "WriteLine5",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2060,
"y": 2320
}
},
"displayText": "WriteLine5"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine6"
},
"memoryReference": {
"id": "WriteLine6:input-1"
}
},
"id": "WriteLine6",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2060,
"y": 2480
}
},
"displayText": "WriteLine6"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine8"
},
"memoryReference": {
"id": "WriteLine8:input-1"
}
},
"id": "WriteLine8",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2460,
"y": 2400
}
},
"displayText": "WriteLine8"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine7"
},
"memoryReference": {
"id": "WriteLine7:input-1"
}
},
"id": "WriteLine7",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2460,
"y": 2240
}
},
"displayText": "WriteLine7"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine9"
},
"memoryReference": {
"id": "WriteLine9:input-1"
}
},
"id": "WriteLine9",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2680,
"y": 2300
}
},
"displayText": "WriteLine9"
}
},
{
"timeSpan": {
"typeName": "TimeSpan",
"expression": {
"type": "Literal",
"value": "00:00:05"
},
"memoryReference": {
"id": "Delay1:input-1"
}
},
"strategy": {
"typeName": "Elsa.Scheduling.Models.DelayBlockingStrategy, Elsa.Scheduling",
"expression": {
"type": "Literal",
"value": "NonBlocking"
},
"memoryReference": {
"id": "Delay1:input-2"
}
},
"autoBlockingThreshold": {
"typeName": "TimeSpan",
"expression": {
"type": "Literal",
"value": "00:00:05"
},
"memoryReference": {
"id": "Delay1:input-3"
}
},
"id": "Delay1",
"type": "Elsa.Delay",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2260,
"y": 2240
}
}
}
},
{
"timeSpan": {
"typeName": "TimeSpan",
"expression": {
"type": "Literal",
"value": "00:00:10"
},
"memoryReference": {
"id": "Delay2:input-1"
}
},
"strategy": {
"typeName": "Elsa.Scheduling.Models.DelayBlockingStrategy, Elsa.Scheduling",
"expression": {
"type": "Literal",
"value": "NonBlocking"
},
"memoryReference": {
"id": "Delay2:input-2"
}
},
"autoBlockingThreshold": {
"typeName": "TimeSpan",
"expression": {
"type": "Literal",
"value": "00:00:05"
},
"memoryReference": {
"id": "Delay2:input-3"
}
},
"id": "Delay2",
"type": "Elsa.Delay",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2280,
"y": 2440
}
}
}
}
],
"connections": [
{
"source": "WriteLine1",
"target": "WriteLine2",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine2",
"target": "WriteLine4",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine3",
"target": "WriteLine5",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine1",
"target": "WriteLine3",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine5",
"target": "WriteLine7",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine2",
"target": "WriteLine5",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine6",
"target": "Delay2",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine3",
"target": "WriteLine6",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine8",
"target": "WriteLine9",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "Delay2",
"target": "WriteLine8",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine5",
"target": "WriteLine8",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "Delay1",
"target": "WriteLine7",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine7",
"target": "WriteLine9",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine4",
"target": "Delay1",
"sourcePort": "Done",
"targetPort": "In"
}
]
}
}
@@ -0,0 +1,415 @@
{
"id": "44200e995aaf429d9975bd7177e271d0",
"definitionId": "7d0420cacaad4ae09c589a0355bbef44",
"name": "Braided conditional delayed flow",
"createdAt": "2023-04-18T14:37:02.902303+00:00",
"version": 1,
"variables": [],
"inputs": [],
"outputs": [],
"outcomes": [],
"metadata": {},
"isLatest": true,
"isPublished": false,
"root": {
"type": "Elsa.Flowchart",
"version": 1,
"id": "Flowchart1",
"metadata": {},
"applicationProperties": {
"NotFoundConnectionsKey": []
},
"start": "WriteLine1",
"activities": [
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine1"
},
"memoryReference": {
"id": "WriteLine1:input-1"
}
},
"id": "WriteLine1",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 1600,
"y": 2320
}
},
"displayText": "WriteLine1"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine2"
},
"memoryReference": {
"id": "WriteLine2:input-1"
}
},
"id": "WriteLine2",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 1820,
"y": 2220
}
},
"displayText": "WriteLine2"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine3"
},
"memoryReference": {
"id": "WriteLine3:input-1"
}
},
"id": "WriteLine3",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 1820,
"y": 2400
}
},
"displayText": "WriteLine3"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine4"
},
"memoryReference": {
"id": "WriteLine4:input-1"
}
},
"id": "WriteLine4",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2060,
"y": 2160
}
},
"displayText": "WriteLine4"
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine6"
},
"memoryReference": {
"id": "WriteLine6:input-1"
}
},
"id": "WriteLine6",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2060,
"y": 2480
}
},
"displayText": "WriteLine6"
}
},
{
"condition": {
"typeName": "Boolean",
"expression": {
"type": "Literal",
"value": "True"
},
"memoryReference": {
"id": "FlowDecision1:input-1"
}
},
"id": "FlowDecision1",
"type": "Elsa.FlowDecision",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2060,
"y": 2320
}
}
}
},
{
"timeSpan": {
"typeName": "TimeSpan",
"expression": {
"type": "Literal",
"value": "00:00:05"
},
"memoryReference": {
"id": "Delay1:input-1"
}
},
"strategy": {
"typeName": "Elsa.Scheduling.Models.DelayBlockingStrategy, Elsa.Scheduling",
"expression": {
"type": "Literal",
"value": "NonBlocking"
},
"memoryReference": {
"id": "Delay1:input-2"
}
},
"autoBlockingThreshold": {
"typeName": "TimeSpan",
"expression": {
"type": "Literal",
"value": "00:00:05"
},
"memoryReference": {
"id": "Delay1:input-3"
}
},
"id": "Delay1",
"type": "Elsa.Delay",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2320,
"y": 2220
}
}
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine7"
},
"memoryReference": {
"id": "WriteLine7:input-1"
}
},
"id": "WriteLine7",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2520,
"y": 2220
}
},
"displayText": "WriteLine7"
}
},
{
"timeSpan": {
"typeName": "TimeSpan",
"expression": {
"type": "Literal",
"value": "00:00:10"
},
"memoryReference": {
"id": "Delay2:input-1"
}
},
"strategy": {
"typeName": "Elsa.Scheduling.Models.DelayBlockingStrategy, Elsa.Scheduling",
"expression": {
"type": "Literal",
"value": "NonBlocking"
},
"memoryReference": {
"id": "Delay2:input-2"
}
},
"autoBlockingThreshold": {
"typeName": "TimeSpan",
"expression": {
"type": "Literal",
"value": "00:00:05"
},
"memoryReference": {
"id": "Delay2:input-3"
}
},
"id": "Delay2",
"type": "Elsa.Delay",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2320,
"y": 2420
}
}
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "WriteLine8"
},
"memoryReference": {
"id": "WriteLine8:input-1"
}
},
"id": "WriteLine8",
"type": "Elsa.WriteLine",
"version": 1,
"canStartWorkflow": false,
"runAsynchronously": false,
"customProperties": {},
"source": null,
"line": null,
"metadata": {
"designer": {
"position": {
"x": 2520,
"y": 2420
}
},
"displayText": "WriteLine8"
}
}
],
"connections": [
{
"source": "WriteLine1",
"target": "WriteLine2",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine2",
"target": "WriteLine4",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine3",
"target": "FlowDecision1",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine1",
"target": "WriteLine3",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "WriteLine3",
"target": "WriteLine6",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "FlowDecision1",
"target": "Delay1",
"sourcePort": "True",
"targetPort": "In"
},
{
"source": "WriteLine2",
"target": "FlowDecision1",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "Delay1",
"target": "WriteLine7",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "Delay2",
"target": "WriteLine8",
"sourcePort": "Done",
"targetPort": "In"
},
{
"source": "FlowDecision1",
"target": "Delay2",
"sourcePort": "False",
"targetPort": "In"
}
]
}
}
@@ -0,0 +1,207 @@
{
"id": "3365d4c0198e459f834b799cbfe91154",
"definitionId": "4aa1e566da264ab6b5495bedb734096d",
"name": "Forking, Containment and Blocking",
"description": "A combination of a fork, a containment and a blocking activity.",
"version": 1,
"toolVersion": "3.0.0.0",
"variables": [],
"inputs": [],
"outputs": [],
"outcomes": [],
"customProperties": {},
"isReadonly": false,
"isLatest": true,
"isPublished": true,
"root": {
"type": "Elsa.Flowchart",
"version": 1,
"id": "uEnFWEdaWkadgIMHT2umLA",
"metadata": {},
"customProperties": {
"NotFoundConnectionsKey": [],
"canStartWorkflow": false,
"runAsynchronously": false
},
"activities": [
{
"id": "MLDV_altcUO5MwP7p5xJWw",
"name": "Start1",
"type": "Elsa.Start",
"version": 1,
"customProperties": {
"canStartWorkflow": false,
"runAsynchronously": false
},
"metadata": {
"designer": {
"position": {
"x": -480,
"y": -566.046875
},
"size": {
"width": 102.21875,
"height": 50
}
}
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "Intermediary"
},
"memoryReference": {
"id": "EIh3Q0Um1U-QSCh1b3GBjQ:input-0"
}
},
"id": "EIh3Q0Um1U-QSCh1b3GBjQ",
"name": "WriteLine1",
"type": "Elsa.WriteLine",
"version": 1,
"customProperties": {
"canStartWorkflow": false,
"runAsynchronously": false
},
"metadata": {
"designer": {
"position": {
"x": -228.5,
"y": -476.046875
},
"size": {
"width": 139.296875,
"height": 50
}
}
}
},
{
"text": null,
"id": "0Z7Velr5CEW_r7YYoeEjBQ",
"name": "WriteLine2",
"type": "Elsa.WriteLine",
"version": 1,
"customProperties": {
"canStartWorkflow": false,
"runAsynchronously": false
},
"metadata": {
"designer": {
"position": {
"x": 69.34375,
"y": -476.046875
},
"size": {
"width": 139.296875,
"height": 50
}
}
}
},
{
"body": {
"type": "Elsa.Flowchart",
"version": 1,
"id": "NJ5fh2bUWU-TxWeXsbNaSg",
"metadata": {},
"customProperties": {
"NotFoundConnectionsKey": [],
"canStartWorkflow": false,
"runAsynchronously": false
},
"activities": [
{
"eventName": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "Event4"
},
"memoryReference": {
"id": "8KVHRw-WpUizyxOq0C6Nvg:input-0"
}
},
"result": null,
"id": "8KVHRw-WpUizyxOq0C6Nvg",
"name": "Event1",
"type": "Elsa.Event",
"version": 1,
"customProperties": {
"canStartWorkflow": false,
"runAsynchronously": false
},
"metadata": {
"designer": {
"position": {
"x": -840,
"y": -500
},
"size": {
"width": 106.828125,
"height": 50
}
}
}
}
],
"connections": []
},
"id": "HG4wfBhvlEW_149HwNyzHw",
"name": "FlowNode1",
"type": "Elsa.FlowNode",
"version": 1,
"customProperties": {
"canStartWorkflow": false,
"runAsynchronously": false
},
"metadata": {
"designer": {
"position": {
"x": -228.5,
"y": -704.109375
},
"size": {
"width": 211.15625,
"height": 120
}
}
}
}
],
"connections": [
{
"source": {
"activity": "MLDV_altcUO5MwP7p5xJWw",
"port": "Done"
},
"target": {
"activity": "HG4wfBhvlEW_149HwNyzHw",
"port": "In"
}
},
{
"source": {
"activity": "MLDV_altcUO5MwP7p5xJWw",
"port": "Done"
},
"target": {
"activity": "EIh3Q0Um1U-QSCh1b3GBjQ",
"port": "In"
}
},
{
"source": {
"activity": "EIh3Q0Um1U-QSCh1b3GBjQ",
"port": "Done"
},
"target": {
"activity": "0Z7Velr5CEW_r7YYoeEjBQ",
"port": "In"
}
}
]
}
}
@@ -0,0 +1,198 @@
{
"id": "e5190066597846cc926f8ae644d706f4",
"definitionId": "b07725956291433abee7ff229b415194",
"name": "Parallel For Each",
"createdAt": "2023-09-10T16:32:58.422674+00:00",
"version": 3,
"toolVersion": "3.0.0.0",
"variables": [],
"inputs": [],
"outputs": [],
"outcomes": [],
"customProperties": {},
"isReadonly": false,
"isLatest": true,
"isPublished": true,
"options": {
"autoUpdateConsumingWorkflows": false
},
"root": {
"type": "Elsa.Flowchart",
"version": 1,
"id": "oplDmRa_zEqH8PCdTcFh8A",
"metadata": {},
"customProperties": {
"source": "FlowchartJsonConverter.cs:45",
"NotFoundConnectionsKey": [],
"canStartWorkflow": false,
"runAsynchronously": false
},
"activities": [
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "Start"
},
"memoryReference": {
"id": "NTW8X70bTEaBtlYyU44PcA:input-0"
}
},
"id": "NTW8X70bTEaBtlYyU44PcA",
"name": "WriteLine1",
"type": "Elsa.WriteLine",
"version": 1,
"customProperties": {
"canStartWorkflow": false,
"runAsynchronously": false
},
"metadata": {
"designer": {
"position": {
"x": -352,
"y": -286.9921875
},
"size": {
"width": 139.296875,
"height": 50
}
}
}
},
{
"text": {
"typeName": "String",
"expression": {
"type": "Literal",
"value": "End"
},
"memoryReference": {
"id": "6Bf011ZOvUWOfQ1rKJEDFA:input-0"
}
},
"id": "6Bf011ZOvUWOfQ1rKJEDFA",
"name": "WriteLine2",
"type": "Elsa.WriteLine",
"version": 1,
"customProperties": {
"canStartWorkflow": false,
"runAsynchronously": false
},
"metadata": {
"designer": {
"position": {
"x": 169,
"y": -286.9921875
},
"size": {
"width": 139.296875,
"height": 50
}
}
}
},
{
"items": {
"typeName": "Object[]",
"expression": {
"type": "JavaScript",
"value": "[\u0022Apple\u0022, \u0022Banana\u0022, \u0022Cherry\u0022]"
},
"memoryReference": {
"id": "By4rVs_-2kSDENFO-bniRg:input-0"
}
},
"body": {
"type": "Elsa.Flowchart",
"version": 1,
"id": "ylZLDh7FQ0WmnbdnRJHutg",
"metadata": {},
"customProperties": {
"source": "FlowchartJsonConverter.cs:45",
"NotFoundConnectionsKey": [],
"canStartWorkflow": false,
"runAsynchronously": false
},
"activities": [
{
"text": {
"typeName": "String",
"expression": {
"type": "JavaScript",
"value": "\u0060Current fruit: ${getCurrentValue()}\u0060"
},
"memoryReference": {
"id": "fht2JVY0G0KURaRYB9jqlw:input-0"
}
},
"id": "fht2JVY0G0KURaRYB9jqlw",
"name": "WriteLine1",
"type": "Elsa.WriteLine",
"version": 1,
"customProperties": {
"canStartWorkflow": false,
"runAsynchronously": false
},
"metadata": {
"designer": {
"position": {
"x": -459.5,
"y": -374
},
"size": {
"width": 139.296875,
"height": 50
}
}
}
}
],
"connections": []
},
"id": "By4rVs_-2kSDENFO-bniRg",
"name": "ParallelForEach1",
"type": "Elsa.ParallelForEach",
"version": 1,
"customProperties": {
"canStartWorkflow": false,
"runAsynchronously": false
},
"metadata": {
"designer": {
"position": {
"x": -100,
"y": -320
},
"size": {
"width": 149.203125,
"height": 116.015625
}
}
}
}
],
"connections": [
{
"source": {
"activity": "NTW8X70bTEaBtlYyU44PcA",
"port": "Done"
},
"target": {
"activity": "By4rVs_-2kSDENFO-bniRg",
"port": "In"
}
},
{
"source": {
"activity": "By4rVs_-2kSDENFO-bniRg",
"port": "Done"
},
"target": {
"activity": "6Bf011ZOvUWOfQ1rKJEDFA",
"port": "In"
}
}
]
}
}