コード例 #1
0
        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);
        }
コード例 #2
0
 public void SendActivityExecResult(string activityId, string exeScriptBatchId, ActivityExecResult execResult)
 {
     new SendActivityExecResultsOperation(
         this.AgreementRepository,
         this.ActivityRepository,
         this.ExeScriptBatchQueues)
     .Run(activityId, exeScriptBatchId, execResult);
 }