Execution from URLs
After you create the integration object record, you can use a URL to pass parameters from an external application to trigger the Execute action. You can also use a URL to retrieve the results of an IBM® TRIRIGA® report-manager query in JSON format.
- Add the UserName and Password values to the HTTP request header in the standard security protocol of basic authorization.
- Add the USERNAME Parameter and PASSWORD Parameter values and their corresponding UserName and Password values to the HTTP request header.
- Add the USERNAME Parameter and PASSWORD Parameter values and their corresponding UserName and Password values as POST parameters or as a URL query string of the HTTP request.
Trigger the Execute action
ioName
parameter to the name of the integration
object record. For example, to trigger a Geocode Address
integration object record,
you call the following
URL:http://localhost:8001/html/en/default/rest
/Integration?USERNAME=username&PASSWORD=password&ioName=Geocode+Address
If
the URL triggers the Execute action on the integration object record as
expected, a Successful
message is returned.Triggering the Execute action on an integration object record is an asynchronous event, so it is not possible to get the results of the integration process synchronously. If you need immediate feedback of the results, you can tie a notification event to the completion of the integration object record. Then, the IBM TRIRIGA application can notify you when the integration process is complete. Another option might be to poll IBM TRIRIGA for that information.
Retrieve the query results
action
- Required parameter. Must be set to
query
. module
- Required parameter if no continue token is used. The module for
the query, for example,
triPeople
. bo
- Optional parameter. The business object for the query, for example,
triPeople
. If there is more than one business object, omit this parameter. query
- Required parameter if no continue token is used. The name of the
query, for example,
triEmployee - Find
. f
- Optional parameter. The format of the returned results, which
includes the following options:
json
- Default format. Minimized JSON string.
json-loc
- Minimized JSON string, containing localized values. Localized
values will appear in the string name value pairs where the name field
is appended with
_DISPLAY,
for each record in the JSON results. For example,"name_DISPLAY":"Some Localized Value"
. pjson
- JSON string in print format for easier readability.
pjson-loc
- JSON string in print format for easier readability, containing
localized values. Localized values will appear in the string name
value pairs where the name field is appended with
_DISPLAY
, for each record in the JSON results. For example,"name_DISPLAY":"Some Localized Value"
. xml
- Minimized XML string.
xml-loc
- Minimized XML string, containing localized values. Localized values
will appear in the
displayValue
child element of the column element, for each record in the XML results. For example,<displayValue><![CDATA[Some Localized Value]]></displayValue>
. pxml
- XML string in print format for easier readability.
pxml-loc
- XML string in print format for easier readability, containing
localized values. Localized values will appear in the
displayValue
child element of the column element, for each record in the XML results. For example,<displayValue><![CDATA[Some Localized Value]]></displayValue>
. tab
- Tab-delimited text.
- ct
- Required parameter if the next batch of records is being requested. A continue token is returned when the number of query results exceeds the default 1000 results. When you attempt to retrieve the next batch of records, you must pass this parameter with the token that is specified in the previous response.
http://localhost:8001/https://www.ibm.com/support/knowledgecenter/SSHEB3_3.8/com.ibm.tap.doc/html/en/default/rest
/Integration?USERNAME=username&PASSWORD=password&action=query
&module=triPeople&bo=triPeople&query=triEmployee+-+Find&f=pjson