Hi, I'm working in a project where it's required to log the time of recognize stage for each batch... we need to know how long took that stage for every batch.
I was wondering to create a stage in the workflow but i dont find a method or property for that information
Could you give some ideas?
Thank you
Comments
3 comments
Hi Karen,
You can read execution time from database table EventLog. If you want to add two additional workflow stages, one before Recognition stage and one after Recognition stage, you would have to:
1. Add Stage (select Automatic and click OK button)
2. Add name to this stage "Before Recognition"
3. Go to Script tab, select type: BatchProcessing, click on "Edit script" button and add this script:
Same you will do for RecognitionEnd registration parameter, repeat steps 2 and 3.
Afterwards, in stage that you are using to save the data, you can read start/end registration parameters from batch properties:
string recognitionStart = Batch.Properties.Get("RecognitionStart");
string recognitionEnd = Batch.Properties.Get("RecognitionEnd");
Best regards,
Vladimir
Hi Vladimir once again your post help me a lot, thank you very much
Hi Karen,
You're welcome!
Best regards,
Vladimir
Please sign in to leave a comment.