本文整理了Java中org.flowable.bpmn.model.Activity.isAsynchronous()
方法的一些代码示例,展示了Activity.isAsynchronous()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.isAsynchronous()
方法的具体详情如下:
包路径:org.flowable.bpmn.model.Activity
类名称:Activity
方法名:isAsynchronous
暂无
代码示例来源:origin: org.flowable/flowable-camel
protected boolean isASync(DelegateExecution execution) {
boolean async = false;
if (execution.getCurrentFlowElement() instanceof Activity) {
async = ((Activity) execution.getCurrentFlowElement()).isAsynchronous();
}
return async;
}
代码示例来源:origin: org.flowable/flowable-engine
@Override
public void execute(DelegateExecution delegateExecution) {
ExecutionEntity execution = (ExecutionEntity) delegateExecution;
if (getLocalLoopVariable(execution, getCollectionElementIndexVariable()) == null) {
int nrOfInstances = 0;
try {
nrOfInstances = createInstances(delegateExecution);
} catch (BpmnError error) {
ErrorPropagation.propagateError(error, execution);
}
if (nrOfInstances == 0) {
cleanupMiRoot(execution);
}
} else {
// for synchronous, history was created already in ContinueMultiInstanceOperation,
// but that would lead to wrong timings for asynchronous which is why it's here
if (activity.isAsynchronous()) {
CommandContextUtil.getActivityInstanceEntityManager().recordActivityStart(execution);
}
innerActivityBehavior.execute(execution);
}
}
代码示例来源:origin: org.flowable/flowable-json-converter
propertiesNode.put(PROPERTY_ASYNCHRONOUS, activity.isAsynchronous());
propertiesNode.put(PROPERTY_EXCLUSIVE, !activity.isNotExclusive());
propertiesNode.put(PROPERTY_FOR_COMPENSATION,activity.isForCompensation());
内容来源于网络,如有侵权,请联系作者删除!