Package org.drools.task.service.responsehandlers

Examples of org.drools.task.service.responsehandlers.BlockingEventResponseHandler.waitTillDone()


        BlockingEventResponseHandler handler = new BlockingEventResponseHandler();
        client.registerForEvent( key, true, handler );
        Thread.sleep( 3000 );
       
        taskSession.taskOperation( Operation.Claim, taskId, users.get( "darth" ).getId(), null, null );         
        handler.waitTillDone( 5000 );
       
        Payload payload = handler.getPayload();
        TaskUserEvent event = ( TaskUserEvent ) payload.get();
        assertNotNull( event );       
    }
View Full Code Here


        BlockingEventResponseHandler handler = new BlockingEventResponseHandler();
        client.registerForEvent( key, true, handler );
        Thread.sleep( 3000 );
       
        taskSession.taskOperation( Operation.Claim, taskId, users.get( "darth" ).getId(), null, null, null );         
        handler.waitTillDone( 5000 );
       
        Payload payload = handler.getPayload();
        TaskUserEvent event = ( TaskUserEvent ) payload.get();
        assertNotNull( event );       
    }
View Full Code Here

        BlockingEventResponseHandler handler = new BlockingEventResponseHandler();
        client.registerForEvent( key, true, handler );
        Thread.sleep( 3000 );
       
        taskSession.taskOperation( Operation.Claim, taskId, users.get( "darth" ).getId(), null, null );         
        handler.waitTillDone( 5000 );
       
        Payload payload = handler.getPayload();
        TaskUserEvent event = ( TaskUserEvent ) payload.get();
        assertNotNull( event );       
    }
View Full Code Here

        BlockingEventResponseHandler handler = new BlockingEventResponseHandler();
        client.registerForEvent( key, true, handler );
        Thread.sleep( 3000 );
       
        taskSession.taskOperation( Operation.Claim, taskId, users.get( "darth" ).getId(), null, null, null );         
        handler.waitTillDone( 5000 );
       
        Payload payload = handler.getPayload();
        TaskUserEvent event = ( TaskUserEvent ) payload.get();
        assertNotNull( event );       
    }
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.