本文整理汇总了Java中org.activiti.engine.task.Task.getExecutionId方法的典型用法代码示例。如果您正苦于以下问题:Java Task.getExecutionId方法的具体用法?Java Task.getExecutionId怎么用?Java Task.getExecutionId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.activiti.engine.task.Task
的用法示例。
在下文中一共展示了Task.getExecutionId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TaskVo
import org.activiti.engine.task.Task; //导入方法依赖的package包/类
public TaskVo(Task task) {
this.id = task.getId();
this.name = task.getName();
this.title = task.getDescription();
this.priority = task.getPriority();
this.owner = task.getOwner();
this.assignee = task.getAssignee();
this.processInstanceId = task.getProcessInstanceId();
this.executionId = task.getExecutionId();
this.processDefinitionId = task.getProcessDefinitionId();
this.createTime = task.getCreateTime();
this.taskDefinitionKey = task.getTaskDefinitionKey();
this.dueDate = task.getDueDate();
this.category = task.getCategory();
this.parentTaskId = task.getParentTaskId();
this.tenantId = task.getTenantId();
this.formKey = task.getFormKey();
this.suspended = task.isSuspended();
}
示例2: TaskExtract
import org.activiti.engine.task.Task; //导入方法依赖的package包/类
TaskExtract(Task task, Map<String, Object> processVariables, List<IdentityLink> taskIdentityLinks) {
id = task.getId();
assignee = task.getAssignee();
name = task.getName();
processInstanceId = task.getProcessInstanceId();
createTime = task.getCreateTime();
dueDate = task.getDueDate();
owner = task.getOwner();
executionId = task.getExecutionId();
variables = new HashMap<>();
if (task.getProcessVariables() != null) {
variables.putAll(task.getProcessVariables());
}
if (task.getTaskLocalVariables() != null) {
variables.putAll(task.getTaskLocalVariables());
}
candidateUsers = new ArrayList<>();
candidateGroups = new ArrayList<>();
for (IdentityLink link : taskIdentityLinks) {
if (IdentityLinkType.CANDIDATE.equals(link.getType())) {
if (link.getUserId() != null) {
candidateUsers.add(link.getUserId());
} else if (link.getGroupId() != null) {
candidateGroups.add(link.getGroupId());
}
}
}
addProcessVariables(processVariables);
this.taskIdentityLinks = taskIdentityLinks;
}
示例3: deleteAttachmentsByTaskId
import org.activiti.engine.task.Task; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
public void deleteAttachmentsByTaskId(String taskId) {
checkHistoryEnabled();
List<AttachmentEntity> attachments = getDbSqlSession().selectList("selectAttachmentsByTaskId", taskId);
boolean dispatchEvents = getProcessEngineConfiguration().getEventDispatcher().isEnabled();
String processInstanceId = null;
String processDefinitionId = null;
String executionId = null;
if (dispatchEvents && attachments != null && !attachments.isEmpty()) {
// Forced to fetch the task to get hold of the process definition for event-dispatching, if available
Task task = getTaskManager().findTaskById(taskId);
if (task != null) {
processDefinitionId = task.getProcessDefinitionId();
processInstanceId = task.getProcessInstanceId();
executionId = task.getExecutionId();
}
}
for (AttachmentEntity attachment : attachments) {
String contentId = attachment.getContentId();
if (contentId != null) {
getByteArrayManager().deleteByteArrayById(contentId);
}
getDbSqlSession().delete(attachment);
if (dispatchEvents) {
getProcessEngineConfiguration().getEventDispatcher().dispatchEvent(
ActivitiEventBuilder.createEntityEvent(FlowableEngineEventType.ENTITY_DELETED, attachment, executionId, processInstanceId, processDefinitionId));
}
}
}