Creating a new workflow
"Travelli Stefano" <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.devel |
|---|---|
| Message-ID | <[email protected]> |
Hallo,
documentation page at http://wiki.opensymphony.com/space/OSWorkflow+Creating+a+new+workflow
is actually not correct:
Workflow wf = new BasicWorkflow(username);
HashMap inputs = new HashMap();
inputs.put("docTitle", request.getParameter("title"));
long id = wf.createEntry("workflowName");
wf.initialize(id, 1, inputs);
it should be:
Workflow wf = new BasicWorkflow(username);
HashMap inputs = new HashMap();
inputs.put("docTitle", request.getParameter("title"));
long id = wf.initialize("workflowName", 1, inputs);
May be it refers to former API.
stefano
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php