Interface SCSEvent
-
- All Known Subinterfaces:
INSCSEvent
public interface SCSEventA Service Composition Selection Event is fired to a service on a Service Composition Selection Activity. The service is expected to examine the parameters of the request encapsulated in this event and determine the composition that should be executed for it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcompositionNotFound()Notify the SIS that a suitable composition could not be found for the request.voidcompositionSelected(CompositionID id)Notify the SIS that a composition has been selected for the request.ObjectgetRequest()Get the request event received from the network.
-
-
-
Method Detail
-
getRequest
Object getRequest()
Get the request event received from the network.- Returns:
- the request.
-
compositionSelected
void compositionSelected(CompositionID id) throws NullPointerException, IllegalStateException
Notify the SIS that a composition has been selected for the request.- Parameters:
id- the composition ID of the selected composition.- Throws:
NullPointerException- ifidisnull.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 IllegalStateExceptionNotify the SIS that a suitable composition could not be found for the request. 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.
-
-