import { EndEventViewModel, FlowNodeViewModel, Model, StartEventViewModel } from '../ProcessModel/index'; /** * @swagger * components: * schemas: * ProcessDefinition: * description: A ProcessDefinition. * type: object * required: * - processDefinitionId * - hash * - processModels * - deployedAt * - deployedByUserId * properties: * processDefinitionId: * description: The ID of the ProcessDefinition. * type: string * xml: * description: The XML of the ProcessDefinition. * type: string * hash: * description: The hash of the ProcessDefinition. * type: string * processModels: * description: The ProcessModels contained in the ProcessDefinition. * type: array * items: * $ref: '#/components/schemas/ProcessModel' * deployedAt: * description: The date when the ProcessDefinition was deployed. * type: string * deployedByUserId: * description: The ID of the user who deployed the ProcessDefinition. * type: string */ export declare type ProcessDefinition = { processDefinitionId: string; xml?: string; hash: string; processModels: Array; deployedAt: Date; deployedByUserId: string; }; /** * @swagger * components: * schemas: * ProcessModel: * description: A ProcessModel. * type: object * required: * - processDefinitionId * - processModelId * - isExecutable * - startEvents * - endEvents * - flowNodes * properties: * processDefinitionId: * description: The ID of the ProcessDefinition that contains the ProcessModel. * type: string * processModelId: * description: The ID of the ProcessModel. * type: string * processModelName: * description: The name of the ProcessModel. * type: string * version: * description: The version of the ProcessModel. * type: string * isExecutable: * description: A flag indicating whether the ProcessModel can be started. * type: boolean * isSingleton: * description: A flag indicating whether the ProcessModel can only be run once at a time. * type: boolean * startEvents: * description: The StartEvents contained in the ProcessModel. * type: array * items: * $ref: '#/components/schemas/StartEventViewModel' * endEvents: * description: The EndEvents contained in the ProcessModel. * type: array * items: * $ref: '#/components/schemas/EndEventViewModel' * flowNodes: * description: The FlowNodes contained in the ProcessModel. * type: array * items: * $ref: '#/components/schemas/FlowNodeViewModel' */ export declare type ProcessModel = { processDefinitionId: string; processModelId: string; processModelName?: string; version?: string; customProperties?: Record; isExecutable: boolean; isSingleton: boolean; laneSet?: Model.ProcessElements.LaneSet; startEvents: Array; endEvents: Array; flowNodes: Array; }; /** * @swagger * components: * schemas: * ProcessDefinitionList: * description: A list of ProcessDefinitions. * type: object * required: * - processDefinitions * - totalCount * properties: * processDefinitions: * description: The ProcessDefinitions. * type: array * items: * $ref: '#/components/schemas/ProcessDefinition' * totalCount: * description: The total number of ProcessDefinitions. * type: number */ export declare type ProcessDefinitionList = { processDefinitions: Array; totalCount: number; }; /** * @swagger * components: * schemas: * ProcessModelList: * description: A list of ProcessModels. * type: object * required: * - processModels * - totalCount * properties: * processModels: * description: The ProcessModels. * type: array * items: * $ref: '#/components/schemas/ProcessModel' * totalCount: * description: The total number of ProcessModels. * type: number */ export declare type ProcessModelList = { processModels: Array; totalCount: number; }; /** * @swagger * components: * schemas: * PersistProcessDefinitionsPayload: * description: The payload for persisting process definitions. * type: object * required: * - xml * properties: * xml: * description: The xml of the process definition(s) to persist. * oneOf: * - type: string * - type: array * items: * type: string * example: string | string[] * overwriteExisting: * description: A flag indicating whether existing process definitions should be overwritten. * type: boolean */ export declare type PersistProcessDefinitionsPayload = { xml: string | Array; overwriteExisting?: boolean; };