Hi,
I upload input data to queue. In REFRamework, I get data from the queue and read each queue item and process it. If the process is stopped in the middle, what is the best way to save the current status and resume from data where it is left off.
You don’t stop and then resume where you left off. You set the queue item to failed. If you want to retry application exceptions then you set a retry on the queue itself.
You could use multiple queues, but that could become a bit messy. I’ve handled it by storing the current status by using “Set Progress” activity.
When you need to “stop” processing an item, per your condition, you could use the “Postpone transaction item” activity to change the queue item’s status to New. When you later get it again from the queue, use transactionItem.Progress to get the status stored in the Progress field. You can then skip the steps thar you have already processed for the item.