Implementing the Activity Log Service Provider Interface
Tip
Click here to download the JSON (JavaScript Object Notation) snippets included in these topics, and customize them to use according to your requirements.
The Activity Log SPI is a subset of the remote connector SPIs that a connector can implement to support business features of BMC Digital Workplace Catalog beside the initial handshakes (descriptors, health checks) and actions (because each action is, in a way, specific to its connector).
Activity Logs
Activity logs are comments associated with service requests and their external activities. Each can have attachments like images or documents.
Capability:
com.bmc.dsm.catalog:activityLogProvider
The activity log SPI enables a connector to allow its external activities to send and receive activity logs (comments) to and from service requests. This means that an activity log provider also needs to be an activity provider.
Here is a typical high-level scenario:
- A remote connector indicates that it is an activity provider and an activity log provider (with appropriate action descriptors).
- As part of the fulfillment workflow of a service request, an external activity is created through an action of the remote connector. From thereon, BMC Digital Workplace Catalog tracks its status.
- The requester posts a comment on the service request.
- The corresponding activity log is then sent to the external activity via the connector. The connector returns a reference to the activity log created externally in the integration target.
- BMC Digital Workplace Catalog regularly polls activity logs of external activities via the connector. The connector returns all the activity logs that it finds along with their external references. BMC Digital Workplace Catalog copies these activity logs and associate them with the corresponding service request, while avoiding duplicates by comparing external references (the ones it received and the one it already received in the past).
- The federated activity logs from the different sources are now available to the users of BMC Digital Workplace Catalog.
Activity Log SPI
| |
---|---|
Creates an activity log on a given external activity exposed by the connector. This REST call is a multi-part HTTP request so as to provide attachments in the same call as the activity log data (identifiers, message text, etc). This is a difference with other connector calls. This kind of HTTP requests is typically used by web applications to upload documents to a server. | |
overall request | A multi-part HTTP request with:
If there are no attachments, the connector will still receive a multi-part HTTP request, but it will only contain a single "request" part. Here is the kind of structure you should expect for the HTTP request.
|
request part body |
|
response | The HTTP response is a regular one containing JSON data (unlike the request). It will list the references to the created activity logs in the integration target. BMC Digital Workplace Catalog will store these references in order to avoid duplicates during polling.
Note that the connector may choose, in some cases, to generate several "activity log" entries in the integration target. This can be useful if the integration target does not support attachments and comments together as single entities. In that case, the connector will return as many references as necessary in the "createdActivityLogs" property.
|
| |
---|---|
Polls the activity logs associated with specified external activities exposed by the connector. This end-point follows a bulk pattern similar to | |
request |
|
response | For each criterion, the connector will list the corresponding activity logs. Associated attachments will be referenced in the same data structure, but their contents will be downloaded by BMC Digital Workplace Catalog in subsequent calls through the
|
Comments
Log in or register to comment.