Exemplo n.º 1
0
 internal override Decision SwfDecision()
 {
     return(new Decision()
     {
         DecisionType = DecisionType.RequestCancelActivityTask,
         RequestCancelActivityTaskDecisionAttributes = new RequestCancelActivityTaskDecisionAttributes()
         {
             ActivityId = _id.ToString(),
         }
     });
 }
Exemplo n.º 2
0
 internal override Decision SwfDecision()
 {
     return(new Decision()
     {
         DecisionType = DecisionType.CancelTimer,
         CancelTimerDecisionAttributes = new CancelTimerDecisionAttributes()
         {
             TimerId = _id.ToString()
         }
     });
 }
Exemplo n.º 3
0
 internal override Decision SwfDecision()
 {
     return(new Decision()
     {
         DecisionType = DecisionType.StartTimer,
         StartTimerDecisionAttributes = new StartTimerDecisionAttributes()
         {
             TimerId = _id.ToString(),
             StartToFireTimeout = Math.Round(_timeout.TotalSeconds).ToString(),
             Control = (new TimerScheduleData()
             {
                 TimerType = _timerType, TimerName = _id.Name, SignalTriggerEventId = _triggerEventId
             }).ToJson()
         }
     });
 }
Exemplo n.º 4
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
            });
        }