当前位置: 首页>>代码示例>>Java>>正文


Java RouteNodeInstanceLoader类代码示例

本文整理汇总了Java中org.kuali.rice.kew.dto.DTOConverter.RouteNodeInstanceLoader的典型用法代码示例。如果您正苦于以下问题:Java RouteNodeInstanceLoader类的具体用法?Java RouteNodeInstanceLoader怎么用?Java RouteNodeInstanceLoader使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RouteNodeInstanceLoader类属于org.kuali.rice.kew.dto.DTOConverter包,在下文中一共展示了RouteNodeInstanceLoader类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: convertActionRequest

import org.kuali.rice.kew.dto.DTOConverter.RouteNodeInstanceLoader; //导入依赖的package包/类
private static ActionRequestValue convertActionRequest(ActionRequest actionRequest, ActionRequestValue parentActionRequestBo,
        RouteNodeInstanceLoader routeNodeInstanceLoader) {
    if (actionRequest == null) {
        return null;
    }
    ActionRequestValue actionRequestBo = new ActionRequestFactory().createBlankActionRequest();
    populateActionRequest(actionRequestBo, actionRequest, routeNodeInstanceLoader);
    if (parentActionRequestBo != null) {
        actionRequestBo.setParentActionRequest(parentActionRequestBo);
    }
    if (actionRequest.getChildRequests() != null) {
        for (ActionRequest childRequest : actionRequest.getChildRequests()) {
            actionRequestBo.getChildrenRequests().add(ActionRequestValue.convertActionRequest(childRequest, actionRequestBo, routeNodeInstanceLoader));
        }
    }
    return actionRequestBo;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:18,代码来源:ActionRequestValue.java

示例2: convertActionRequest

import org.kuali.rice.kew.dto.DTOConverter.RouteNodeInstanceLoader; //导入依赖的package包/类
private static ActionRequestValue convertActionRequest(ActionRequest actionRequest, ActionRequestValue parentActionRequestBo,
        RouteNodeInstanceLoader routeNodeInstanceLoader) {
    if (actionRequest == null) {
        return null;
    }
    ActionRequestValue actionRequestBo = new ActionRequestFactory().createBlankActionRequest();
    populateActionRequest(actionRequestBo, actionRequest, routeNodeInstanceLoader);
    if (parentActionRequestBo != null) {
        actionRequestBo.setParentActionRequest(parentActionRequestBo);
        actionRequestBo.setParentActionRequestId(parentActionRequestBo.getActionRequestId());
    }
    if (actionRequest.getChildRequests() != null) {
        for (ActionRequest childRequest : actionRequest.getChildRequests()) {
            actionRequestBo.getChildrenRequests().add(ActionRequestValue.convertActionRequest(childRequest, actionRequestBo, routeNodeInstanceLoader));
        }
    }
    return actionRequestBo;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:19,代码来源:ActionRequestValue.java

示例3: populateActionRequest

import org.kuali.rice.kew.dto.DTOConverter.RouteNodeInstanceLoader; //导入依赖的package包/类
/**
 * This method converts everything except for the parent and child requests
 */
private static void populateActionRequest(ActionRequestValue actionRequestBo, ActionRequest actionRequest, 
        RouteNodeInstanceLoader routeNodeInstanceLoader) {

    actionRequestBo.setActionRequested(actionRequest.getActionRequested().getCode());
    if (!StringUtils.isBlank(actionRequest.getId())) {
        actionRequestBo.setActionRequestId(actionRequest.getId());
    }
    
    if (actionRequest.getActionTaken() != null) {
        // actionRequestBo.setActionTaken(ActionTakenValue.from(actionRequest.getActionTaken()));
        if (!StringUtils.isBlank(actionRequest.getActionTaken().getId())) {
            actionRequestBo.setActionTaken(KEWServiceLocator.getActionTakenService().findByActionTakenId(actionRequest.getActionTaken().getId()));
        }
    }
    actionRequestBo.setAnnotation(actionRequest.getAnnotation());
    if (actionRequest.getRequestPolicy() != null) {
        actionRequestBo.setApprovePolicy(actionRequest.getRequestPolicy().getCode());
    }
    actionRequestBo.setCreateDate(new Timestamp(actionRequest.getDateCreated().getMillis()));
    actionRequestBo.setCurrentIndicator(actionRequest.isCurrent());
    if (actionRequest.getDelegationType() != null) {
        actionRequestBo.setDelegationType(actionRequest.getDelegationType());
    }
    //actionRequestBo.setDocVersion(actionRequest.?);
    actionRequestBo.setForceAction(actionRequest.isForceAction());
    actionRequestBo.setPriority(actionRequest.getPriority());
    actionRequestBo.setRouteLevel(actionRequest.getRouteLevel());
    actionRequestBo.setQualifiedRoleName(actionRequest.getQualifiedRoleName());
    actionRequestBo.setQualifiedRoleNameLabel(actionRequest.getQualifiedRoleNameLabel());
    actionRequestBo.setRecipientTypeCd(actionRequest.getRecipientType().getCode());
    actionRequestBo.setResponsibilityDesc(actionRequest.getResponsibilityDescription());
    if (!StringUtils.isBlank(actionRequest.getResponsibilityId())) {
        actionRequestBo.setResponsibilityId(actionRequest.getResponsibilityId());
    }
    actionRequestBo.setRoleName(actionRequest.getRoleName());
    String documentId = actionRequest.getDocumentId();
    if (documentId != null) {
        actionRequestBo.setDocumentId(documentId);
        actionRequestBo.setRouteHeader(KEWServiceLocator.getRouteHeaderService().getRouteHeader(documentId));
    }

    actionRequestBo.setStatus(actionRequest.getStatus().getCode());
    actionRequestBo.setPrincipalId(actionRequest.getPrincipalId());
    actionRequestBo.setGroupId(actionRequest.getGroupId());
    
    if (routeNodeInstanceLoader != null && !StringUtils.isBlank(actionRequest.getRouteNodeInstanceId())) {
        actionRequestBo.setNodeInstance(routeNodeInstanceLoader.load(actionRequest.getRouteNodeInstanceId()));
    }
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:53,代码来源:ActionRequestValue.java

示例4: populateActionRequest

import org.kuali.rice.kew.dto.DTOConverter.RouteNodeInstanceLoader; //导入依赖的package包/类
/**
 * This method converts everything except for the parent and child requests
 */
private static void populateActionRequest(ActionRequestValue actionRequestBo, ActionRequest actionRequest, 
        RouteNodeInstanceLoader routeNodeInstanceLoader) {

    actionRequestBo.setActionRequested(actionRequest.getActionRequested().getCode());
    if (!StringUtils.isBlank(actionRequest.getId())) {
        actionRequestBo.setActionRequestId(actionRequest.getId());
    }
    
    if (actionRequest.getActionTaken() != null) {
        // actionRequestBo.setActionTaken(ActionTakenValue.from(actionRequest.getActionTaken()));
        if (!StringUtils.isBlank(actionRequest.getActionTaken().getId())) {
            actionRequestBo.setActionTakenId(actionRequest.getActionTaken().getId());
        }
    }
    actionRequestBo.setAnnotation(actionRequest.getAnnotation());
    if (actionRequest.getRequestPolicy() != null) {
        actionRequestBo.setApprovePolicy(actionRequest.getRequestPolicy().getCode());
    }
    actionRequestBo.setCreateDate(new Timestamp(actionRequest.getDateCreated().getMillis()));
    actionRequestBo.setCurrentIndicator(actionRequest.isCurrent());
    if (actionRequest.getDelegationType() != null) {
        actionRequestBo.setDelegationType(actionRequest.getDelegationType());
    }
    //actionRequestBo.setDocVersion(actionRequest.?);
    actionRequestBo.setForceAction(actionRequest.isForceAction());
    actionRequestBo.setPriority(actionRequest.getPriority());
    actionRequestBo.setRouteLevel(actionRequest.getRouteLevel());
    actionRequestBo.setQualifiedRoleName(actionRequest.getQualifiedRoleName());
    actionRequestBo.setQualifiedRoleNameLabel(actionRequest.getQualifiedRoleNameLabel());
    actionRequestBo.setRecipientTypeCd(actionRequest.getRecipientType().getCode());
    actionRequestBo.setResponsibilityDesc(actionRequest.getResponsibilityDescription());
    if (!StringUtils.isBlank(actionRequest.getResponsibilityId())) {
        actionRequestBo.setResponsibilityId(actionRequest.getResponsibilityId());
    }
    actionRequestBo.setRoleName(actionRequest.getRoleName());
    String documentId = actionRequest.getDocumentId();
    if (documentId != null) {
        actionRequestBo.setDocumentId(documentId);
        actionRequestBo.setRouteHeader(KEWServiceLocator.getRouteHeaderService().getRouteHeader(documentId));
    }

    actionRequestBo.setStatus(actionRequest.getStatus().getCode());
    actionRequestBo.setPrincipalId(actionRequest.getPrincipalId());
    actionRequestBo.setGroupId(actionRequest.getGroupId());
    
    if (routeNodeInstanceLoader != null && !StringUtils.isBlank(actionRequest.getRouteNodeInstanceId())) {
        actionRequestBo.setNodeInstance(routeNodeInstanceLoader.load(actionRequest.getRouteNodeInstanceId()));
    }
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:53,代码来源:ActionRequestValue.java

示例5: from

import org.kuali.rice.kew.dto.DTOConverter.RouteNodeInstanceLoader; //导入依赖的package包/类
/**
 * Converts an ActionRequestVO to an ActionRequest. The ActionRequestDTO passed in must be the root action request in the
 * graph, otherwise an IllegalArgumentException is thrown. This is to avoid potentially sticky issues with circular
 * references in the conversion. 
 * @param routeNodeInstanceLoader a service that will provide routeNodeInstanceS based on their IDs.
 */
public static ActionRequestValue from(ActionRequest actionRequest, 
        RouteNodeInstanceLoader routeNodeInstanceLoader) {
    return convertActionRequest(actionRequest, null, routeNodeInstanceLoader);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:11,代码来源:ActionRequestValue.java


注:本文中的org.kuali.rice.kew.dto.DTOConverter.RouteNodeInstanceLoader类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。