Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        public virtual TaskModel ReleaseTask(ReleaseTaskCmd cmd)
        {
            ITask task = (taskService as ServiceImpl).CommandExecutor.Execute(new Engine.Impl.Cmd.AssigneeReleaseTaskCmd(cmd.TaskId, cmd.BusinessKey, cmd.Assignee, cmd.Reason));

            return(taskConverter.From(taskService.CreateTaskQuery()
                                      .SetTaskId(task.Id)
                                      .SingleResult()));
        }
Exemplo n.º 2
0
        public virtual Task <TaskModel> ReleaseTask(ReleaseTaskCmd cmd)
        {
            TaskModel model = processEngine.ReleaseTask(cmd);

            return(Task.FromResult(taskResourceAssembler.ToResource(model).Content));
        }
Exemplo n.º 3
0
 /// <inheritdoc />
 public async Task <TaskModel> ReleaseTask(ReleaseTaskCmd cmd)
 {
     return(await httpProxy.PostAsync <TaskModel>($"{serviceUrl}/release", cmd).ConfigureAwait(false));
 }