Package org.jbpm.services.task.commands

Examples of org.jbpm.services.task.commands.GetContentCommand


        }
        Task task = ((Task) result);
        long contentId = task.getTaskData().getDocumentContentId();
        JaxbContent content = null;
        if( contentId > -1 ) {
            cmd = new GetContentCommand(contentId);
            result = processRequestBean.doRestTaskOperation(taskId, task.getTaskData().getDeploymentId(), task.getTaskData().getProcessInstanceId(), task, cmd);
            content = (JaxbContent) result;
        } else {
            throw KieRemoteRestOperationException.notFound("Content for task " + taskId + " could not be found.");
        }
View Full Code Here


        throw KieRemoteRestOperationException.notFound("Task " + taskId + " could not be found.");
    }
   
    @Override
    public Response getTaskContentByContentId(long contentId) {
        TaskCommand<?> cmd = new GetContentCommand(contentId);
        cmd.setUserId(identityProvider.getName());
        JaxbContent content = (JaxbContent) doRestTaskOperation(cmd);
        if( content == null ) {
            throw KieRemoteRestOperationException.notFound("Content " + contentId + " could not be found.");
        }
        return createCorrectVariant(new JaxbContent(content), headers);
View Full Code Here

TOP

Related Classes of org.jbpm.services.task.commands.GetContentCommand

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.