lib/tools/tools_event_filter.js
/**
 * extract a eventField from a event node, matching the given selectClause
 * @param eventNode
 * @param selectClause
 */
extract a eventField from a event node, matching the given selectClause
@param eventNode
@param selectClause
extract a eventField from a event node matching the given selectClause @param eventNode @param selectClause
function extractEventField(eventData, selectClause) {
    assert_valid_event_data(eventData);
    assert(selectClause instanceof SimpleAttributeOperand);
    var handle = eventData.resolveSelectClause(selectClause);
    if (handle !=null) {
        var value = eventData.readValue(handle,selectClause);
        assert(value instanceof Variant);
        return value;
    } else {
        return new Variant();
    }
}
function extractEventField ( eventData , selectClause ) { assert_valid_event_data ( eventData ) ; assert ( selectClause instanceof SimpleAttributeOperand ) ; var handle = eventData . resolveSelectClause ( selectClause ) ; if ( handle != null ) { var value = eventData . readValue ( handle , selectClause ) ; assert ( value instanceof Variant ) ; return value ; } else { return new Variant ( ) ; } }
extract a eventField from a event node, matching the given selectClause
 @param eventNode
 @param selectClause
extract a eventField from a event node matching the given selectClause @param eventNode @param selectClause
// Part 4 - 7.17.3 // A null value is returned in the corresponding event field in the Publish response if the selected // field is not part of the Event or an error was returned in the selectClauseResults of the EventFilterResult. // return new Variant({dataType: DataType.StatusCode, value: browsePathResult.statusCode}); //xx var innerNode =