本文整理汇总了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;
}
示例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;
}
示例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()));
}
}
示例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()));
}
}
示例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);
}