Hi. We hava a process that is listening an event. When the event occurs the process receive a JSON with information that we need to update in differents nodes. Until now we have been using
@katmandu25
You can programmatically obtain the DocumentWorkflow on related node and use that workflow instance to reject the request
It may look like below
final WorkflowManager workflowManager = ((HippoWorkspace) session.getWorkspace()).getWorkflowManager();
final DocumentWorkflow documentWorkflow =
(DocumentWorkflow) workflowManager.getWorkflow("default", session.getNode(jcrNode);
documentWorkflow.cancelRequest(jcrNode);