Package org.guvnor.rest.backend

Examples of org.guvnor.rest.backend.JobRequestApprovalService


        jobResult.setStatus( jobRequest.getStatus() );
        return jobResult;
    }
   
    private void approveRequest(CommandContext ctx, JobRequest request, JobResult result) {
        JobRequestApprovalService approvalService = null;
        try {
            approvalService = getApprovalService(ctx);
        } catch( Exception e) {
            logger.warn("Unable to retrieve {} bean: {}",
                    JobRequestApprovalService.class.getSimpleName(),
                    e.getMessage(),
                    e);
            result.setStatus(JobStatus.APPROVED);
            return;
        }
        if( approvalService == null ) {
            result.setStatus(JobStatus.APPROVED);
        } else {
            approvalService.requestApproval(request, result);
        }
    }
View Full Code Here

TOP

Related Classes of org.guvnor.rest.backend.JobRequestApprovalService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.