startWorkflow(workflowPackage, properties?)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2008 03:17 PM
Hi,
I've got 2.9B installed on windows server 2003. I'm trying to figure out the Workflow Javascript API. The wiki (http://wiki.alfresco.com/wiki/Workflow_JavaScript_API) says JscriptWorkflowDefinition has a method
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).
I've got 2.9B installed on windows server 2003. I'm trying to figure out the Workflow Javascript API. The wiki (http://wiki.alfresco.com/wiki/Workflow_JavaScript_API) 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);
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2008 08:31 PM
After banging around a bit I've found this post:
http://forums.alfresco.com/viewtopic.php?f=12&t=10583
In the java code I see that params is
Question: Is there a way to access the QName constants from WorkflowModel in javascript? If not, what is the correct way to construct the params to start a workflow from javascript?
http://forums.alfresco.com/viewtopic.php?f=12&t=10583
In the java code I see that params is
Map<QName, Serializable>
Question: Is there a way to access the QName constants from WorkflowModel in javascript? If not, what is the correct way to construct the params to start a workflow from javascript?
