Community

Checking number of documents into a batch

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!

Was this article helpful?

0 out of 0 found this helpful

Comments

9 comments

  • Avatar

    Hi,

    The easiest solution would be to add entry condition on Verification stage to check if that condition is false. 

    Best regards,
    Vladimir

    0
  • Avatar
    Mattia Martinello
    Thanks Vladimir! Is it possible to add a message for the verification operator?
    0
  • Avatar

    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

    1
  • Avatar
    Mattia Martinello

    You should be able to show the message in Verification window, in column Processing Notes (or Comment):
    FCTools.ShowMessage("Your message here");

    Thanks.

    I tried to add a comment this way:

    message = "Wrong number of documents in batch. This batch should contains";
    message+= " X documents, but it contains Y documents. ";
    FCTools.ShowMessage(message);

    But no message are shown in the comments in the verification station.

    Where I'm wrong?

    0
  • Avatar

    What about Processing Notes? 

    0
  • Avatar
    Mattia Martinello

    What about Processing Notes? 

    They are empty.

    0
  • Avatar
    Steffen

    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?

    0
  • Avatar
    Mattia Martinello

    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.

    0
  • Avatar
    Sara

    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,

    0

Please sign in to leave a comment.