AnsweredAssumed Answered

How to Assign a workflow to the Logged-In User

Question asked by nobel on Feb 10, 2010
Latest reply on Feb 12, 2010 by adnangul
Hi everyone,

    I am extending the workflow. As a user login to the system, I want to assign a workflow to the logged-in user.

I mean to say that user gets login to the system. He found a link/button on the Homepage. When he clicks the link, that has to open a workflow to him to enter some property details.

When i search regarding this in the forum, i got some following key information:

var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:review";
workflow.parameters["bpm:workflowDescription"] = "A new content has been added in Draft.";
workflow.parameters["bpm:assignee"] = people.getPerson("linton");

But, i don't know, where to use this script [in which file to write this script and how to call the script]. Plz guide me.

Thanking u.