コード例 #1
0
        public void HandleSuccess(ExternalTask <TJob> task)
        {
            var result = new ExternalTaskResult
            {
                ExternalTaskId = task.ExternalTaskId,
                Topic          = task.Topic,
                Status         = ExternalTaskResultStatus.FINISHED,
                Variables      = task.Variables
            };

            SendToResultChannel(result);
        }
コード例 #2
0
        public void HandleStart(ExternalTask <TJob> task)
        {
            var result = new ExternalTaskResult
            {
                ExternalTaskId = task.ExternalTaskId,
                Topic          = task.Topic,
                Status         = ExternalTaskResultStatus.RUNNING,
                Variables      = task.Variables
            };

            SendToResultChannel(result);
        }