Skip to content

SubscriptionData Column in Subscription table is null #1385

@SaberRajabi1990

Description

@SaberRajabi1990

Hi
In version 3.15.0, after I use the WaitFor command to suspend the workflow, a row is created in the [wfc].[Subscription] table, but the SubscriptionData column for that row is not populated and remains null.
This is my code:

public class HelloWorldWorkflow : IWorkflow
{
public string Id => "HelloWorldWorkflow";
public int Version => 1;
public void Build(IWorkflowBuilder builder)
{
builder
.StartWith()
.WaitFor("ManagerApproval", (data, context) => data.CorrelationID, data => DateTime.Now)
.Output(data => data.IsApproved, step => ((HelloWorldWorkFlowEventDataDto)step.EventData).IsApproved)
.Output(data => data.Value1, step => ((HelloWorldWorkFlowEventDataDto)step.EventData).Value1)
.Output(data => data.Value2, step => ((HelloWorldWorkFlowEventDataDto)step.EventData).Value2)
.If(data => data.IsApproved)
.Do(then => then
.StartWith()
.Input(step => step.Input1, data => data.Value1)
.Input(step => step.Input2, data => data.Value2)
.Output(data => data.Answer, step => step.Output)
)
.If(data => !data.IsApproved)
.Do(then => then
.StartWith());
}
}

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