cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Workflow on spaves and not only content

miggy4340
Champ in-the-making
Champ in-the-making
Hello,

Is there any reasons to limit Advanced workflow in the UI to document.

I would be usefull for us to have adhoc task for folder.

After looking at the api, and the working of workflow packages it seems that nothing prevent this.

I modified the "start workflow with rules" example of the wiki to start the workflow on the parent of the document

var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:adhoc";
workflow.parameters["bpm:workflowDescription"] = "ad hoc task on "  + document.name;
workflow.parameters["bpm:assignee"] = people.getPerson("admin");
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 7);
workflow.parameters["bpm:workflowDueDate"] = futureDate;
workflow.execute(document.parent);

It doens't show up it the ui but if you use the node browser, the parent folder is containend in the workflow package. (the space in contained in 2 container, the parent space and the workflow package).

The <nodeWorkflowInfo>  doesn't seem to look for advanced worflow for spaces either.
There seems to be some code for this but there is a if (isContent) around it that makes it useless for spaces.

I this limitation just because it was not required at the time or will there be any tricky problem to do this.

Is there plan to add this in 2.1 or further versions.


Regards

Bertrand
1 REPLY 1

gavinc
Champ in-the-making
Champ in-the-making
You're right there isn't a technical reason why advanced workflow can't work with spaces. It was a time/people resource issue that this support was not added.

Support is not going to be in the 2.1 release but will more than liely be in a future release.