Package com.wordpress.salaboy.model.messages

Examples of com.wordpress.salaboy.model.messages.ProcedureCompletedMessage


        String emergencyId = ((Emergency) workItem.getParameter("emergency")).getId();
        String procedureId = (String) workItem.getParameter("concreteProcedureId");
       
        try {
            System.out.println("The procedure "+procedureId+" is finished!");
            MessageFactory.sendMessage(new ProcedureCompletedMessage(emergencyId, procedureId, new Date()));
        } catch (HornetQException ex) {
            Logger.getLogger(NotifyEndOfProcedureWorkItemHandler.class.getName()).log(Level.SEVERE, null, ex);
        }
        manager.completeWorkItem(workItem.getId(), null);
    }
View Full Code Here

TOP

Related Classes of com.wordpress.salaboy.model.messages.ProcedureCompletedMessage

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.