Member since
01-31-2020
5
Posts
0
Kudos Received
0
Solutions
03-22-2023
03:54 AM
@mburgess @SamCloud convert jsontosql is giving SQL but with '?' marks. example: "DELETE FROM tab1 WHERE id = ? AND feature_name = ? AND state = ? AND tenant_id = ?" When i print via putfile, the json has valid values.. [{"id":1,"feature_name":"fet1","state":16,"tenant_id":"abc123"}] Want to understand where I am doing it wrong.. Please help
... View more
05-06-2020
01:55 PM
@SamCloud Not really how the processor is designed to work. It order for a FlowFile to get outed to the duplicate path the distributed map cache must already have a matching entry in it. All i can think for you to try is setting up a second distributedMapCache server where you use detect Duplicate a second time. Those FlowFile routed down the duplicate connection the first time are used to populate the second cache server. Then all your FlowFiles routed to non duplicate path originally are checked against that second distributedMapCacheServer. Only thing here is you hav a bit of a race condition since you need to make sure the FlowFiles on the duplicate path are processed before those on the non-duplicate path. For that you might want to use maybe the wait and notify processors. Wait on non duplicate path and the notify on after the detectDuplicate on the duplicate path. You can see where this gets very complicated. You may need to develop something custom here. Matt
... View more