cancel
Showing results for 
Search instead for 
Did you mean: 

Assign workflow and start it programatically

sk90_
Champ in-the-making
Champ in-the-making

Hi,

Is it possible to assign/start a workflow programatically on a document (using Java)?

1 REPLY 1

Florent_Guillau
World-Class Innovator
World-Class Innovator

Yes, through the DocumentRoutingService:

    DocumentRoutingService service = Framework.getLocalService(DocumentRoutingService.class);
    service.createNewInstance(modelId, Collections.singletonList(docId), coreSession, true);
Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.