Recoverability Of execution

Discuss Robotics Process Automation. RPA is a rapidly growing field with 6 figure incomes and an extreme workforce shortage. This sub forum will be used to discuss aspects of RPA as it relates to both scripting languages and RPA software such as UIPath or Automation Anywhere
User avatar
tank
Posts: 2813
Joined: 28 Sep 2013, 22:15
Facebook: charlie.simmons.7334
Google: ttnnkkrr
GitHub: ttnnkkrr
Location: Irving TX
Contact:

Recoverability Of execution

11 Dec 2019, 07:26

Recoverability

11th December 2019

OVERVIEW

Recoverability is the ability to restart an automation from the last completed record. In a production environment, there are successful records and exceptions. While both states indicate a completed record. Completed records should be skipped if the automation needs to restart due to unrecoverable error.

Completed record

A successful record is indicated when the favorable business process is executed and no human intervention is needed. While the next step in the business may necessitate a human action the scope of the automation task was completed without human escalation. I,e, a bank record is successfully entered and categorized within quickbooks.

Exceptions are when the process cannot be executed against the scope of the script. When the scope of the process cannot be executed against the scope of the automation. I,e, a bank record is successfully entered but no expense category that matches can be assigned within quickbooks.

Incomplete record

An incomplete record occurs when the automation ends prematurely. Such an event could be caused by an unintended reboot or OS fault. When the automation is restarted it needs some way to know which records are complete.

Automation error

Any situation where the last line of code does not execute.



Considerations

For recoverability the scope of the automation should mean the automation processes multiple records one at a time but not on demand. An on demand automation would execute a record only if called for a single record. Got example the entire automation runs on one record and then exits. For recoverability to be a factor the scope of the automation needs to execute one record after another until all records are complete.

Definition of done

All records are status of exception or success and the last line of code has executed.

GOALS
  1. Prevent duplication of records
  2. Prevent data loss
  3. Ensure complete process execution



MILESTONES

Initialize Log

The automation starts and identifies a logging function. Develop and add on a built in function called AuditLog. Accept Parameters DateFormat, CallBack

DateFormat - same as FormatTime command this parameter will be optional. If omitted, it defaults to the time followed by the long date

CallBack- optional. Sets a callback function that will set a callback. The callback could link to a DB or network share. If omitted the audit log is a text file stored in workingdir. The CallBack must accept a UniqueRecordID and an optional boolean value. If the boolean is set to true this call back must log the UniqueRecordID. If not set the function should check the log using the UniqueRecordID and if found return true otherwise return false

Record Complete Record

A record for this discussion is one complete iteration of the automation. AuditRecordComplete accepts parameter of UniqueRecordID, RecordStatus and is passed to the callback indicated in AuditLog.

UniqueRecordID - is some identifier that can easily be checked at the beginning of the iteration

RecordStatus - if set to true the UniqueRecordID is logged to the AuditLog callback. Otherwise this function returns false. This is useful if called at the beginning of the iteration

Process Complete

Indicated by execution of last line of the code. AuditComplete accepts an optional callback function to compile the current audit log and remove it from active status. If omitted the current audit text file is simply deleted
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
https://www.facebook.com/ahkscript.org
If you have forum suggestions please submit a pull request
Check Out WebWriter
Thanks Tank :thumbup:

Return to “RPA”

Who is online

Users browsing this forum: No registered users and 10 guests