AnsweredAssumed Answered

advanced Workflow by group

Question asked by juansanchez on Jan 14, 2009
Latest reply on Jan 22, 2009 by lotharm
I have a problem with my advanced flows

to see if you could help me

I am trying to make a script so that every time I move a document from an area is assigned a workflow to a group or a user aprueve but so far I have not been able to achieve

the script is as follows:

var workflow = actions.create ( "start-workflow");
workflow.parameters.workflowName = "jbpm $ wf: parallelgroupreview";
workflow.parameters.requiredApprovePercent = 1;
workflow.parameters [ "bpm: workflowDescription"] = "Please review and approve:" + document.name;
workflow.parameters [ "bpm: groupAssignee"] = people.getGroup (GROUP_TI ");
var futureDate = new Date ();
futureDate.setDate (futureDate.getDate () + 7);
workflow.parameters [ "bpm: workflowDueDate"] = futureDate;
workflow.execute (document);

per each time I run I get the following error:


A system error happened during the operation: Failed to execute script 'workspace: / / SpacesStore/2044f854-d12c-11dd-81e2-2d5967bfabc5': Failed to execute script 'workspace: / / SpacesStore/2044f854-d12c-11dd-81e2-2d5967bfabc5 ': Wrapped java.lang.NullPointerException (AlfrescoScript # 9)

any help you can give me will be well received

Outcomes