Interface SCSActivity

  • All Known Subinterfaces:
    SipSCSActivity

    public interface SCSActivity
    The Service Composition Selection Activity is the activity type that Service Composition Selection Events are fired on. All Service Composition Selection Events for a single call are fired on the same Service Composition Selection Activity.

    The SIS uses the same SLEE activity object to represent both the Service Composition Selection Activity and Interceptor Activity for a given call. Therefore it is possible for SIS components and SLEE applications that use either activity to share state related to the call if required.

    The SLEE activity representing the Service Composition Selection Activity for a call ends when control of the call terminates in the SIS.

    • Method Detail

      • getEvent

        Object getEvent()
                 throws IllegalStateException
        Get the last service composition selection event fired on this activity by the SIS.
        Returns:
        the last service composition selection event fired.
        Throws:
        IllegalStateException - if the service composition selection service has already returned a response to the SIS for the most recent event fired on this activity. This exception may also be thrown if the service has taken too long to respond to the request and a timeout has occurred in the SIS.
      • compositionSelected

        void compositionSelected​(CompositionID id)
                          throws NullPointerException,
                                 IllegalStateException
        Notify the SIS that a composition has been selected for the request encapsulated in the SCSEvent fired on this activity.
        Parameters:
        id - the composition ID of the selected composition.
        Throws:
        NullPointerException - if id is null.
        IllegalStateException - if the service has already returned a response to the SIS for this event. This exception may also be thrown if the service takes too long to respond to the request and a timeout has occurred in the SIS.
      • compositionNotFound

        void compositionNotFound()
                          throws IllegalStateException
        Notify the SIS that a suitable composition could not be found for the request encapsulated in the SCSEvent fired on this activity. Trigger rule evaluation continues.
        Throws:
        IllegalStateException - if the service has already returned a response to the SIS for this event. This exception may also be thrown if the service takes too long to respond to the request and a timeout has occurred in the SIS.