Version 8

    The MessageService is the entry point for message processing. It provides operations to

     

     

    You can get the MessageService from the API ProcessEngine or through the static locator like this

     

        MessageService msgService = MessageService.locateMessageService();
    

     

    You would create a Message through the API MessageBuilder and send it like this

     

        MessageBuilder msgBuilder = MessageBuilderService.locateMessageBuilder();
        Message msg = msgBuilder.newMessage("RequestData").
        addProperty("Name", "Kermit").
        addProperty("From", "MUC").
        addProperty("To", "NYC").
        addProperty("Date", "25-Jul-2008").
        addProperty("Seats", "2");
        getMessage();
    
        msgService.sendMessage(pocID, nodeName, msg);