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 java.lang.Object
A collection of utility methods useful for handling and working with events.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EVENTS_PARAMETER_NAME
static java.lang.String
JSON_STATE_FIELD_NAME
static java.lang.String
STATE_SIZE_VARIABLE_NAME
static java.lang.String
THIS_SUB_VARIABLE_NAME
-
Constructor Summary
Constructors Constructor Description EventUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ThingworxEvent
eventFromInfoTableRow(ValueCollection row)
Converts an event from an InfoTable row (with the Event data shape) into a ThingworxEvent instance.
-
-
-
Field Detail
-
EVENTS_PARAMETER_NAME
public static final java.lang.String EVENTS_PARAMETER_NAME
- See Also:
- Constant Field Values
-
JSON_STATE_FIELD_NAME
public static final java.lang.String JSON_STATE_FIELD_NAME
- See Also:
- Constant Field Values
-
THIS_SUB_VARIABLE_NAME
public static final java.lang.String THIS_SUB_VARIABLE_NAME
- See Also:
- Constant Field Values
-
STATE_SIZE_VARIABLE_NAME
public static final java.lang.String STATE_SIZE_VARIABLE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
eventFromInfoTableRow
@ThingworxExtensionApiMethod(since={7,4}) public static ThingworxEvent eventFromInfoTableRow(ValueCollection row) throws java.lang.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:
java.lang.Exception
- if the provided row does not match the Event datashape
-
-