Assign workflow and start it programatically

Hi,

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

0 votes

1 answers

1492 views

ANSWER



Yes, through the DocumentRoutingService:

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