try {
log.info( "Testing SEVERITY @rx ^\\d$" );
String val = event.get( "SEVERITY" );
log.info( " event.get('SEVERITY') = " + val );
Condition c = new ConditionRX( "SEVERITY", "^\\d$" );
if( ! c.matches( event ) )
fail( "Failed to match ConditionRX on SEVERITY with value '^\\d$' !" );
} catch (Exception e) {
fail( "Error: " + e.getMessage() );
}
}