Package com.priint.pubserverapi.workflow
Interface ProcessRunHistoryQuery
- All Superinterfaces:
PaginatedQueryBuilder<ProcessRunServiceLocal.ProcessRun>
public interface ProcessRunHistoryQuery
extends PaginatedQueryBuilder<ProcessRunServiceLocal.ProcessRun>
Builds a process run history query for the authenticated project session
bound to the current thread.
var service = PlannerEngineServiceLocator.INSTANCE.getRunHistoryServiceLocal();
var query = service.createRunHistoryQuery()
.object(new ObjectReference(ObjectType.PUBLICATION, publicationId))
.processDefinitionKey("renderPublication")
.failedOnly(true)
.limit(10);
var firstPage = query.page();
List<ProcessRun> runs = firstPage.items();
if (firstPage.nextCursor() != null) {
var nextPage = query.cursor(firstPage.nextCursor()).page();
}
Reuse the same filters when passing a continuation cursor. Check the page outcome to distinguish a complete page from an incomplete read.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfailedOnly(Boolean failedOnly) objectType(ProcessRunServiceLocal.ObjectType objectType) Filters by the workflow's original object type in Camunda.Filters by an exact process instance ID; existing session and object visibility checks still apply.Methods inherited from interface com.priint.pubserverapi.query.PaginatedQueryBuilder
page
-
Method Details
-
object
-
objectType
Filters by the workflow's original object type in Camunda. -
processDefinitionKey
-
processInstanceId
Filters by an exact process instance ID; existing session and object visibility checks still apply. -
failedOnly
-
since
-
limit
-
cursor
-