As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var result = remote.call("/api/node/" + nodeRef.replace(":/", "") + "/workflow-instances");
/** * Gets the Workflows that act upon the specified Repository content. * * @param packageItem the repository content item to get workflows for * @param active true => active workflows only, false => completed workflows only * @return list of workflows which act upon the specified content */ @Auditable(parameters = {"packageItem", "active"}) public List<WorkflowInstance> getWorkflowsForContent(NodeRef packageItem, boolean active);