code: public boolean isFlowActive() {
          Object val = this.getArgument("active");
          if (val instanceof Integer) {
              return ((Integer)val).intValue() == 1;
          }
          else {
              throw new IllegalStateException("ChannelEvent does not contain the 'active' argument");
          }
      }
docs: Returns For flow events, returns true if flow is active
  
  @return boolean true if event specifies flow is active
  @throws IllegalStateException if this event is not a flow event