public WorkflowItemSignalTimedoutEvent(HistoryEvent historyEvent) : base(historyEvent)
        {
            var attr = historyEvent.MarkerRecordedEventAttributes;

            _details   = attr.Details.As <SignalsTimedoutDetails>();
            ScheduleId = ScheduleId.Raw(_details.ScheduleId);
        }
Esempio n. 2
0
        internal override Decision SwfDecision()
        {
            var details = new SignalsTimedoutDetails()
            {
                ScheduleId            = _scheduleId.ToString(),
                TriggerEventId        = _signalTriggerEventId,
                TimedoutSignalNames   = _timedoutSignals,
                TimeoutTriggerEventId = _timeoutTriggerId
            };
            var attr = new RecordMarkerDecisionAttributes()
            {
                MarkerName = InternalMarkerNames.WorkflowItemSignalsTimedout,
                Details    = details.ToJson()
            };

            return(new Decision()
            {
                RecordMarkerDecisionAttributes = attr,
                DecisionType = DecisionType.RecordMarker
            });
        }