Checking number of documents into a batch

  • 145 Views
  • Last Post 19 August 2019
decibel83 posted this 13 June 2019

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!

Order By: Standard | Newest | Votes
Vladimir Dimitrijevic posted this 17 June 2019

Hi,

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

Best regards,
Vladimir

decibel83 posted this 17 June 2019

Thanks Vladimir! Is it possible to add a message for the verification operator?

Vladimir Dimitrijevic posted this 17 June 2019

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

  • Liked by
  • The619
decibel83 posted this 17 June 2019

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?

Vladimir Dimitrijevic posted this 17 June 2019

What about Processing Notes? 

decibel83 posted this 17 June 2019

What about Processing Notes? 

They are empty.

The619 posted this 16 August 2019

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?

decibel83 posted this 19 August 2019

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.

Close