Class AlarmEventCollectionExpressionParseContext

java.lang.Object
com.inductiveautomation.ignition.gateway.expressions.AbstractMultiLevelExpressionParseContext
com.inductiveautomation.ignition.gateway.expressions.AlarmEventCollectionExpressionParseContext
All Implemented Interfaces:
ExpressionParseContext

public class AlarmEventCollectionExpressionParseContext extends AbstractMultiLevelExpressionParseContext
This parse context is built to work with a collection of events. It works much like the PropertyBasedExpressionParseContext, except that allows indexing into the collection, and supports additional collection-related properties, such as "Count", "MinPriority", etc.
Examples:
{MaxPriority}
{Priority}
  • Constructor Details

    • AlarmEventCollectionExpressionParseContext

      public AlarmEventCollectionExpressionParseContext(PropertyResolver propResolver, List<AlarmEvent> alarmEvents)
  • Method Details

    • tryCreateBoundExpression

      protected Expression tryCreateBoundExpression(String path)
      Description copied from class: AbstractMultiLevelExpressionParseContext
      This function should create the expression if possible. If not, it should return null instead of throwing the error, in which case the parent parse context will be tried.
      Specified by:
      tryCreateBoundExpression in class AbstractMultiLevelExpressionParseContext
    • expandCollectionReferences

      public String expandCollectionReferences(String expression) throws Exception
      We want our message syntax to support building a "loop" message. Since that not part of the parser, and we happen to know how many events there will be here, so we create an expanded, parsable message here.
      Throws:
      Exception