Replies: 1 comment
-
To access the iterated item of a Here's a simplified example of how you might structure the JSON for a workflow that includes a {
"name": "Parallel ForEach Example",
"activities": [
{
"id": "parallel-foreach-activity",
"type": "Elsa.Activities.ControlFlow.ParallelForEach",
"properties": {
"Items": {
"expression": "[1, 2, 3]",
"syntax": "Json"
}
},
"activities": [
{
"id": "write-line-activity",
"type": "Elsa.Activities.Console.WriteLine",
"properties": {
"Text": {
"expression": "Current item: ${item}",
"syntax": "JavaScript"
}
}
}
]
}
],
"connections": [
// Define connections between activities if necessary
]
} In this JSON example, the Please note that the actual property names and structure may vary depending on the version of Elsa you are using, and the example above is a generic representation. You should refer to the Elsa documentation or the JSON schema provided by Elsa for the exact structure required. If you need a more specific example tailored to your use case, please provide additional details about the items you are iterating over and the actions you want to perform within the loop body. This comment was generated by Glime. |
Beta Was this translation helpful? Give feedback.
-
How access iterated item of parallelforeach in parallelforeach body using designer? Can you provide a JSON workflow sample
Beta Was this translation helpful? Give feedback.
All reactions