Step Back Workflow Programmatically
How would you go about programmatically stepping a workflow back? I've used the WorkflowSession.complete(WorkItem, Route) like so -
List<Route> backRoutes = session.getBackRoutes(item); Route rte = backRoutes.get(0); session.complete(item, rte);
However, this code seems to split the workflow into 2 workitems while stepping back so that in my inbox i have the next step and the previous step.
If there's no way to avoid having the two steps, is it possible to delete/remove the unwanted WorkItem?