Exemplo n.º 1
0
        internal override Decision SwfDecision()
        {
            var details = new WorkflowItemSignalledData()
            {
                ScheduleId     = _id,
                TriggerEventId = _triggerEventId,
                SignalName     = _signalName,
                SignalEventId  = _signalEventId
            };

            return(new Decision
            {
                DecisionType = DecisionType.RecordMarker,
                RecordMarkerDecisionAttributes = new RecordMarkerDecisionAttributes()
                {
                    MarkerName = InternalMarkerNames.WorkflowItemSignalled,
                    Details = details.ToJson()
                }
            });
        }
Exemplo n.º 2
0
 public WorkflowItemSignalledEvent(HistoryEvent @event)
     : base(@event)
 {
     _data      = @event.MarkerRecordedEventAttributes.Details.As <WorkflowItemSignalledData>();
     ScheduleId = ScheduleId.Raw(_data.ScheduleId);
 }