I would like to push a specific SPListItem to the final step in a State workflow, skipping all the intermediate steps (if a certain checkbox is checked).
Currently, I have an event receiver hooked up to a Task List to intercept when a user tries to push the item to the next step in the workflow. The goal is, if the user checked a special box in that item, I want to push it to the final step of the workflow, if the box isn't checked, I want to let it continue on its way through the workflow.
I didn't create this workflow nor do I have access to its source code. I am looking for a way to "patch it", or to circumvent its current functionality by making the item skip to the final step.
Any suggestions?