elsa-workflows / elsa-workflows/elsa-core

Workflow fails to execute if UserTask is first thing in the Workflow

Open
#4,533 0 comments 1 reaction 0 assignees View on GitHub
bug elsa 2 triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

This workflow fails to execute

```
{
"$id": "1",
"definitionId": "e3596886d3494fd2944d4ffa015bed75",
"versionId": "d000d695166543ce8d3a676bd8cc09f6",
"name": "SingleUserTaskBroken",
"displayName": "Single User Task (broken)",
"version": 1,
"variables": {
"$id": "2",
"data": {}
},
"customAttributes": {
"$id": "3",
"data": {}
},
"isSingleton": false,
"persistenceBehavior": "WorkflowBurst",
"deleteCompletedInstances": false,
"isPublished": true,
"isLatest": true,
"createdAt": "2023-10-13T14:38:39.6106915Z",
"activities": [
{
"$id": "4",
"activityId": "1c50db57-e299-4204-aa70-b7274e696235",
"type": "UserTask",
"displayName": "Single Task",
"persistWorkflow": false,
"loadWorkflowContext": false,
"saveWorkflowContext": false,
"properties": [
{
"$id": "5",
"name": "Actions",
"expressions": {
"$id": "6",
"Json": "[\"Finish\"]"
}
}
],
"propertyStorageProviders": {
"$id": "7"
}
}
],
"connections": [],
"id": "d000d695166543ce8d3a676bd8cc09f6"
}
```

if you add something before the UserTask (i used a 'SetName') then it works

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.