How to prohibit Verification Operators closing a task with rule errors or unverified symbols?

Description

By default Verification Operators have a right to close a task with errors and unverified symbols. How can we prevent Verification Operators from closing such tasks?

Solution

To prevent Verification Operators from closing a task with rule errors or unverified symbols you need to:

  1. Open ABBYY FlexiCapture Project Setup Station;
  2. Open menu Project→ Project Properties…;
  3. Select tab Stage tools, select Verification stage and click Edit;
  4. Click Add event… , select On task close and click Edit script…
  5. Use the following script as a sample (VBScript):

a. In case you wish to prohibit closing a task with errors:

dim flag_exist

flag_exist = false

for each item in Me.DocumentsWindow.Items

Me.OpenDocument( item.Document )

 item.Document.CheckRules()

    if (item.Document.HasErrors) and (flag_exist = false) then

        CanClose.Value = false

        FCTools.ShowMessage("The document has errors! Check them and correct immediately!")

        flag_exist = true

    end if

 Me.CloseDocument( item.Document )

next

b. In case you wish to prohibit closing a task with unverified symbols:

dim flag_exist

flag_exist = false

for each item in Me.DocumentsWindow.Items

Me.OpenDocument( item.Document )

    item.Document.CheckRules()

    if (not item.Document.isVerified) and (flag_exist = false) then

        CanClose.Value = false

        FCTools.ShowMessage("The document has unverified symbols! Please, verify all the symbols before closing the task!")

        flag_exist = true

    end if

Me.CloseDocument( item.Document )?

next

Was this article helpful?

3 out of 4 found this helpful

Have more questions? Submit a request

Comments

4 comments

  • Avatar
    Sachin Bhutani

    this does not work for web verification stations. 

    is there  a way to put the same error on web verification station ? 

     

    Regards
    Sachin 

    0
  • Avatar
    Victoria Dvornikova

    Hello Sachin Bhutani

    Sorry for such a delay with reply.

    Please specify if the issue is still relevant?

    0
  • Avatar
    Sachin Bhutani

    Hi Victoria, 

    thanks for checking this. the issue is still relevant for web verification stations. 

    the work-around available is through workflow scripting, but it still can not prevent users from closing the task. 

    is there any standard setting to not allow close of task on web stations when the tasks have errors ? 

    Regards

    Sachin 

    0
  • Avatar
    Victoria Dvornikova

    Sachin,

    Thank you for your prompt reply. I`ve created a support ticket based on your question. My colleagues will reply you soon.

    0

Please sign in to leave a comment.

Recently viewed