AnsweredAssumed Answered

startWorkflow(workflowPackage, properties?)

Question asked by jamesc5 on May 27, 2008
Latest reply on May 28, 2008 by jamesc5

I've got 2.9B installed on windows server 2003. I'm trying to figure out the Workflow Javascript API. The wiki ( says JscriptWorkflowDefinition has a method

startWorkflow(workflowPackage, properties)

What is properties, the second argument? Also, what does this method return? I'm assuming it's a workflowInstance. This is what I've got so far. Which doesn't work (throws a null pointer exception).

var pack = workflow.createPackage();
var workflowInstance = workflow.latestDefinitions[1].startWorkflow(pack, null);