use of org.apache.inlong.manager.common.pojo.workflow.form.TaskForm in project incubator-inlong by apache.
the class WorkflowContextBuilderImpl method buildContextForTask.
@SneakyThrows
@Override
public WorkflowContext buildContextForTask(Integer taskId, WorkflowAction action) {
WorkflowTaskEntity taskEntity = taskEntityMapper.selectById(taskId);
WorkflowProcess process = definitionRepository.get(taskEntity.getProcessName()).clone();
TaskForm taskForm = WorkflowFormParserUtils.parseTaskForm(taskEntity, process);
List<String> transferToUsers = getTransferToUsers(taskEntity.getExtParams());
return buildContextForTask(taskId, action, taskForm, transferToUsers, taskEntity.getRemark(), taskEntity.getOperator());
}
Aggregations