本文整理汇总了Java中org.kuali.rice.kew.engine.node.DynamicResult类的典型用法代码示例。如果您正苦于以下问题:Java DynamicResult类的具体用法?Java DynamicResult怎么用?Java DynamicResult使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DynamicResult类属于org.kuali.rice.kew.engine.node包,在下文中一共展示了DynamicResult类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: transitioningInto
import org.kuali.rice.kew.engine.node.DynamicResult; //导入依赖的package包/类
public DynamicResult transitioningInto(RouteContext context, RouteNodeInstance process, RouteHelper helper) throws Exception {
List<RouteNodeInstance> nextNodeInstances = new ArrayList<RouteNodeInstance>();
for (int index = 0; index < ROLES.length; index++) {
String roleName = ROLES[index];
RouteNode node = helper.getNodeFactory().getRouteNode(context, NEXT_NODE_NAME);
if (node == null) {
throw new WorkflowException("Couldn't locate node for name: " + NEXT_NODE_NAME);
}
RouteNodeInstance nextNodeInstance = helper.getNodeFactory().createRouteNodeInstance(context.getDocument().getDocumentId(), node);
Branch branch = helper.getNodeFactory().createBranch(roleName, context.getNodeInstance().getBranch(), nextNodeInstance);
branch.addBranchState(new BranchState("role", roleName));
branch.setSplitNode(context.getNodeInstance());
nextNodeInstances.add(nextNodeInstance);
}
//return new DynamicResult(true, nextNodeInstances);
throw new UnsupportedOperationException("No!!!!");
}
示例2: transitioningInto
import org.kuali.rice.kew.engine.node.DynamicResult; //导入依赖的package包/类
public DynamicResult transitioningInto(RouteContext context, RouteNodeInstance dynamicNodeInstance, RouteHelper helper) throws Exception {
HierarchyProvider provider = getHierarchyProvider(dynamicNodeInstance, context);
DocumentType documentType = setUpDocumentType(provider, context.getDocument().getDocumentType(), dynamicNodeInstance);
RouteNode splitNode = documentType.getNamedProcess(SPLIT_PROCESS_NAME).getInitialRouteNode();
//set up initial SplitNodeInstance
RouteNodeInstance splitNodeInstance = helper.getNodeFactory().createRouteNodeInstance(context.getDocument().getDocumentId(), splitNode);
splitNodeInstance.setBranch(dynamicNodeInstance.getBranch());
markAsInitialSplitNode(splitNodeInstance);
int i = 0;
List<Stop> stops = provider.getLeafStops(context);
if (stops.isEmpty()) {
// if we have no stops, then just return a no-op node with IU-UNIV attached, this will terminate the process
RouteNode noStopNode = documentType.getNamedProcess(NO_STOP_NAME).getInitialRouteNode();
RouteNodeInstance noChartOrgInstance = helper.getNodeFactory().createRouteNodeInstance(context.getDocument().getDocumentId(), noStopNode);
noChartOrgInstance.setBranch(dynamicNodeInstance.getBranch());
provider.setStop(noChartOrgInstance, null);
return new DynamicResult(true, noChartOrgInstance);
}
for (Stop stop: stops) {
RouteNode requestNode = getStopRequestNode(stop, documentType);
createInitialRequestNodeInstance(provider, stop, splitNodeInstance, dynamicNodeInstance, requestNode);
}
return new DynamicResult(false, splitNodeInstance);
}
示例3: transitioningInto
import org.kuali.rice.kew.engine.node.DynamicResult; //导入依赖的package包/类
@Override
public DynamicResult transitioningInto(RouteContext context, RouteNodeInstance process, RouteHelper helper) throws Exception {
RouteNodeInstance routeNodeInstance = context.getNodeInstance();
RouteNode dynamicRequestNode = helper.getNodeFactory().getRouteNode(context, SUB_REQUESTS);
RouteNodeInstance dynamicRequestNodeInstance1 = helper.getNodeFactory().createRouteNodeInstance(context.getDocument().getDocumentId(), dynamicRequestNode);
dynamicRequestNodeInstance1.addNodeState(new NodeState("role", "pmckown"));
RouteNodeInstance dynamicRequestNodeInstance2 = helper.getNodeFactory().createRouteNodeInstance(context.getDocument().getDocumentId(), dynamicRequestNode);
dynamicRequestNodeInstance2.addNodeState(new NodeState("role", "temay"));
RouteNodeInstance dynamicRequestNodeInstance3 = helper.getNodeFactory().createRouteNodeInstance(context.getDocument().getDocumentId(), dynamicRequestNode);
dynamicRequestNodeInstance3.addNodeState(new NodeState("role", "jhopf"));
dynamicRequestNodeInstance1.addNextNodeInstance(dynamicRequestNodeInstance2);
dynamicRequestNodeInstance2.addNextNodeInstance(dynamicRequestNodeInstance3);
routeNodeInstance.addNodeState(new NodeState("beenHere", "val"));
return new DynamicResult(true, dynamicRequestNodeInstance1);
}
示例4: transitioningInto
import org.kuali.rice.kew.engine.node.DynamicResult; //导入依赖的package包/类
public DynamicResult transitioningInto(RouteContext context, RouteNodeInstance process, RouteHelper helper) throws Exception {
RouteNodeInstance routeNodeInstance = context.getNodeInstance();
RouteNode dynamicRequestNode = helper.getNodeFactory().getRouteNode(context, SUB_REQUESTS);
RouteNodeInstance dynamicRequestNodeInstance1 = helper.getNodeFactory().createRouteNodeInstance(context.getDocument().getDocumentId(), dynamicRequestNode);
dynamicRequestNodeInstance1.addNodeState(new NodeState("role", "pmckown"));
RouteNodeInstance dynamicRequestNodeInstance2 = helper.getNodeFactory().createRouteNodeInstance(context.getDocument().getDocumentId(), dynamicRequestNode);
dynamicRequestNodeInstance2.addNodeState(new NodeState("role", "temay"));
RouteNodeInstance dynamicRequestNodeInstance3 = helper.getNodeFactory().createRouteNodeInstance(context.getDocument().getDocumentId(), dynamicRequestNode);
dynamicRequestNodeInstance3.addNodeState(new NodeState("role", "jhopf"));
dynamicRequestNodeInstance1.addNextNodeInstance(dynamicRequestNodeInstance2);
dynamicRequestNodeInstance2.addNextNodeInstance(dynamicRequestNodeInstance3);
routeNodeInstance.addNodeState(new NodeState("beenHere", "val"));
return new DynamicResult(true, dynamicRequestNodeInstance1);
}
示例5: transitioningOutOf
import org.kuali.rice.kew.engine.node.DynamicResult; //导入依赖的package包/类
public DynamicResult transitioningOutOf(RouteContext context, RouteHelper helper) throws Exception {
throw new UnsupportedOperationException("never written");
}
示例6: transitioningOutOf
import org.kuali.rice.kew.engine.node.DynamicResult; //导入依赖的package包/类
@Override
public DynamicResult transitioningOutOf(RouteContext context, RouteHelper helper) throws Exception {
return new DynamicResult(true, null);
}
示例7: transitioningOutOf
import org.kuali.rice.kew.engine.node.DynamicResult; //导入依赖的package包/类
public DynamicResult transitioningOutOf(RouteContext context, RouteHelper helper) throws Exception {
return new DynamicResult(true, null);
}