Tema anterior: getITPamVersionInfoTema siguiente: getPendingInteractionRequestForm


getMatchingEvents

Utilice este método para obtener la lista de eventos coincidentes para un suscriptor determinado.

Ejemplo

Permitir coincidencia parcial Verdadero
<tns:getMatchingEvents xmlns:tns="http://www.ca.com/itpam">
<tns:auth>
<!--xsd:Choice Type-->
<tns:token>token__</tns:token>
<tns:user>Joe</tns:user>
<tns:password>thisismypassword</tns:password>
<tns:auth>
<tns:eventName>abc</tns:eventName>
<tns:eventType></tns:eventType>
<tns:eventSource></tns:eventSource>
<tns:eventDestination></tns:eventDestination>
<tns:eventExpression></tns:eventExpression>
<tns:enablePatternMatch></tns:enablePatternMatch>
<tns:allowPartialMatch>true</tns:allowPartialMatch>
<tns:consumeEvents></tns:consumeEvents>
<tns:retrieveAllMatchingEvents>true</tns:retrieveAllMatchingEvents>
<tns:uniqueId></tns:uniqueId>
</tns:getMatchingEvents>

Activar coincidencia de patrón Verdadero
<tns:getMatchingEvents xmlns:tns="http://www.ca.com/itpam">
<tns:auth>
<tns:user>Joe</tns:user>
<tns:password>thisismypassword</tns:password>
<tns:auth>
<tns:eventName>a.*f</tns:eventName>
<tns:eventType></tns:eventType>
<tns:eventSource></tns:eventSource>
<tns:eventDestination></tns:eventDestination>
<tns:eventExpression></tns:eventExpression>
<tns:enablePatternMatch>true</tns:enablePatternMatch>
<tns:allowPartialMatch></tns:allowPartialMatch>
<tns:consumeEvents></tns:consumeEvents>
<tns:retrieveAllMatchingEvents>true</tns:retrieveAllMatchingEvents>
<tns:uniqueId></tns:uniqueId>
</tns:getMatchingEvents>

Solicitud de SOAP

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<tns:getMatchingEvents xmlns:tns="http://www.ca.com/itpam">
<tns:auth>
<tns:user>Joe</tns:user>
<tns:password>thisismypassword</tns:password>
<tns:auth>
<tns:eventName>abc</tns:eventName>
<tns:eventType/>
<tns:eventSource/>
<tns:eventDestination/>
<tns:eventExpression/>
<tns:enablePatternMatch/>
<tns:allowPartialMatch/>
<tns:consumeEvents/>
<tns:retrieveAllMatchingEvents>true</tns:retrieveAllMatchingEvents>
<tns:uniqueId/>
</tns:getMatchingEvents>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

<eventName> identifica el nombre del evento (opcional).

<eventType> identifica el tipo de evento (opcional).

<eventSource> identifica la fuente del evento (opcional).

<eventDestination> identifica el destino del evento (opcional).

<eventExpression> es una expresión booleana para parámetros de evento adicionales. Esta expresión se evalúa frente a los parámetros de evento o carga útil que se envían con un evento (opcional). Por ejemplo:

Event.eventid==1234.

<enablePatternMatch> activa la coincidencia de patrón para los parámetros como nombre del evento, tipo, fuente y destino.

<allowPartialMatch> permite una coincidencia parcial para los parámetros como nombre del evento, tipo, fuente y destino.

<uniqueId> envía un ID único junto con la solicitud SOAP para que la llamada SOAP utilice el evento solamente una vez. Si el enviar evento tiene una opción de entrega a varios suscriptores, las múltiples llamadas de getMatchingEvents con el mismo <uniqueId> utilizan el evento solamente una vez.

<consumeEvents> permite que la solicitud utilice o no los eventos coincidentes.

<retrieveAllMatchingEvents> permite que la solicitud recupere todos o los primeros eventos de envío coincidentes.

Respuesta de SOAP

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<getMatchingEventsResponse xmlns="http://www.ca.com/itpam">
<events>
<event>
<eventId>fefce4c1-ad8e-42a2-8964-362704ddbb24</eventId>
<eventName>abc</eventName>
<eventType>eventType__</eventType>
<eventSource>eventSource__</eventSource>
<eventDestination>eventDestination__</eventDestination>
<payload>payload__</payload>
<toSingleSubscriber>false</toSingleSubscriber>
<eventCreationTime>2012-03-06T17:04:32.562+05:30</eventCreationTime>
<eventExpirationTime>2012-03-06T17:06:42.562+05:30</eventExpirationTime>
<user>pamadmin</user>
</event>
</events>
</getMatchingEventsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>