AnsweredAssumed Answered

Start workflow without document

Question asked by buurd on Jan 27, 2010
Latest reply on Apr 20, 2011 by younis15

I start a workflow reading some properties from a http-request. But the workflow seems to require a document when i start it. Is there a way of starting the workflow without the document. There are no reason for my workflow to carry a document, it will only confuse my users. Now I use a hardcoded document but it feels like a really ugly solution.

var document = search.findNode("workspace://SpacesStore/ad5dff9b-e902-40a5-9dd5-052cffda348e");
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$jkptkwf:Demolition";
workflow.parameters["bpm:assignee"] = person;
workflow.parameters["jkptkwf:buildingName"] = "Webscripthuset";
workflow.parameters["bpm:workflowDescription"] = "Testar att start ett workflow via webscript";

Is there a way to start the workflow without the document?

Thanks in advance