Reason: Exception message: An extension of type ‘UiPath.Activities.Contracts.Persistence.IPersistenceBookmarks’ must be configured in order to run this workflow. at source: Performer - Invoke Workflow File (Framework\Performer.xaml).
I moved my Wait for Form Task and Resume activity from Process.xaml (Performer) to the Process State of Main.xaml. I’m now getting the following error: The value for argument ‘taskInput’ is not set or is invalid.
The below is about my flow design
I’m, implementing a Dispatcher-Performer pattern using REFrame work. Both flows are implemented in separate ReFrame work .The Dispatcher is working perfectly and uploading data to the Orchestrator Queue. But, the Performer project is failing.
I already enabled the Support Persistence option
My Questions:
Is this “Split-Workflow” approach inside the REFramework Process State the standard way to handle persistence?
Are there better “out-of-the-box” templates for REFramework + Persistence that I should be using instead?
Has anyone seen the taskInput error specifically when passing the Task Object between invoked workflows in Main?
Any guidance on the correct “Architecture” for this would be greatly appreciated!
So the Reframework is not a smart architecture for use with persistence such as tasks, however, some new features have allowed some more options.
Firstly, the persistence bookmarks error. This limitation is now removed in later versions of UiPath studio, and you can persist on any workflow, so updating would solve that.
As for the specific error, I assume you are persisting on a task, which you are waiting for?
Does that task have an argument called ‘taskInput’? If so what is it?
I’d also get some stronger error handling so we can see the full error including any inner exceptions, rather than just the message, its useful to know if the error happens when the task is created or when the task is completed.
As for better design patterns. When you need to persist, then follow an Orchestration design pattern and handle it via the Orchestration process. UiPath has a long running workflow canvas for this reason, however there arent many good resources on how to get started. Its the same concept as Maestro however.
Thank you for the suggestions.
I’m a beginner in this. As part of learning, I chose REFramework. Can I continue my flow logic with REFramework? Are there any limitations?
For example, the REFramework is set up to work transactionally, meaning you have a queue of items you iterate over.
Lets say the first item you work on has this task for a human, the process picks it up, starts work, suspends and then the process is stopped.
The next item in the queue is not picked up and your processing of items will halt until the queue trigger fires again or the task is completed. If this takes several hours you’ll be slowly waiting.
You say you chose REFramework, and yes ok, that is one type of framework. Suited for transactional processing. Not long running tasks. There is a long running workflow template.
Hey @Jon_Smith, thanks for your time. I understood the concept you explained. But for my learning, I have already built it using REFramework. To complete this using REFramework, do I need to implement any logical changes to resolve the error and complete the process.
Respectfully, I don’t want to pursue advising on how to complete this in a framework I don’t think is fit for the purpose.
For your learning, you should stop, and rebuild in a more appropriate architecture. Its not good for me to teach you how to work around this issues with buggy or unstable workarounds.
Thank you for your honest feedback and for sharing your perspective. I will definitely keep your suggestion in mind, and I appreciate you taking the time to point that out.
RE Framework is not appropriate for persistence automations. Persistence automations generally should not loop. They should be top down processes that handle one item, create the task, then wait for the task to be completed. Once it’s completed then you do the rest of the steps and the job ends.
I disagree with this. They are perfectly fine to loop, but its far more normal to have that loop be in parallel and non synchronous. Its a classic Orchestration pattern, they should overall handle one task end to end, but can have a thing called ‘fan out’ and ‘fan in’ where during certain steps loops are used to break down the work into smaller pieces.
What I will agree on is they shouldnt persist in a transactional model, when waiting for another item that is not contingent on the current one.