PureEngage On-Premises

 View Only

Sign Up

RequestStartPlaceAgentStateReporting events monitoring

  • 1.  RequestStartPlaceAgentStateReporting events monitoring

    Posted 08-01-2017 11:38
    Hi All,

    I'm stuck with below problem and hope someone can help:

    We are trying to listen to InteractionServer events using java PSDK.
    From the documentation it looks like RequestStartPlaceAgentStateReporting class can help.

    Have written the following piece of code to receive events from InteractionServer.

    InteractionServerProtocol interactionServerProtocol = new InteractionServerProtocol(
       new Endpoint("InteractionServer", "myServerhosr", port));
    interactionServerProtocol.setClientName("EntityListener");
    interactionServerProtocol.setClientType(InteractionClient.AgentApplication);
    interactionServerProtocol.open();
    RequestStartPlaceAgentStateReporting requestStartPlaceAgentStateReporting =
       RequestStartPlaceAgentStateReporting.create("myPlace");
    interactionServerProtocol.send(requestStartPlaceAgentStateReporting);

    Anyone has a sample code on how the interaction server event messages can be received in the code after this.

    Thank you!