本文整理匯總了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);
}