Interface CommunicationPort


public interface CommunicationPort
A custom communication port must implement this interface. If the port receives a message or what ever, you should notify Nuclos via the org.nuclos.api.provider.CommunicationProvider#handleNotification(NotificationContext) NotificationContext objects are created from org.nuclos.api.provider.CommunicationProvider#newContextInstance(CommunicationPort, Class) NotificationContext classes can be found in package org.nuclos.api.context.communication
  • Method Summary

    Modifier and Type
    Method
    Description
     
    <C extends RequestContext<?>>
    void
    handleRequest(C context)
    Nuclos calls this method only for the types your interface supports.
  • Method Details

    • getId

      UID getId()
      Returns:
      the id
    • handleRequest

      <C extends RequestContext<?>> void handleRequest(C context) throws BusinessException
      Nuclos calls this method only for the types your interface supports. Add the supported types of RequestContext during the registration org.nuclos.api.communication.CommunicationInterface#register(org.nuclos.api.communication.CommunicationInterface.Registration) Reponses RequestContext.clearResponse() creates a new RequestResponse. Send the complete context with response back to Nuclos via org.nuclos.api.provider.CommunicationProvider#handleNotification(NotificationContext) when the request is processed, in a new state...
      Parameters:
      context -
      Throws:
      BusinessException