public void Run(string activityId, string exeScriptBatchId, ActivityExecResult execResult) { var activity = this.ActivityRepository.GetActivity(activityId); if (activity == null) { throw new Exception($"Activity {activityId} does not exist..."); } this.EnsureExeBatchQueueExists(exeScriptBatchId); var requestorEvent = new ActivityRequestorEvent() { ActivityId = activityId, EventType = ActivityRequestorEvent.ActivityRequestorEventType.ExecResult, ExecResult = execResult }; this.ExeBatchQueues[exeScriptBatchId].Add(requestorEvent); }
public void Run(string activityId, ActivityStateDetails details) { var activity = this.ActivityRepository.GetActivity(activityId); if (activity == null) { throw new Exception($"Activity {activityId} does not exist..."); } this.EnsureActivityStateQueueExists(activityId); var requestorEvent = new ActivityRequestorEvent() { ActivityId = activityId, EventType = ActivityRequestorEvent.ActivityRequestorEventType.StateDetails, Details = details }; this.ActivityStateQueues[activityId].Add(requestorEvent); }