Assign workflow and start it programatically
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2013 06:37 PM
Hi,
Is it possible to assign/start a workflow programatically on a document (using Java)?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2013 10:31 AM
Yes, through the DocumentRoutingService
:
DocumentRoutingService service = Framework.getLocalService(DocumentRoutingService.class);
service.createNewInstance(modelId, Collections.singletonList(docId), coreSession, true);
