I need to extract values from primary_keys array and join them into one string. But I'm having troubles with values extraction.
Simplified input json:
{
"primary_keys": [
"ITEM",
"LOC",
"COMP_ID"
],
"ITEM": "ID158",
"LOC": 41,
"COMP_ID": "BPF",
"VALUE": 0.78
}
Expected output:
{
"PK": "ID158|41|BPF",
"ITEM": "ID158",
"LOC": 41,
"COMP_ID": "BPF",
"VALUE": 0.78
}
Content of primary_keys array may differ from one flowfile to another. I appreciate any input. thanks!
