https://nifi.apache.org/docs/nifi-docs/html/record-path-guide.html#filters


Apologies in advance - I'm sure this email alias isn't used for questions, but 
I did see it at the top of the page in the link above.
Is it possible to do any AND condition with using record path?



Given the below json object, I would like to use RecordPath in an UpdateRecord 
processor to get the value of /loc2[*][isEmpty(./rlp) AND ./src = 
'network']/acc  (meaning, src = 'network' and rlp is empty/does not exist).  
Using nifi 1.2, is there no AND condition to use?  Has one been added in 1.3 or 
later?


Thanks and apologies in advance. - Dave


{

    "loc2": [
        {
            "acc": 92,
            "src": "gps",
            "ll": {
                "lat": 41.83173031,
                "lon": -88.09725264
            },
            "sol": 1498861615000,
            "brn": 307.7,
            "alt": 191,
            "spd": 2.48reddi
        },
        {
            "acc": 18.088,
            "src": "network",
            "ll": {
                "lat": 41.8317428,
                "lon": -88.096802
            },
            "sol": 1498865950344,
            "alt": 193.9
        },
        {
            "acc": 18.088,
            "src": "network",
            "ll": {
                "lat": 41.8317428,
                "lon": -88.096802
            },
            "sol": 1498865950344,
            "alt": 193.9,
            "rlp": "passive"
        },

        {
            "acc": 20,
            "src": "fused",
            "ll": {
                "lat": 41.8317428,
                "lon": -88.096802
            },
            "sol": 1498867975640,
            "alt": 0,
            "spd": 0
        }
    ],


}

Reply via email to