コミュニティ

ABBYY FlexiCapture Application Programming Interface (API)

We should create simple custom verication tool.
It is clear, how to get a task, retreive document body, images and how to close task and change document stage.

BUT...we do not know how to propagate changed field values from our verification back to abbyy flexi capture server.

Can anybody provide some info or code samples?

Thank you!
Dusan

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

6件のコメント

  • Avatar
    Andrew Zyuzin
    Hi! You need to cope the interaction with ABBYY FlexiCapture Application Server that standard web verification station implements. To investigate it in details use Fiddler to capture all traffic between web station and App Server. The main idea is: 1) enable web stations in workflow settings, 2) then before verification stage a special XML description of the documents will be created, 3) get the task on verification stage, read this XML, display documents accordingly, allow your user to modify documents data and then save everything in XML again, 4) using SendToStage method from WEB API send the task to PostProcessing for web station stage.
    0
  • Avatar
    Permanently deleted user
    Hello,

    There is a code sample of a post request for sending document body back to server in the help file, but i couldn't manage to make it work properly, seems like theres an error.

    What is the version of FlexiCapture you are using?


    0
  • Avatar
    Dusan Spajzar
    We are using ABBYY FC11.
    we able to upload documentbody back to server without any errors.
    uploaded file on server have updated values from our verification station.

    What we don't know what to do next....
    As I understand we should send task to stage Verification Postprocessing, but we have some troubles doing that...

    web stations are enabled
    0
  • Avatar
    Permanently deleted user
    As i understand, currently you managed to get the document body from your server with a post request, modify some data and upload modified document back to server , again with a post request.

    After this you should dispose such variables as Task,Batch Project and session by closing them.
    In order to close the obtained task in a correct way you have to specify stage type that corresponds to postprocessing stage which is 510:

    //CloseTask( int sessionId, int taskId, int stageType );
    service.CloseTask(sessionId, taskId,510);

    Idealy after doing so the batch should be first routed to postprocessing where field values are supposed to be updated according to modified d0cument body and then to the next stage.




    0
  • Avatar
    Dusan Spajzar
    Problem solved!

    ​there are some necessary requests which should be called BEFORE ​service.CloseTask

    1. Action: Save DocumentBody
    2. Action: Save VerificationRequest
    3.​ ServerAction.aspx Action: CheckErrorsForBatch
    4. Action: Load DocumentBody

    After listed named above data is stored to server and you can close the task with session.CloseTask

    Many thanks for your support!
    0
  • Avatar
    Permanently deleted user

     Hi Dusan,

               Could you provide me the code which you had written to implement the verification station using web API. I am also trying to do the same but unable to get succeed.

     

    Thanks in advance..

    0

サインインしてコメントを残してください。