Trying to add queues to orchestrator from excel and successfully added(ex 5 queues),
But if there is any system exception is occurred and it go to system exception and initializing all the applications and add the Queue again(now total queue is 10).
please kindly let me know which condition or which action should i need to change In REFW and Inti state.
Modify the “Get Transaction Data” state: Inside the “Get Transaction Data” state of the REFramework, add a check to determine if the queues have already been added. You can use a boolean flag to keep track of whether the queues have been added or not. Here’s an example of how you can implement this:
Create a boolean variable called isQueuesAdded with an initial value of False.
Add a decision point after the “Get Transaction Data” activity.
In the decision point, check the value of isQueuesAdded.
If isQueuesAdded is True, transition to the “Process” state.
If isQueuesAdded is False, proceed with adding the queues and transition to the “Process” state.
After adding the queues, set isQueuesAdded to True.By adding this check, you can ensure that queues are only added once, even if there is a system exception and the Init state is re-initialized.
Handle system exceptions in the “System Exception” state: Inside the “System Exception” state of the REFramework, you need to handle the system exception and prevent re-adding queues in case of a re-initialization. To do this:
Remove the activities related to adding queues from the “System Exception” state, such as the “Add Queue Items” activity.
Add any necessary error handling and exception logging activities to properly handle the system exception.
Transition to the appropriate state based on your business logic, such as the “End Process” state or a custom state for further analysis or recovery.
Please do the adding of queue items in the if first run condition on then side in the initialization state…so that the if condition runs only for the first time and subsequently even if there is a system exception it would not come to that side
Add after this initallsettings.xaml at the bottom after reading all queue and all…