AnsweredAssumed Answered

Creating a new advanced workflow in java [SOLVED]

Question asked by jimcornmell on Nov 15, 2007
Latest reply on May 14, 2008 by awkhan
Hi All,

Does anyone know how to create an advance workflow in Java?  I've used the JavaScript example from the wiki:
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:my_workflow";
workflow.parameters["bpm:workflowDescription"] = document.name;
workflow.parameters["bpm:assignee"] = person;
workflow.execute(document);
But I need to add many documents to the workflow task automatically, so I need to do this in Java (facility is not available in JavaScript API, see my post a few days ago http://forums.alfresco.com/viewtopic.php?t=9584).  But I'm completely stuck.  I've tried the above JavaScript and then running the SDK TaggingSample Java example, but this does nothing once the workflow is started.  i.e. I can run either action but not both.  Hence I think I need the one Java action to:

- Create the workflow.
- Add lots of documents to it.

Thanks in advance.

Jim

Outcomes