You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear all, I try to achieve the following scenario. I create a workflow where users can response to a question for a certain time. When a minimum of users replied I want to continue the workflow:
Does anyone have a hint how to do it? My approach doesn't work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear all, I try to achieve the following scenario. I create a workflow where users can response to a question for a certain time. When a minimum of users replied I want to continue the workflow:
Does anyone have a hint how to do it? My approach doesn't work.
Thanks in advance
builder
.StartWith(context =>
{ _logger.LogInformation("Start Workflow");
return ExecutionResult.Next();
})
.While(data => data.AnswerCount <= 2 || data => data.StartTime.AddSeconds(20) >= DateTime.Now )
.Do(x =>
{
x.StartWith(context => ExecutionResult.Next())
.WaitFor("MyEvent", (data, context) => context.Workflow.Id, data => DateTime.Now)
.Then()
.Input(addShopResponseStep => addShopResponseStep.Data, workflowData => workflowData)
.Output(data => data.AnswerCount, step => step.Data.AnswerCount);
}).Then()
.OnError(WorkflowErrorHandling.Terminate);
Beta Was this translation helpful? Give feedback.
All reactions