Skip to content

ForTask Un-marshalled as DoTask #226

Closed
Closed
@reiniervl

Description

@reiniervl

https://github.com/serverlessworkflow/sdk-go/blame/ff500a090258a53544b6e5451518d390e62936cc/model/task.go#L133

When un-marshalling a workflow that includes a ForTask, the task is un-marshalled as a DoTask, because the ForTask has the "do" key too, which is first in the list of the type registry. Placing the ForTask constructor with the "for" key above "do", would most likely fix the issue.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions