当前位置: 首页>>代码示例>>Java>>正文


Java Task.getExecutionId方法代码示例

本文整理汇总了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();
}
 
开发者ID:KayuraTeam,项目名称:kayura-activiti,代码行数:20,代码来源:TaskVo.java

示例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;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:31,代码来源:WorkItemProvider.java

示例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));
        }
    }
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:33,代码来源:AttachmentEntityManager.java


注:本文中的org.activiti.engine.task.Task.getExecutionId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。