cancel
Showing results for 
Search instead for 
Did you mean: 

How I can execute a simple workflow?

jariel06
Champ in-the-making
Champ in-the-making
Hi, I need some help, I am trying to execute a simple workflow with the PHP API, I am using the function executeActions which are located on the Action web service, but it does not work, someone knows how to do, or has knowledge of the subject, please to share with the community.

thanks in advance…
1 REPLY 1

harris
Champ in-the-making
Champ in-the-making
I think you have to use Api JavaScript samples.
  var workflow = actions.create("start-workflow");
  workflow.parameters.workflowName = "jbpm$wf:reviewpooled";
  workflow.parameters["bpm:workflowDescription"] = document.name;
  workflow.parameters["bpm:groupAssignee"] = people.getGroup("GROUP_myGroup");
  var futureDate = new Date();
  futureDate.setDate(futureDate.getDate() + 7);
  workflow.parameters["bpm:workflowDueDate"] = futureDate;
  workflow.execute(document);