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

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

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

Execution.isSuspended介绍

[英]Indicates if the execution is suspended.
[中]指示执行是否已挂起。

代码示例

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

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());
for (Map.Entry<String, Object> variable : executionVariables.entrySet())

代码示例来源:origin: org.activiti/activiti-rest

public ExecutionResponse createExecutionResponse(Execution execution, RestUrlBuilder urlBuilder) {
 ExecutionResponse result = new ExecutionResponse();
 result.setActivityId(execution.getActivityId());
 result.setId(execution.getId());
 result.setUrl(urlBuilder.buildUrl(RestUrls.URL_EXECUTION, execution.getId()));
 result.setSuspended(execution.isSuspended());
 result.setTenantId(execution.getTenantId());
 result.setParentId(execution.getParentId());
 if (execution.getParentId() != null) {
  result.setParentUrl(urlBuilder.buildUrl(RestUrls.URL_EXECUTION, execution.getParentId()));
 }
 
 result.setSuperExecutionId(execution.getSuperExecutionId());
 if (execution.getSuperExecutionId() != null) {
  result.setSuperExecutionUrl(urlBuilder.buildUrl(RestUrls.URL_EXECUTION, execution.getSuperExecutionId()));
 }
 result.setProcessInstanceId(execution.getProcessInstanceId());
 if (execution.getProcessInstanceId() != null) {
  result.setProcessInstanceUrl(urlBuilder.buildUrl(RestUrls.URL_PROCESS_INSTANCE, execution.getProcessInstanceId()));
 }
 return result;
}

相关文章