AnsweredAssumed Answered

Scripting a start-workflow

Question asked by blackout on Jan 3, 2007
Latest reply on Jan 19, 2007 by davidc

I'm posting to know if there's a way to browse the users (and not only those) with the API in order to start a workflow through a script.
To be more clear, let's take a look at the example code found in the wiki:
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:review";
workflow.parameters["bpm:workflowDescription"] =;
workflow.parameters["bpm:assignee"] = person;
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 7);
workflow.parameters["bpm:workflowDueDate"] = futureDate;
What I'd like to do is to change the line
workflow.parameters["bpm:assignee"] = person;
so that I can reassign the review step to another user (or group of users) automatically.

If I understand correctly, it is possible with the Enterprise edition with the API "Node getPerson(string username)"; is there anything similar in the standart edition?

Thanks in advance for your help!