当前位置: 首页>>代码示例>>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;未经允许,请勿转载。