org.activiti.engine.runtime.Execution.isEnded()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中org.activiti.engine.runtime.Execution.isEnded()方法的一些代码示例,展示了Execution.isEnded()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Execution.isEnded()方法的具体详情如下:
包路径:org.activiti.engine.runtime.Execution
类名称:Execution
方法名:isEnded

Execution.isEnded介绍

[英]Indicates if the execution is ended.
[中]指示执行是否结束。

代码示例

代码示例来源:origin: axemblr/axemblr-provisionr

private void signal(RuntimeService rt, Execution exec) {
  try {
    if (!exec.isEnded()) {
      rt.signal(exec.getId());
    } else {
      out().printf("Execution %s already ended \n" + exec.getId());
    }
  } catch (Exception ex) {
    out().printf("Exception:%s in signaling the execution %s \n", ex.getMessage(), exec.getId());
  }
}

代码示例来源:origin: org.apache.provisionr/activiti-karaf-commands

private void signal(RuntimeService rt, Execution exec) {
  try {
    if (!exec.isEnded()) {
      rt.signal(exec.getId());
    } else {
      out().printf("Execution %s already ended \n" + exec.getId());
    }
  } catch (Exception ex) {
    out().printf("Exception:%s in signaling the execution %s \n", ex.getMessage(), exec.getId());
  }
}

代码示例来源:origin: Alfresco/alfresco-repository

public WorkflowPath convert(Execution execution, ProcessInstance instance)
{
  if(execution == null)
    return null;
  
  boolean isActive = !execution.isEnded();
  
  // Convert workflow and collect variables
  Map<String, Object> workflowInstanceVariables = new HashMap<String, Object>();
  WorkflowInstance wfInstance = convertAndSetVariables(instance, workflowInstanceVariables);
  
  WorkflowNode node = null;
  // Get active node on execution
  List<String> nodeIds = runtimeService.getActiveActivityIds(execution.getId());
  if (nodeIds != null && nodeIds.size() >= 1)
  {
    ReadOnlyProcessDefinition procDef = activitiUtil.getDeployedProcessDefinition(instance.getProcessDefinitionId());
    PvmActivity activity = procDef.findActivity(nodeIds.get(0));
    node = convert(activity);
  }
  return factory.createPath(execution.getId(), wfInstance, node, isActive);
}

代码示例来源:origin: org.alfresco/alfresco-repository

public WorkflowPath convert(Execution execution, ProcessInstance instance)
{
  if(execution == null)
    return null;
  
  boolean isActive = !execution.isEnded();
  
  // Convert workflow and collect variables
  Map<String, Object> workflowInstanceVariables = new HashMap<String, Object>();
  WorkflowInstance wfInstance = convertAndSetVariables(instance, workflowInstanceVariables);
  
  WorkflowNode node = null;
  // Get active node on execution
  List<String> nodeIds = runtimeService.getActiveActivityIds(execution.getId());
  if (nodeIds != null && nodeIds.size() >= 1)
  {
    ReadOnlyProcessDefinition procDef = activitiUtil.getDeployedProcessDefinition(instance.getProcessDefinitionId());
    PvmActivity activity = procDef.findActivity(nodeIds.get(0));
    node = convert(activity);
  }
  return factory.createPath(execution.getId(), wfInstance, node, isActive);
}

代码示例来源:origin: FINRAOS/herd

builder.append("    execution.getParentId():").append(execution.getParentId()).append('\n');
builder.append("    execution.getProcessInstanceId():").append(execution.getProcessInstanceId()).append('\n');
builder.append("    execution.isEnded():").append(execution.isEnded()).append('\n');
builder.append("    execution.isSuspended():").append(execution.isSuspended()).append('\n');
Map<String, Object> executionVariables = activitiRuntimeService.getVariables(execution.getId());

相关文章