I had about 150 forms suspend due to an issue with an updated password that was used in the profile on each form - updated each form and retried them all, all 150 are now 'Completed' status in the monitor..... but, the workflow terminated for each! same issue, need to update the password and republish each workflow, okay, did that.
but now i can not tell how to recover these; most of the forms only used a Workflow Task, so i don't have something saved to the Repository. i know for a fact that it's possible to flip Forms in the Monitor from 'Completed' to 'Suspended', which allows you to retry them, since i've seen Laserfiche staff in these forums talk about it, but none have included instructions.
how can i flip my 'Completed' status Forms in Monitor to be 'Suspended' so i can retry them?
Question
Question
How can i flip my 'Completed' status Forms in Monitor to be 'Suspended' so i can retry them?
Answer
In best practice you should never continue in your business process before a WF call is complete, always wait for the workflow to complete to make sure there is not any errors. This way they will suspend on the workflow task allowing you to retry once resolving the issue. It seems the reason your BPs are in a completed status is because your WF call activity is not waiting for the workflow to complete, it is just calling it and moving on.
I am not aware of any general way to change the status of a BP, it is simply a global status for search purposes.
There is a way to recover and re-run the workflow though. In the workflow designer you can choose the retreive business process variable activity and click the gear icon in it's properties on the right. This will allow you to enter any instance ID that you want to re-run the workflow against. When you manually run the workflow it will run as if though that completed instance just called the workflow again (with all the variables information from whatever it was at the end of the instance).
To re-run on a list of instances, you could invoke the workflow in a for each value loop.
Unfortunately, these BPs were set to not wait until WF completed - moving forward we'll switch to that. Evidently what I was looking for was just a table in the database, you can manually set the status to suspended which lets you retry the entire thing again - we did not end up doing this because we ended up just re-running the workflows per-instance like you had said. Tedious, but it worked.
From what I've read, this is a feature in newer versions of LF - being able to retry even if it completed.
Hi Scott,
In Forms version 11, it is supported to restart completed instance from a user task. Is it applicable to your process design?
- List of Changes for Laserfiche Forms 11 Update 3 - Knowledge Base
- Ability to reopen a completed/terminated instance in the main process. An admin may restart a user task in the main process with all current process variable data if an instance has any issues. Restarting tasks within a sub process is not supported.