Forum Discussion
Hi maahutch ,
Good day, here's my suggestion first convet the second document into a key-value pair then use join snap to merge it from the streaming documents
I assume that the value from "Label" will be the keyname then value from "Value" will be the value
Expression: sl.ensureArray($.values().join('|')).toObject(v=> v.split('|')[0], v=> v.split('|')[1] )
Target Path: $
- bojanvelevski3 years agoValued Contributor
Hi @koolraul,
Conditional snap will actually work in your case, if everything is correct. One possible issue that I can see on the screenshot is that the conditional snap and the Pipeline Execute snap are not connected.
If you want to experiment further, you can try putting the condition in the Pipeline Execute snap, for example:
$param == 'a' ? "pipeline_a" : "pipeline_b"
Hope this helps,
Bojan