本文整理汇总了Java中org.camunda.bpm.engine.runtime.ProcessInstance.isEnded方法的典型用法代码示例。如果您正苦于以下问题:Java ProcessInstance.isEnded方法的具体用法?Java ProcessInstance.isEnded怎么用?Java ProcessInstance.isEnded使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.camunda.bpm.engine.runtime.ProcessInstance
的用法示例。
在下文中一共展示了ProcessInstance.isEnded方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: startProcessById
import org.camunda.bpm.engine.runtime.ProcessInstance; //导入方法依赖的package包/类
public ProcessInstance startProcessById(String processDefinitionId) {
assertCommandContextNotActive();
ProcessInstance instance = processEngine.getRuntimeService().startProcessInstanceById(processDefinitionId, getAndClearCachedVariableMap());
if (!instance.isEnded()) {
setExecution(instance);
}
return instance;
}
示例2: startProcessByKey
import org.camunda.bpm.engine.runtime.ProcessInstance; //导入方法依赖的package包/类
public ProcessInstance startProcessByKey(String key) {
assertCommandContextNotActive();
ProcessInstance instance = processEngine.getRuntimeService().startProcessInstanceByKey(key, getAndClearCachedVariableMap());
if (!instance.isEnded()) {
setExecution(instance);
}
return instance;
}
示例3: startProcessByMessage
import org.camunda.bpm.engine.runtime.ProcessInstance; //导入方法依赖的package包/类
public ProcessInstance startProcessByMessage(String messageName) {
assertCommandContextNotActive();
VariableMap cachedVariables = getAndClearCachedVariableMap();
ProcessInstance instance = processEngine.getRuntimeService().startProcessInstanceByMessage(messageName, cachedVariables);
if (!instance.isEnded()) {
setExecution(instance);
}
return instance;
}
示例4: ProcessInstanceDto
import org.camunda.bpm.engine.runtime.ProcessInstance; //导入方法依赖的package包/类
public ProcessInstanceDto(ProcessInstance instance) {
this.id = instance.getId();
this.definitionId = instance.getProcessDefinitionId();
this.businessKey = instance.getBusinessKey();
this.caseInstanceId = instance.getCaseInstanceId();
this.ended = instance.isEnded();
this.suspended = instance.isSuspended();
this.tenantId = instance.getTenantId();
}