本文整理了Java中org.camunda.bpm.engine.task.Task.getParentTaskId()
方法的一些代码示例,展示了Task.getParentTaskId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.getParentTaskId()
方法的具体详情如下:
包路径:org.camunda.bpm.engine.task.Task
类名称:Task
方法名:getParentTaskId
[英]the parent task for which this task is a subtask
[中]此任务作为子任务的父任务
代码示例来源:origin: camunda/camunda-bpm-platform
public Task build() {
Task mockTask = mock(Task.class);
when(mockTask.getId()).thenReturn(id);
when(mockTask.getName()).thenReturn(name);
when(mockTask.getAssignee()).thenReturn(assignee);
when(mockTask.getCreateTime()).thenReturn(createTime);
when(mockTask.getDueDate()).thenReturn(dueDate);
when(mockTask.getFollowUpDate()).thenReturn(followUpDate);
when(mockTask.getDelegationState()).thenReturn(delegationState);
when(mockTask.getDescription()).thenReturn(description);
when(mockTask.getExecutionId()).thenReturn(executionId);
when(mockTask.getOwner()).thenReturn(owner);
when(mockTask.getParentTaskId()).thenReturn(parentTaskId);
when(mockTask.getPriority()).thenReturn(priority);
when(mockTask.getProcessDefinitionId()).thenReturn(processDefinitionId);
when(mockTask.getProcessInstanceId()).thenReturn(processInstanceId);
when(mockTask.getTaskDefinitionKey()).thenReturn(taskDefinitionKey);
when(mockTask.getCaseDefinitionId()).thenReturn(caseDefinitionId);
when(mockTask.getCaseInstanceId()).thenReturn(caseInstanceId);
when(mockTask.getCaseExecutionId()).thenReturn(caseExecutionId);
when(mockTask.getFormKey()).thenReturn(formKey);
when(mockTask.getTenantId()).thenReturn(tenantId);
return mockTask;
}
代码示例来源:origin: camunda/camunda-bpm-platform
@Test
public void testSaveTaskSetParentTaskId() {
// given
Task parent = taskService.newTask("parent");
taskService.saveTask(parent);
Task task = taskService.newTask("subTask");
// when
task.setParentTaskId("parent");
// then
taskService.saveTask(task);
// update task
task = taskService.createTaskQuery().taskId("subTask").singleResult();
assertEquals(parent.getId(), task.getParentTaskId());
taskService.deleteTask("parent", true);
taskService.deleteTask("subTask", true);
}
代码示例来源:origin: camunda/camunda-bpm-platform
dto.executionId = task.getExecutionId();
dto.owner = task.getOwner();
dto.parentTaskId = task.getParentTaskId();
dto.priority = task.getPriority();
dto.processDefinitionId = task.getProcessDefinitionId();
dto.linker.createLink(REL_OWNER, task.getOwner());
dto.linker.createLink(REL_EXECUTION,task.getExecutionId());
dto.linker.createLink(REL_PARENT_TASK, task.getParentTaskId());
dto.linker.createLink(REL_PROCESS_DEFINITION, task.getProcessDefinitionId());
dto.linker.createLink(REL_PROCESS_INSTANCE, task.getProcessInstanceId());
代码示例来源:origin: camunda/camunda-bpm-platform
dto.executionId = task.getExecutionId();
dto.owner = task.getOwner();
dto.parentTaskId = task.getParentTaskId();
dto.priority = task.getPriority();
dto.processDefinitionId = task.getProcessDefinitionId();
代码示例来源:origin: camunda/camunda-bpm-platform
dto.executionId = task.getExecutionId();
dto.owner = task.getOwner();
dto.parentTaskId = task.getParentTaskId();
dto.priority = task.getPriority();
dto.processDefinitionId = task.getProcessDefinitionId();
dto.linker.createLink(REL_OWNER, task.getOwner());
dto.linker.createLink(REL_EXECUTION,task.getExecutionId());
dto.linker.createLink(REL_PARENT_TASK, task.getParentTaskId());
dto.linker.createLink(REL_PROCESS_DEFINITION, task.getProcessDefinitionId());
dto.linker.createLink(REL_PROCESS_INSTANCE, task.getProcessInstanceId());
代码示例来源:origin: camunda/camunda-bpm-platform
dto.executionId = task.getExecutionId();
dto.owner = task.getOwner();
dto.parentTaskId = task.getParentTaskId();
dto.priority = task.getPriority();
dto.processDefinitionId = task.getProcessDefinitionId();
代码示例来源:origin: org.camunda.bpm/camunda-engine
@Test
public void testSaveTaskSetParentTaskId() {
// given
Task parent = taskService.newTask("parent");
taskService.saveTask(parent);
Task task = taskService.newTask("subTask");
// when
task.setParentTaskId("parent");
// then
taskService.saveTask(task);
// update task
task = taskService.createTaskQuery().taskId("subTask").singleResult();
assertEquals(parent.getId(), task.getParentTaskId());
taskService.deleteTask("parent", true);
taskService.deleteTask("subTask", true);
}
代码示例来源:origin: org.camunda.bpm/camunda-engine-rest-jaxrs2
dto.executionId = task.getExecutionId();
dto.owner = task.getOwner();
dto.parentTaskId = task.getParentTaskId();
dto.priority = task.getPriority();
dto.processDefinitionId = task.getProcessDefinitionId();
代码示例来源:origin: org.camunda.bpm/camunda-engine-rest-jaxrs2
dto.executionId = task.getExecutionId();
dto.owner = task.getOwner();
dto.parentTaskId = task.getParentTaskId();
dto.priority = task.getPriority();
dto.processDefinitionId = task.getProcessDefinitionId();
dto.linker.createLink(REL_OWNER, task.getOwner());
dto.linker.createLink(REL_EXECUTION,task.getExecutionId());
dto.linker.createLink(REL_PARENT_TASK, task.getParentTaskId());
dto.linker.createLink(REL_PROCESS_DEFINITION, task.getProcessDefinitionId());
dto.linker.createLink(REL_PROCESS_INSTANCE, task.getProcessInstanceId());
内容来源于网络,如有侵权,请联系作者删除!