cancel
Showing results for 
Search instead for 
Did you mean: 

how to run advanced workflow automatically???

tejaswini
Champ in-the-making
Champ in-the-making
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 ?
1 REPLY 1

paulclinton
Confirmed Champ
Confirmed Champ

Hey, Were you able to solve this ? If yes, please share the answer.