Cancel and restart workflow and lifecycle

Former Member
Former Member
I'm having trouble to figure out how to make it possible to cancel a document workflow and then create a new workflow for the document to get the state back to start/working. I've implemented a C# server-side method that will be called when user "click" the cancel workflow button in the Workflow Process form. This method will clear all existing assignments and I've instantiated the workflow process process and then try to use the API method item.apply(startWorkflow) according to: Item itm = this.newItem("Workflow Map", "get"); itm.setAttribute("select", "id"); itm.setProperty("name", "Workflowname); itm = itm.apply(); string wf_id = itm.getID(); Item wf_process = this.instantiateWorkflow(wf_id); return wf_process.apply("startWorkflow");   But I get the error: The workflow you are attempting to use is not one of the Allowed Workflows for this item.
Parents Reply Children
No Data