Package org.jbpm.services.task.commands

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


    @Test
    public void queryModificationServiceTest() throws Exception {
        RemoteServicesQueryCommandBuilder taskQueryBuilder = new RemoteServicesQueryCommandBuilder(USER_ID);
       
        TaskQueryDataCommand cmd = taskQueryBuilder.createTaskQueryDataCommand()
        List<TaskSummary> taskResult = taskService.execute(cmd);
        assertNotNull( "Null taskResult!", taskResult );
        assertFalse( "No task summaries found.", taskResult.isEmpty() );
   
        TaskSummary taskSum = taskResult.get(0);
View Full Code Here


   
    public TaskQueryDataCommand createTaskQueryDataCommand() {
        if( taskUserId == null ) {
            throw new IllegalStateException("A user id is required to create a " + TaskQueryDataCommand.class.getSimpleName() );
        }
        TaskQueryDataCommand cmd = new TaskQueryDataCommand(getQueryData());
        cmd.setUserId(taskUserId);
        return cmd;
    }
View Full Code Here

     
        // copy query data for var query
        QueryData varLogQueryData = new QueryData(varInstLogQueryBuilder.getQueryData());
       
        // task queries
        TaskQueryDataCommand taskCmd = taskQueryBuilder.createTaskQueryDataCommand();
        List<TaskSummary> taskSummaries = resourceBase.doRestTaskOperation(taskCmd);
      
        // variable queries
        List<VariableInstanceLog> varLogs = resourceBase.getAuditLogService().queryVariableInstanceLogs(varLogQueryData);
       
View Full Code Here

TOP

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

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.