Flowable-6.7.2 源码注释地址:https://github.com/solojin/flowable-6.7.2-annotated
GatewayActivityBehavior 网关活动行为抽象类
/**
* 网关活动行为抽象类
* 用于所有网关活动实现的超类。
*
* @author Joram Barrez
*/
public abstract class GatewayActivityBehavior extends FlowNodeActivityBehavior {
private static final long serialVersionUID = 1L;
protected void lockFirstParentScope(DelegateExecution execution) {
ExecutionEntityManager executionEntityManager = CommandContextUtil.getExecutionEntityManager();
boolean found = false;
ExecutionEntity parentScopeExecution = null;
ExecutionEntity currentExecution = (ExecutionEntity) execution;
while (!found && currentExecution != null && currentExecution.getParentId() != null) {
parentScopeExecution = executionEntityManager.findById(currentExecution.getParentId());
if (parentScopeExecution != null && parentScopeExecution.isScope()) {
found = true;
}
currentExecution = parentScopeExecution;
}
parentScopeExecution.forceUpdate();
}
}
ExclusiveGatewayActivityBehavior 独占网关活动行为类
/**
* 独占网关活动行为类
* 实现BPMN规范中定义的独占网关/XOR网关/基于数据的独占网关。
*
* @