cancel
Showing results for 
Search instead for 
Did you mean: 

Field workflowDueDate mandatory

baldus
Champ in-the-making
Champ in-the-making
Hi

Is possible to put the field workflowDueDate as mandatory with today date (or a future date) in a workflow?

Thanks for the help.
1 REPLY 1

rptapas
Champ in-the-making
Champ in-the-making
Hi,
      Yes it is possible.use the following code to create workflow using alfresco script.
       
function startWorkflow(){
        var workflow = actions.create("start-workflow");
   workflow.parameters.workflowName = workflowName;
   workflow.parameters["bpm:workflowDescription"] = "Critical event:"+document.name;
   workflow.parameters["bpm:groupAssignee"] = groupName;
        var dueDate = new Date();
   //dueDate.setDate(dueDate.getDate()+1);
   
        workflow.parameters["bpm:workflowDueDate"]  = dueDate;
       workflow.parameters["bpm:workflowPriority"] = 3;
        workflow.execute(document);
}
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.