How to end the process once the Transaction item will complete

Dear Team,

I’m utilising three bots to upload 137 transaction items every day to the queue using a multiple bot method.

What I need is for the process to be stopped in end process state once all the items have been processed.

Are you using ReFramework? The process should stop automatically, when there are no more items in the queue. Could you describe the problem in more detail, if that’s not the case?

@efelantti
In my case i have one more additional state called load Transaction State.

I have tried the scenario for 10 transaction item once this transaction item are processed in process transaction then the bot will got to get transaction item to check next transaction item in queue.

If no transaction is available then it will go to load transaction item to upload the next item to the queue.

Please use this image for reference.

@Shivam_Rana
In the REFramework, stopping the process when there are no queue items present is handled by the framework itself. The framework uses the Get Transaction Data state to retrieve transaction items from the queue, and if there are no more items available, it returns a “No New Transaction” status.

Here’s how the process flow works in the REFramework when there are no queue items:

  1. In the Get Transaction Data state, the framework uses the Get Transaction Item activity to retrieve a transaction item from the queue.
  2. If a transaction item is successfully retrieved, the process transitions to the Process Transaction state to process the item.
  3. After processing the item, the process transitions back to the Get Transaction Data state to retrieve the next item.
  4. If there are no more items in the queue, the Get Transaction Item activity returns a “No New Transaction” status.
  5. In the Main workflow, a Flow Decision activity checks for this “No New Transaction” status.
  6. If the condition is true (i.e., there are no more items), the process transitions to the End Process state to stop the execution.
  7. In the End Process state, you can perform any necessary cleanup activities and set the final status of the process.

If you are using custom code then you need to put condition after get transaction item activity to check its status is “No New Transaction” if present then end the process

Will “Load Transaction Data” produce new data every time when invoked, or what’s the logic?

Why have you added a new state? Is it not possible to use the traditional “Dispatcher”/“Performer” pattern?

No load transaction will upload all the 137 transaction item to the queue in one go.

Its a pre defined template from business side and i am using load transaction item as dispatcher.

If you’re allowed to make changes to the template, it might make sense to move “Load Transaction Data” before “Get Transaction Data” state. Then you could move the “No Data” transition from “Get Transaction Data” to “End Process” like it is in regular ReFramework.

not in REF

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.