Ejemplo n.º 1
0
        public static IList <LockedExternalTaskDto> fromLockedExternalTasks(IList <LockedExternalTask> tasks)
        {
            IList <LockedExternalTaskDto> dtos = new List <LockedExternalTaskDto>();

            foreach (LockedExternalTask task in tasks)
            {
                dtos.Add(LockedExternalTaskDto.fromLockedExternalTask(task));
            }

            return(dtos);
        }
Ejemplo n.º 2
0
        public static LockedExternalTaskDto fromLockedExternalTask(LockedExternalTask task)
        {
            LockedExternalTaskDto dto = new LockedExternalTaskDto();

            dto.activityId         = task.ActivityId;
            dto.activityInstanceId = task.ActivityInstanceId;
            dto.errorMessage       = task.ErrorMessage;
            dto.errorDetails       = task.ErrorDetails;
            dto.executionId        = task.ExecutionId;
            dto.id = task.Id;
            dto.lockExpirationTime   = task.LockExpirationTime;
            dto.processDefinitionId  = task.ProcessDefinitionId;
            dto.processDefinitionKey = task.ProcessDefinitionKey;
            dto.processInstanceId    = task.ProcessInstanceId;
            dto.retries     = task.Retries;
            dto.topicName   = task.TopicName;
            dto.workerId    = task.WorkerId;
            dto.tenantId    = task.TenantId;
            dto.variables   = VariableValueDto.fromMap(task.Variables);
            dto.priority    = task.Priority;
            dto.businessKey = task.BusinessKey;

            return(dto);
        }