public void ConsumeStateTransition(StateTransitionNotification stateTransition) { var nodeInstance = GetInstance(stateTransition.FlowNodeInstanceId); if (nodeInstance == null) { return; } var evt = new StateTransitionReceivedEvent(Guid.NewGuid().ToString(), AggregateId, Version + 1, stateTransition, DateTime.UtcNow); Handle(evt); DomainEvents.Add(evt); }
private void Handle(StateTransitionReceivedEvent evt) { StateTransitions.Add(StateTransitionToken.Create(evt.FlowNodeInstanceId, evt.State, evt.Content)); UpdateDateTime = evt.UpdateDateTime; Version = evt.Version; }
private void Handle(StateTransitionReceivedEvent evt) { StateTransitions.Add(evt.StateTransitionToken); UpdateDateTime = evt.UpdateDateTime; Version = evt.Version; }