cancel
Showing results for 
Search instead for 
Did you mean: 

Start workflow without document

buurd
Champ in-the-making
Champ in-the-making
Hi!

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";
workflow.execute(document);

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

Thanks in advance
Roland
3 REPLIES 3

eruditionist
Champ in-the-making
Champ in-the-making
What's the use case? Why do you need to kick off a workflow when its not needed.

buurd
Champ in-the-making
Champ in-the-making
The workflow is needed, but not the document.

The usecase is a basic checklist where we only use the workflow(model) and web-custom-config. We use a webscript to generate a report about the workflow-status. We don't store a separate document and don't need to attach a document when starting the workflow.

Thanks in advance
Roland

younis15
Champ in-the-making
Champ in-the-making
Hello Roland,

have you managed to find a solution?


Thanks ….
Younis