Skip to content

Activity Stream

The Activity Stream widget displays a list of unstructured activities associated with a specific object and channel. Users can view existing activities and, depending on configuration, may also add new activities.

Activity Structure

Each activity consists of:

  • Text content describing the activity.
  • A timestamp indicating when the activity occurred.
  • The user who performed the activity.
  • Optional attachments (files or links).

Object and Channel Identification

  • ObjectIdXPath: Specifies the XPath expression to retrieve the object ID from the data model.
  • ChannelIdXPath: Optionally specifies the XPath expression to retrieve the channel ID from the data model.

ObjectIdXPath must resolve to display a runtime stream. ChannelIdXPath separates streams for the same object; when it is empty, the object ID is used as the channel ID.

XML Fields

  • XPath establishes the form-data context from which the other paths and template content are evaluated.
  • ObjectIdXPath identifies the business object whose activities are shown. ChannelIdXPath optionally identifies a stream within that object; when it is empty, the object ID is used.
  • HyperlinkTemplate optionally supplies a data template for an activity link.
  • Rules contains the form rules that apply to the stream, such as conditional visibility.

ActivityStream displays and creates activity records for the configured object and channel; it does not use XPath as a destination for a user-entered value.

Example

1
2
3
4
5
6
<ActivityStream XPath="">
    <ObjectIdXPath><![CDATA[MyObjectId]]></ObjectIdXPath>
    <ChannelIdXPath><![CDATA[MyChannelId]]></ChannelIdXPath>
    <HyperlinkTemplate><![CDATA[]]></HyperlinkTemplate>
    <Rules />
</ActivityStream>

This example shows an Activity Stream widget configured to use the MyObjectId and MyChannelId elements from the data model to identify the relevant activity stream. Remember to replace these placeholders with the actual XPath expressions corresponding to your data model.