@camunda8/orchestration-cluster-api
    Preparing search index...

    Type Alias CreateProcessInstanceData

    type CreateProcessInstanceData = {
        body:
            | {
                awaitCompletion?: boolean;
                fetchVariables?: string[];
                operationReference?: OperationReference;
                processDefinitionId: ProcessDefinitionId;
                processDefinitionVersion?: number;
                requestTimeout?: number;
                runtimeInstructions?: { afterElementId: ElementId; type?: string }[];
                startInstructions?: { elementId: ElementId }[];
                tags?: TagSet;
                tenantId?: TenantId;
                variables?: { [key: string]: unknown };
            }
            | {
                awaitCompletion?: boolean;
                fetchVariables?: string[];
                operationReference?: OperationReference;
                processDefinitionKey: ProcessDefinitionKey;
                requestTimeout?: number;
                runtimeInstructions?: { afterElementId: ElementId; type?: string }[];
                startInstructions?: { elementId: ElementId }[];
                tags?: TagSet;
                tenantId?: TenantId;
                variables?: { [key: string]: unknown };
            };
        path?: never;
        query?: never;
        url: "/process-instances";
    }
    Index

    Properties

    Properties

    body:
        | {
            awaitCompletion?: boolean;
            fetchVariables?: string[];
            operationReference?: OperationReference;
            processDefinitionId: ProcessDefinitionId;
            processDefinitionVersion?: number;
            requestTimeout?: number;
            runtimeInstructions?: { afterElementId: ElementId; type?: string }[];
            startInstructions?: { elementId: ElementId }[];
            tags?: TagSet;
            tenantId?: TenantId;
            variables?: { [key: string]: unknown };
        }
        | {
            awaitCompletion?: boolean;
            fetchVariables?: string[];
            operationReference?: OperationReference;
            processDefinitionKey: ProcessDefinitionKey;
            requestTimeout?: number;
            runtimeInstructions?: { afterElementId: ElementId; type?: string }[];
            startInstructions?: { elementId: ElementId }[];
            tags?: TagSet;
            tenantId?: TenantId;
            variables?: { [key: string]: unknown };
        }

    Instructions for creating a process instance. The process definition can be specified either by id or by key.

    Type Declaration

    • {
          awaitCompletion?: boolean;
          fetchVariables?: string[];
          operationReference?: OperationReference;
          processDefinitionId: ProcessDefinitionId;
          processDefinitionVersion?: number;
          requestTimeout?: number;
          runtimeInstructions?: { afterElementId: ElementId; type?: string }[];
          startInstructions?: { elementId: ElementId }[];
          tags?: TagSet;
          tenantId?: TenantId;
          variables?: { [key: string]: unknown };
      }
      • OptionalawaitCompletion?: boolean

        Wait for the process instance to complete. If the process instance completion does not occur within the requestTimeout, the request will be closed. This can lead to a 504 response status. Disabled by default.

      • OptionalfetchVariables?: string[]

        List of variables by name to be included in the response when awaitCompletion is set to true. If empty, all visible variables in the root scope will be returned.

      • OptionaloperationReference?: OperationReference
      • processDefinitionId: ProcessDefinitionId

        The BPMN process id of the process definition to start an instance of.

      • OptionalprocessDefinitionVersion?: number

        The version of the process. By default, the latest version of the process is used.

      • OptionalrequestTimeout?: number

        Timeout (in ms) the request waits for the process to complete. By default or when set to 0, the generic request timeout configured in the cluster is applied.

      • OptionalruntimeInstructions?: { afterElementId: ElementId; type?: string }[]

        Runtime instructions (alpha). List of instructions that affect the runtime behavior of the process instance. Refer to specific instruction types for more details.

        This parameter is an alpha feature and may be subject to change in future releases.

      • OptionalstartInstructions?: { elementId: ElementId }[]

        List of start instructions. By default, the process instance will start at the start event. If provided, the process instance will apply start instructions after it has been created.

      • Optionaltags?: TagSet
      • OptionaltenantId?: TenantId

        The tenant id of the process definition.

      • Optionalvariables?: { [key: string]: unknown }

        JSON object that will instantiate the variables for the root variable scope of the process instance.

    • {
          awaitCompletion?: boolean;
          fetchVariables?: string[];
          operationReference?: OperationReference;
          processDefinitionKey: ProcessDefinitionKey;
          requestTimeout?: number;
          runtimeInstructions?: { afterElementId: ElementId; type?: string }[];
          startInstructions?: { elementId: ElementId }[];
          tags?: TagSet;
          tenantId?: TenantId;
          variables?: { [key: string]: unknown };
      }
      • OptionalawaitCompletion?: boolean

        Wait for the process instance to complete. If the process instance completion does not occur within the requestTimeout, the request will be closed. This can lead to a 504 response status. Disabled by default.

      • OptionalfetchVariables?: string[]

        List of variables by name to be included in the response when awaitCompletion is set to true. If empty, all visible variables in the root scope will be returned.

      • OptionaloperationReference?: OperationReference
      • processDefinitionKey: ProcessDefinitionKey

        The unique key identifying the process definition, for example, returned for a process in the deploy resources endpoint.

      • OptionalrequestTimeout?: number

        Timeout (in ms) the request waits for the process to complete. By default or when set to 0, the generic request timeout configured in the cluster is applied.

      • OptionalruntimeInstructions?: { afterElementId: ElementId; type?: string }[]

        Runtime instructions (alpha). List of instructions that affect the runtime behavior of the process instance. Refer to specific instruction types for more details.

        This parameter is an alpha feature and may be subject to change in future releases.

      • OptionalstartInstructions?: { elementId: ElementId }[]

        List of start instructions. By default, the process instance will start at the start event. If provided, the process instance will apply start instructions after it has been created.

      • Optionaltags?: TagSet
      • OptionaltenantId?: TenantId

        The tenant id of the process definition.

      • Optionalvariables?: { [key: string]: unknown }

        JSON object that will instantiate the variables for the root variable scope of the process instance.

    path?: never
    query?: never
    url: "/process-instances"