NestedName with 3 RegEx rules -> Connection Issue
Posted: Sun Mar 04, 2018 8:03 pm
Hi guys;
I am fighting a bit of a battle with NestedName, which does not want to cooperate the way I hoped it would.
Basically I am trying to create a Connection based on whether an incoming JobFolder contains a file which NameProper matches any of the three defined RegEx conditions.
So if the file which name is matching one of these:
(.*)[T|t]able(.*)[O|o]f(.*)[C|c]ontent(.*)
OR
(.*)[I|i]ndex(.*)
OR
(.*)(\s)(TOC|ToC|toc|Toc)(.*)
is in the incoming job folder - then go on connection A, if there is no file matching any of the above RegEx, then send the whole JobFolder on Connection B.
I have tried to set a variable for [Job.NestedName] to match the RegEx (as per line 1); I have tried to set a particular result of ie.: [Job.NestedName:Search="(.*)[I|i]ndex(.*)"] to match or to not match the RegEx... And while all of those return properly True / False in the config window, are properly validated when flow is activated, when the job comes - it goes to Problem Jobs, as there is no outgoing connection that would accept the job.
I shall add, that when there is no RegEx involved, but a strictly defined filename that is to be looked for inside the JobFolder, then it works fine.
How shall I then properly engage the RegEx Criteria for the filename contained in the JobFolder, so that it worked properly?
Anyone? Any Hints?
I am fighting a bit of a battle with NestedName, which does not want to cooperate the way I hoped it would.
Basically I am trying to create a Connection based on whether an incoming JobFolder contains a file which NameProper matches any of the three defined RegEx conditions.
So if the file which name is matching one of these:
(.*)[T|t]able(.*)[O|o]f(.*)[C|c]ontent(.*)
OR
(.*)[I|i]ndex(.*)
OR
(.*)(\s)(TOC|ToC|toc|Toc)(.*)
is in the incoming job folder - then go on connection A, if there is no file matching any of the above RegEx, then send the whole JobFolder on Connection B.
I have tried to set a variable for [Job.NestedName] to match the RegEx (as per line 1); I have tried to set a particular result of ie.: [Job.NestedName:Search="(.*)[I|i]ndex(.*)"] to match or to not match the RegEx... And while all of those return properly True / False in the config window, are properly validated when flow is activated, when the job comes - it goes to Problem Jobs, as there is no outgoing connection that would accept the job.
I shall add, that when there is no RegEx involved, but a strictly defined filename that is to be looked for inside the JobFolder, then it works fine.
How shall I then properly engage the RegEx Criteria for the filename contained in the JobFolder, so that it worked properly?
Anyone? Any Hints?