You are viewing limited content. For full access, please sign in.

Question

Question

strange workflow issues (pattern matching)

asked on April 14, 2022 Show version history

I have made a workflow to test the capture tool on barcodes, text, and numbers. I have set it up to extract the date, save a chunk of text, and read the first barcode in a list of 3. the workflow then does a pattern match of the text and extracts the page dimensions using this code \w{1,9}\s?x\s?\w{1,9}\s?mm which works in the test box, then its supposed to save it as a note on the document, it then renames the document to the date, and finally adds a note saying what is stored in the barcode. 

 

everything is working except the pattern match tool. I am getting no error messages, the test function is giving me what its supposed to, but it's not saving the dimensions token to the notes. 

 

I tried putting the input from the capture tool directly into the notes and it works but breaks it up into 5 or 6 notes of about 100 characters even thought the limit is set to 1000

 

Ive tried everything I can think of so any ideas would be appreciated

I attached the test page Im using incase that helps

 

0 0

Replies

replied on April 14, 2022

What do you mean "save it as a note"? Is that a sticky note?

Did you try tracking your tokens to see what the value read from the document is both from the capture profile and from the pattern matching activity?

0 0
replied on April 14, 2022

Actually, I can reproduce the issue. Bug reference ID #373799.

The problem is that the capture profile returns a multi-value token when it reads multiple lines of text from the zone. So when you pass the token to Pattern Matching as-is, it will only use the first value because it was used in a textbox that expects a single value. And your match happens to be on line 2.

As a workaround, change your Pattern Matching activity to concatenate the values in the multi-value token. Click on the token name in the Input textbox and choose "Apply index", then select "all values separated by a space". Then republish your workflow.

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.