CompanionCompanion
Companion for Delivery
Companion for Business
Companion for Integration
Contact us
Log out
Companion for Delivery
Companion for Business
Companion for Integration
Contact us
  • Companion for Integration

    • Introduction
    • Getting Started
    • Configuration
    • Excel templating
    • How it works
  • YAML Configuration

    • Principles
    • Syntax
    • Validation
  • Custom Functions

    • Summary
    • arrayToJSON
    • bool
    • concatValueAndUnit
    • convertUnit
    • currentContextId
    • exportTime
    • eval
    • firstNonEmpty
    • getContextName
    • getEvents
    • getLastEventTime
    • getReferencesByAttributeGroup
    • getStoredValue
    • getWorkspaceId
    • hash
    • hasStoreKey
    • if
    • integer
    • join
    • mergeInheritedValues
    • multiValuesToJSON
    • number
    • nodeList
    • order
    • resolveUnitLabel
    • serializeAssetPushLocationsToJSON
    • serializeAttributeLinksToJSON
    • serializeContextReferenceToJSON
    • serializeContextReferencesToJSON
    • serializeContextValuesToJSON
    • serializeDataContainerToJSON
    • serializeDataContainersToJSON
    • serializeListOfValueValuesToJSON
    • serializeReferencesToJSON
    • serializeReferenceToJSON
    • serializeValuesToJSON
    • store
    • toXML
    • uppercase
  • Execution

    • Summary
    • Composite
    • From STEP
    • Standalone
    • Performance statistics
  • Configuration

    • ActiveMQ extension
    • Amazon AWS extension (SNS, SQS, Kinesis, S3)
    • ElasticSearch/OpenSearch extension
    • File extension (Excel, CSV, JSON, XML, JSONL, XMLL)
    • Kafka extension
    • Kafka Core extension
    • MongoDB/Cosmos DB extension
    • SQL extension
    • REST extension
    • Google Pub/Sub extension
  • c4i SaaS

    • Introduction
    • Managing jobs
    • Managing executions
    • Managing users
    • Changelog
  • Changelog

    • Core features changelog
    • ActiveMQ extension changelog
    • Amazon AWS extension changelog
    • Composite extension changelog
    • ElasticSearch extension changelog
    • File extension changelog
    • Kafka extension changelog
    • Kafka Core extension changelog
    • MongoDB/Cosmos DB extension changelog
    • SQL extension changelog
    • REST extension changelog
    • Google Pub/Sub extension changelog

getEvents

The getEvents function is used to display information about the events related to a node

Syntax

c4i:getEvents(xPath)

Parameters

xPath

The XPath to the node

Return value

A JSON array containing information on the events related to the node

Example

Given the following XML comments in STEP XML

<properties>
<entry key="eventID">1720993</entry>
<entry key="eventType">1</entry>
<entry key="nodeID">PRD1</entry>
<entry key="nodeType">product</entry>
<entry key="eventCreationTime">2024-03-19 14:18:31.0</entry>
<entry key="eventRevision">0.10</entry>
<entry key="messageCreationTime">2024-03-19 14:19:40.341</entry>
<entry key="eventID">1720998</entry>
<entry key="eventType">1</entry>
<entry key="nodeID">PRD1</entry>
<entry key="nodeType">product</entry>
<entry key="eventCreationTime">2024-03-19 14:19:16.0</entry>
<entry key="eventRevision">0.11</entry>
<entry key="messageCreationTime">2024-03-19 14:19:40.341</entry>
</properties>

The following YAML configuration will produce the following output :

c4i:getEvents(.)
[
  {
    "eventId": "1720993",
    "eventType": "1",
    "eventCreationTime": "2024-03-19T14:18:31"
  },
  {
    "eventId": "1720998",
    "eventType": "1",
    "eventCreationTime": "2024-03-19T14:19:16"
  }
]
Last Updated: 4/8/24, 3:29 PM
Prev
getContextName
Next
getLastEventTime