A new requirement came up that an item of a certain template should be automatically approved and a different email should be sent out IF the item has previous versions that have been approved in the past.
I have a custom Workflow Action under the Draft Workflow State that does this logic and when appropriate places the item into an AutoApproved Workflow State and the actions under this state will send an email and then place the item into the Approved State.
The problem is the code works but after the path is done of sending the email and setting it to the Approved State, the rest of the Actions under the Draft Workflow State still continue, meaning an email is sent to the appropriate approvers and the item is then put into Awaiting Approval State. Making the auto approve steps moot.
Is there a way to abort the current workflow path and put an item on a different workflow path? Right now it seems I can only send the item on a different workflow path but when it is done with it's journey it picks back up on the original workflow path.