This is an old revision of the document!


The MessageInterpreter class can be used to obtain the notification or service name and parameters from a message sent by Aware IM to an external party. The following public methods can be used:

public DataObject [] addNotification (EntityIdentifier receiver, INotification notification)

This method constructs a message representing a notification

Parameters

receiverthis should always be null
notificationthe notification to be sent

Returns

an array of DataObjects representing the message that can be sent to AwareIM.

 
public DataObject [] addServiceRequest (String componentName, String serviceName, Object [] parameters)

This method constructs a message representing a service request

Parameters

componentNamethis should always be null
serviceNamethe name of the service to call (the service with this name must be exposed by the service provider). If a message is sent to AwareIM the name of the service is the name of one of the methods exposed by the IExecutionEngineServices interface (see JavaDoc API)
parametersthe parameters of the service as an array of IEntity objects or null if the service does not require any parameters. If a message is sent to AwareIM the parameters must correspond to the methods exposed by the IExecutionEngineServices interface (see JavaDoc API)

Returns

An array of DataObjects representing the message that can be sent to AwareIM.

 
public MessageBuilder ()

Constructor.

Parameters

none

 
  • Last modified: 2023/05/03 01:12