Skip to content

WorkflowExecutor is not sending LifeCycleEvents.WorkflowCompleted when Workflow is marked with IStepBuilder.EndWorkflow  #1097

Open
@Hau-Bold

Description

@Hau-Bold

WorkflowExecutor is not sending LifeCycleEvents.WorkflowCompleted when Workflow is marked with IStepBuilder.EndWorkflow

just check https://github.com/danielgerlag/workflow-core/blob/master/src/WorkflowCore/Services/WorkflowExecutor.cs

https://github.com/danielgerlag/workflow-core/blob/master/src/WorkflowCore/Primitives/EndStep.cs

returns

ExecutionPipelineDirective .EndWorkflow

=> WorkflowExecutor .InitializeStep returns fals and the Event is not fired.

Additional, I think the status of the worklfow is set to early to complete in line 259.

You may request the value from execitionContext when middlewareRunner is executed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions