To achieve this, you need to do something like this:
- Create Workflow (with start + review + end activities)
- Assign it to Part ItemType (don't mark as default)
- Create new method (c#) with following code:
Item itm = this.newItem("Workflow Map", "get");
itm.setAttribute("select", "id");
itm.setProperty("name", "{YOUR_WORKFLOW_NAME}");
itm = itm.apply();
string wf_id = itm.getID();
Item wf_process = this.instantiateWorkflow(wf_id);
return wf_process.apply("startWorkflow");
- Create new action (server side, with item context) and set your method for this action
- Assign you action to Part ItemType
`