import { BpmnType, EventType } from '../../ProcessModel/index'; import { FlowNodeInstanceState } from './FlowNodeInstance'; type FlowNodeInstanceBaseQuery = { flowNodeId?: Array | string; flowNodeName?: Array | string; flowNodeLane?: Array | string; flowNodeInstanceId?: Array | string; previousFlowNodeInstanceId?: Array | string; processDefinitionId?: Array | string; processModelId?: Array | string; embeddedProcessModelId?: Array | string; processModelName?: Array | string; processInstanceId?: Array | string; correlationId?: Array | string; parentProcessInstanceId?: Array | string; state?: Array | FlowNodeInstanceState; ownerId?: Array | string; triggeredByFlowNodeInstance?: Array | string; }; /** * Query for retrieving all types of Flow Node Instances. */ export type GenericFlowNodeInstanceQuery = FlowNodeInstanceBaseQuery & { /** * By default, this will include UntypedTasks, ManualTasks and UserTasks. */ flowNodeType?: Array | BpmnType; /** * By default, this will include all types of events. */ eventType?: Array | EventType; }; /** * Query for retrieving UntypedTasks. */ export type UntypedTaskQuery = FlowNodeInstanceBaseQuery & {}; /** * Query for retrieving Events. */ export type EventQuery = FlowNodeInstanceBaseQuery & { /** * By default, this will include all types of events. */ eventType?: Array | EventType; }; /** * Query for retrieving ManualTasks. */ export type ManualTaskQuery = FlowNodeInstanceBaseQuery & {}; /** * Query for retrieving UserTasks. */ export type UserTaskQuery = FlowNodeInstanceBaseQuery & {}; export {};