當前位置: 首頁>>代碼示例>>Java>>正文


Java DynamicResult類代碼示例

本文整理匯總了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!!!!");
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:18,代碼來源:DynamicSplitTestNode.java

示例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);
    }
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:31,代碼來源:HierarchyRoutingNode.java

示例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);
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:16,代碼來源:DynamicRoutingTest.java

示例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);
}
 
開發者ID:aapotts,項目名稱:kuali_rice,代碼行數:15,代碼來源:DynamicRoutingTest.java

示例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");
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:4,代碼來源:DynamicSplitTestNode.java

示例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);
}
 
開發者ID:kuali,項目名稱:kc-rice,代碼行數:5,代碼來源:DynamicRoutingTest.java

示例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);
}
 
開發者ID:aapotts,項目名稱:kuali_rice,代碼行數:4,代碼來源:DynamicRoutingTest.java


注:本文中的org.kuali.rice.kew.engine.node.DynamicResult類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。