Hello there fellow developers,
This question for those with knowledge of the REF framework as its a logical problem.
I am stuck on a issue on my automation which might possibly be a flaw of the RE Framework.
I am processing items on my queue with the RE Framework and after processing them I want to group them based on a field, suppose “type”, meaning creating an excel file for each type containing all the users of that type
The issue is that I dont want to do this at the end of the job because the job might be running for hours and there is extra work to do manually and that would be inconvenient for the person doing this.
I know that the items of the same type come one after another because I upload them in that order and i want when the type changes the process to create a report with that type name, fill it with these items, send it via email and continue with the others.
I thought this was easy with the logic: at the end of the proccess file of the framework save the last items type, and when the type changes write the datatable, sent it via email and clear it.
The problem stands that the state machines REF user clears the variables once you get out of the state and so I cant keep track of the last item type inside a state. Passing the LastItemState and the datatable containing the items processed so far wouldn’t resolve the issue as the REF transits between multiple states and the data gets lost.
One other solution I thought is saving the variables I need locally or in orchestrator and assigning them when entering a state but I find this as heavy work and not very elegant.
Any fellow REF lover out there who has an idea on this problem?