本文整理汇总了Java中org.activiti.engine.impl.pvm.process.TransitionImpl.getDestination方法的典型用法代码示例。如果您正苦于以下问题:Java TransitionImpl.getDestination方法的具体用法?Java TransitionImpl.getDestination怎么用?Java TransitionImpl.getDestination使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.activiti.engine.impl.pvm.process.TransitionImpl
的用法示例。
在下文中一共展示了TransitionImpl.getDestination方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: eventNotificationsCompleted
import org.activiti.engine.impl.pvm.process.TransitionImpl; //导入方法依赖的package包/类
@Override
protected void eventNotificationsCompleted(InterpretableExecution execution) {
TransitionImpl transition = execution.getTransition();
ActivityImpl destination = null;
if(transition == null) { // this is null after async cont. -> transition is not stored in execution
destination = (ActivityImpl) execution.getActivity();
} else {
destination = transition.getDestination();
}
ActivityImpl activity = (ActivityImpl) execution.getActivity();
if (activity!=destination) {
ActivityImpl nextScope = AtomicOperationTransitionNotifyListenerTake.findNextScope(activity, destination);
execution.setActivity(nextScope);
execution.performOperation(TRANSITION_CREATE_SCOPE);
} else {
execution.setTransition(null);
execution.setActivity(destination);
execution.performOperation(ACTIVITY_EXECUTE);
}
}
示例2: findParallelGatewayId
import org.activiti.engine.impl.pvm.process.TransitionImpl; //导入方法依赖的package包/类
public String findParallelGatewayId(ActivityImpl activityImpl) {
List<PvmTransition> incomingTransitions = activityImpl
.getOutgoingTransitions();
for (PvmTransition pvmTransition : incomingTransitions) {
TransitionImpl transitionImpl = (TransitionImpl) pvmTransition;
activityImpl = transitionImpl.getDestination();
String type = (String) activityImpl.getProperty("type");
if ("parallelGateway".equals(type)) {// 并行路线
String gatewayId = activityImpl.getId();
String gatewayType = gatewayId.substring(gatewayId
.lastIndexOf("_") + 1);
if ("END".equals(gatewayType.toUpperCase())) {
return gatewayId.substring(0, gatewayId.lastIndexOf("_"))
+ "_start";
}
}
}
return null;
}
示例3: findParallelGatewayId
import org.activiti.engine.impl.pvm.process.TransitionImpl; //导入方法依赖的package包/类
/**
* 根据当前节点,查询输出流向是否为并行终点,如果为并行终点,则拼装对应的并行起点ID
*
* @param activityImpl
* 当前节点
* @return
*/
private static String findParallelGatewayId(ActivityImpl activityImpl) {
List<PvmTransition> incomingTransitions = activityImpl
.getOutgoingTransitions();
for (PvmTransition pvmTransition : incomingTransitions) {
TransitionImpl transitionImpl = (TransitionImpl) pvmTransition;
activityImpl = transitionImpl.getDestination();
String type = (String) activityImpl.getProperty("type");
if ("parallelGateway".equals(type)) {// 并行路线
String gatewayId = activityImpl.getId();
String gatewayType = gatewayId.substring(gatewayId
.lastIndexOf("_") + 1);
if ("END".equals(gatewayType.toUpperCase())) {
return gatewayId.substring(0, gatewayId.lastIndexOf("_"))
+ "_start";
}
}
}
return null;
}
示例4: findParallelGatewayId
import org.activiti.engine.impl.pvm.process.TransitionImpl; //导入方法依赖的package包/类
/**
* 根据当前节点,查询输出流向是否为并行终点,如果为并行终点,则拼装对应的并行起点ID
* @param activityImpl 当前节点
* @return
*/
private String findParallelGatewayId(ActivityImpl activityImpl){
List<PvmTransition> incomingTransitions = activityImpl.getOutgoingTransitions();
for(PvmTransition pvmTransition : incomingTransitions){
TransitionImpl transitionImpl = (TransitionImpl)pvmTransition;
activityImpl = transitionImpl.getDestination();
String type = (String)activityImpl.getProperty("type");
if("parallelGateway".equals(type)){ //并行路线
String gatewayId = activityImpl.getId();
String gettewayType = gatewayId.substring(gatewayId.lastIndexOf("_")+1);
if("END".equals(gettewayType.toUpperCase())){
return gatewayId.substring(0, gatewayId.lastIndexOf("_"))+"_start";
}
}
}
return null;
}