Hi Dkahraman
Please try using the below method
string workflowName = "Express DCO-II";
Item workflowMap = this.newItem("Workflow Map", "get");
workflowMap.setAttribute("select", "id");
workflowMap.setProperty("name", workflowName);
Item result = workflowMap.apply();
string mapId = result.getProperty("id");
Item workflowProcess = this.instantiateWorkflow(mapId);
workflowProcess.apply("startWorkflow");
return this;
I have a package uploaded here. You can import it using import tool.
[View:/cfs-file/__key/communityserver-discussions-components-files/10/DynamicWF_5F00_DCO.zip:68:89]
Once import is done, re-login to application, create DCO, select DCO type in drop down that will assign workflow dynamically.
Thank You
GK