Fix Switch activity
The Switch activity did not reset its state in full, causing it to not re-evaluate its branches when looping back onto it
This commit is contained in:
parent
ee7a8cdb1b
commit
f10d33b77e
|
|
@ -51,6 +51,7 @@ namespace Elsa.Activities.ControlFlow
|
|||
else
|
||||
{
|
||||
EnteredScope = false;
|
||||
Evaluated = false;
|
||||
return Done();
|
||||
}
|
||||
}
|
||||
|
|
@ -76,6 +77,7 @@ namespace Elsa.Activities.ControlFlow
|
|||
|
||||
var data = notification.WorkflowExecutionContext.WorkflowInstance.ActivityData.GetItem(notification.EvictedScope.Id, () => new JObject());
|
||||
data.SetState(nameof(EnteredScope), false);
|
||||
data.SetState(nameof(Evaluated), false);
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue