Examples of GetContentCommand


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

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

        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

Examples of org.kie.remote.jaxb.gen.GetContentCommand

        executeCommand(cmd);
    }

    @Override
    public Content getContentById( long contentId ) {
        GetContentCommand cmd = new GetContentCommand();
        cmd.setContentId(contentId);
        return (Content) executeCommand(cmd);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.