Package com.thingworx.entities.utils
Class EventUtilities
java.lang.Object
com.thingworx.entities.utils.EventUtilities
@ThingworxExtensionApiClass(since={7,4},
canInstantiate=true)
public final class EventUtilities
extends Object
A collection of utility methods useful for handling and working with events.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThingworxEvent
Converts an event from an InfoTable row (with the Event data shape) into a ThingworxEvent instance.
-
Field Details
-
EVENTS_PARAMETER_NAME
- See Also:
-
JSON_STATE_FIELD_NAME
- See Also:
-
THIS_SUB_VARIABLE_NAME
- See Also:
-
STATE_SIZE_VARIABLE_NAME
- See Also:
-
-
Constructor Details
-
EventUtilities
public EventUtilities()
-
-
Method Details
-
eventFromInfoTableRow
@ThingworxExtensionApiMethod(since={7,4}) public static ThingworxEvent eventFromInfoTableRow(ValueCollection row) throws Exception
Converts an event from an InfoTable row (with the Event data shape) into a ThingworxEvent instance.- Parameters:
row
- The row of the InfoTable- Returns:
- The populated ThingworxEvent
- Throws:
Exception
- if the provided row does not match the Event datashape
-