Still dont know what to do with Reframework


so what exactly do I do? with this template I know how to open it and how it works but how do i implement it in my automation?

Cheers!

There are a number of very good youtube videos from various contributors on the ReFramework. Listed at bottom.

I’ll try to provide a very high level view of what the framework is for, and what it helps you achieve. To answer that last part, consistency must be the biggest reward from the framework. Once you understand it, you’ll actually not want to NOT use it in many cases, because it simply makes so many things so much easiser. Let me break it down, in a rough sequence of events:

  1. The Init section (and related files) makes sure that relevant settings are retrieved (from either the .xlsx file in the Data folder, or from Orchestrator), and that relevant applications are initiated, so they can be used in the rest of the automation.

  2. The Get Transaction Data section (and the files it calls), loads data for processing, one item at a time. This might be a retrieval from a Queue in orchestrator, or any other item from any given source, that needs processing. When an item (called a TransactionItem) is retrieved, it is passed to the Process Transaction step for actual processing.

  3. The Process Transaction section does the actual processing of the item that you sent from Step 2. During processing one of three things can happen:

    a: Success, in which case, Step 2 is called on to retrieve the next item for processing.

    b: System Exception (or Error), in which case Step 1 is called in order to re-initialize settings and applications (in case an application crashed for example), and the item will most likely be retried, depending on settings in the Orchestrator Queue or in the settings (xlsx) file. If an item fails with an error a number of times, it will likely be discarded.

    c: Rule Exception (also known as a Business Rule Exception), in which case the next item is retrieved using Step 2 for processing. What actually happens when an item fails with Rule Exception, is up to you to decide (and handle) inside Step 3.

  4. Once there are no more items to be retrieved in Step 2, control will be passed to the End Process section, which will (more or less) gracefully shut down the applications used.

What is really nice about the framework, is that it logs everything it does very nicely (in addition to the log messages etc. that you add yourself), and just makes things so much easier, once you understand it. Putting in the effort is very much worth it, so please stick with it. It took me quite a few runthroughs, but slowly it dawned on me, and now I use it a lot, and with great ease.

Cheers,
Jeppe

2 Likes

Thanks alot this really helped me out, i’ll definetly watch the whole video!

Cheers! @jjes