Hi,
I am creating a new FlexiCapture 12 project with a singe Document Definition which splits scanned documents into single documents recognising some barcodes on them.
Operators scans a predefined number of documents in a single batch/file, and I need to check if FlexiCapture correctly recognised barcodes and generates the correct number of documents from that batch.
So I created a new registration parameter which could be specified from operators in the Scanning Station, or is hardcoded into the Image Import Profile for documents imported from hot folders.
Then I created a new workflow stage "Check number of documents splitted in the batch" which checks the number of generated document after the Recognition stage with the number specified into the registration parameters.
Now the unknown step: I need to send the batch to the verification stage if this check if false: what action/code into the stage script to get this? On other projects I sent documents to the Verification stage if their fields are not correct, not if the batch does not have the correct number of document.
The typical use case is if FlexiCapture does not recognise a barcode, so it creates one less document and the operator needs to manually split the document and insert the barcode data into the Verification Station.
Could you help me please?
Thanks!
Comments
9 comments
Hi,
The easiest solution would be to add entry condition on Verification stage to check if that condition is false.
Best regards,
Vladimir
Hi,
You're welcome. You should be able to show the message in Verification window, in column Processing Notes (or Comment):
FCTools.ShowMessage("Your message here");
Best regards,
Vladimir
Thanks.
I tried to add a comment this way:
But no message are shown in the comments in the verification station.
Where I'm wrong?
What about Processing Notes?
They are empty.
I like to add a new STATUS Field for those messages. So i double check the fieldvalues and if they do not have the correct syntax i add a systemmessage in the status field. If the Statusfield is filled, i do not alllow to export this document. Maybe an idea?
Yes! This i a wonderful idea, thank you!
But I've also found that the IRuleContext object has a ErrorMessage property which can be used to display an error message on the field during the verification process.
Hi Mattia,
As you said,
"I created a new workflow stage "Check number of documents splitted in the batch" which checks the number of generated document after the Recognition stage with the number specified into the registration parameters."
Can you explain how to do this?
Thanks,
Please sign in to leave a comment.