AnsweredAssumed Answered

how to run advanced workflow automatically???

Question asked by tejaswini on Mar 25, 2010
Latest reply on Sep 10, 2018 by paulclinton
i am having a dynamic advanced workflow model now instead of starting manually i want to start that whn a document is inbound to the space. i read that it can be done by script running on inbound of the content so
1) i wrote the script as

var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$global:documentReview";
workflow.parameters["bpm:workflowDescription"] = document.name;
workflow.parameters["bpm:assignee"] = person;
workflow.parameters["bpm:aproveDestination"] = "GlobalPlacement/Nurse"
workflow.execute(document);
and in eclipse i store that under src\scripts

2) in data dictionary under  scripts
   whn i try to run this script on run action i get null pointer exception in workspace//…..
 
is there anybody who will tell how to do this ?

Outcomes