Interface EventSender

All Known Implementing Classes:
AbstractHTTPWithJWTTokenAuthEventSender, HTTPWithOIDCAuthEventSender, HTTPWithUMAAuthEventSender

public interface EventSender
  • Method Details

    • send

      void send(Event event)
      Sends an event.
      Parameters:
      event - the event to send
    • getLastSendHTTPResponseCode

      int getLastSendHTTPResponseCode()
      Return the last send HTTP response code.
      Returns:
      the HTTP response code or -1 if an error occurred before the call (e.g. during the authorization or connection)
    • sendAndGetResult

      String sendAndGetResult(Event event)
      Send an event and get results.
      Parameters:
      event - the event to send
      Returns:
      the result of the call
    • retrive

      org.json.simple.JSONObject retrive(String id)
      Retrieves the instance of the provided workflow instance.
      Parameters:
      id - the workflow instance id
      Returns:
    • getLastRetrieveHTTPResponseCode

      int getLastRetrieveHTTPResponseCode()
      Return the last retrieve HTTP response code.
      Returns:
      the HTTP response code or -1 if an error occurred before the call (e.g. during the authorization or connection)