06 March 2018
Please see the article "FlexiLayout Language > Hypotheses and their properties > Hypotheses for all types of elements" of the FlexiLayout Help file. It contains the exact example of what you are looking for.
Hi Alexey, thank you very much for your answer.
I've already checked that help file, are you referring to the section "Example: accessing the properties of a hypothesis", aren't you?
That example simply checks if the value of a field is exactly equal like a given value, but I have to make something more complex.
The QR Code I have to match in my layout can contain only a text string with fields separated by pipe (|) and each field has to match the keyalue format.
If the QR Code matches this format, the layout is matched, else not.
For this reason I think I should write some JScript code, which I understand I cannot insert into the search relation in FlexiLayout studio, right?
Would it be better to create a new script step into the workflow which takes only this FlexiLayout, checks the QR Code, and delete the match and route the document to the Recognition again if the QR Code is not correct? But doing so it would be matched again on the same FlexiLayout. So how I could avoid this endless loop?
Thank you very much!