本文整理汇总了Java中org.activiti.engine.history.HistoricTaskInstance.getProcessInstanceId方法的典型用法代码示例。如果您正苦于以下问题:Java HistoricTaskInstance.getProcessInstanceId方法的具体用法?Java HistoricTaskInstance.getProcessInstanceId怎么用?Java HistoricTaskInstance.getProcessInstanceId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.activiti.engine.history.HistoricTaskInstance
的用法示例。
在下文中一共展示了HistoricTaskInstance.getProcessInstanceId方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: publishTaskDocument
import org.activiti.engine.history.HistoricTaskInstance; //导入方法依赖的package包/类
@Override
public void publishTaskDocument(Map<String, Object> taskMap, HistoricTaskInstance taskInstanceDetails) throws JsonProcessingException {
String documentId = taskInstanceDetails.getProcessDefinitionId() + "-"
+ taskInstanceDetails.getProcessInstanceId() + "-" + taskInstanceDetails.getId();
String indexName = indexPrefix;
if (taskInstanceDetails.getStartTime() != null) {
indexName = indexName + '-' + new SimpleDateFormat("yyyy.MM").format(taskInstanceDetails.getStartTime());
}
elasticHTTPClient.execute(esUrl + indexName + "/bpmanalyticsevent/" + documentId,
objectMapper.writeValueAsString(taskMap), "PUT");
}
开发者ID:cijujoseph,项目名称:activiti-analytics-spring-boot,代码行数:14,代码来源:CustomElasticAnalyticsEndpoint.java
示例2: Task
import org.activiti.engine.history.HistoricTaskInstance; //导入方法依赖的package包/类
public Task(HistoricTaskInstance taskInstance)
{
this.id = taskInstance.getId();
this.processId = taskInstance.getProcessInstanceId();
this.processDefinitionId = taskInstance.getProcessDefinitionId();
this.activityDefinitionId = taskInstance.getTaskDefinitionKey();
this.name = taskInstance.getName();
this.description = taskInstance.getDescription();
this.dueAt = taskInstance.getDueDate();
this.startedAt = taskInstance.getStartTime();
this.endedAt = taskInstance.getEndTime();
this.durationInMs = taskInstance.getDurationInMillis();
this.priority = taskInstance.getPriority();
this.owner = taskInstance.getOwner();
this.assignee = taskInstance.getAssignee();
this.formResourceKey = taskInstance.getFormKey();
if (taskInstance.getEndTime() != null)
{
this.state = TaskStateTransition.COMPLETED.name().toLowerCase();
}
else if (taskInstance.getAssignee() != null)
{
this.state = TaskStateTransition.CLAIMED.name().toLowerCase();
}
else
{
this.state = TaskStateTransition.UNCLAIMED.name().toLowerCase();
}
}
示例3: getItem
import org.activiti.engine.history.HistoricTaskInstance; //导入方法依赖的package包/类
@Override
public Item getItem(String taskId, String itemId)
{
HistoricTaskInstance task = getValidHistoricTask(taskId);
if (task.getProcessInstanceId() == null)
{
throw new UnsupportedResourceOperationException("Task is not part of process, no items available.");
}
return getItemFromProcess(itemId, task.getProcessInstanceId());
}
示例4: getItems
import org.activiti.engine.history.HistoricTaskInstance; //导入方法依赖的package包/类
@Override
public CollectionWithPagingInfo<Item> getItems(String taskId, Paging paging)
{
HistoricTaskInstance task = getValidHistoricTask(taskId);
if (task.getProcessInstanceId() == null)
{
throw new UnsupportedResourceOperationException("Task is not part of process, no items available.");
}
return getItemsFromProcess(task.getProcessInstanceId(), paging);
}