Maximo API Client - v0.9.01
    Preparing search index...

    Class BulkOperationBuilder<T>

    Builder class for creating bulk operations Allows for fluent building of bulk requests with multiple operations

    Type Parameters

    • T extends OslcResource

      The resource type that extends OslcResource

    Index

    Methods

    • Gets the object structure for this builder

      Returns string

    • Sets whether the operation should be all-or-nothing When true, if any operation fails, all operations are rolled back

      Parameters

      • value: boolean

        Whether to use all-or-nothing mode

      Returns BulkOperationBuilder<T>

      This builder instance for chaining

    • Gets whether all-or-nothing mode is enabled

      Returns boolean

    • Depreciated Use addChange instead Adds a create operation to the bulk request

      Parameters

      • data: Partial<T>

        The data for the new resource

      Returns BulkOperationBuilder<T>

      This builder instance for chaining

    • Adds an update operation to the bulk request

      Parameters

      • href: string

        The resourceId of the resource to update (not full href)

      • data: Partial<T>

        The data to update

      Returns BulkOperationBuilder<T>

      This builder instance for chaining

    • Adds a delete operation to the bulk request

      Parameters

      • href: string

        The resourceId of the resource to delete (not full href)

      Returns BulkOperationBuilder<T>

      This builder instance for chaining

    • Adds a merge operation to the bulk request (for updating child objects)

      Parameters

      • href: string

        The resourceId of the resource to merge (not full href)

      • data: Partial<T>

        The data to merge

      Returns BulkOperationBuilder<T>

      This builder instance for chaining

    • Adds an action operation to the bulk request (for invoking object methods)

      Parameters

      • href: string

        The href of the resource

      • data: Partial<T>

        The data for the action

      Returns BulkOperationBuilder<T>

      This builder instance for chaining

    • Adds multiple operations of the same type to the bulk request

      Parameters

      • operations: Partial<T>[]

        Array of operations data

      • action: "Add" | "Update" | "Delete" | "Merge"

        The action type for all operations

      Returns BulkOperationBuilder<T>

      This builder instance for chaining

    • Builds the request payload for the bulk operation

      Returns any[]

    Constructors

    • Creates a new BulkOperationBuilder

      Type Parameters

      • T extends OslcResource

        The resource type that extends OslcResource

      Parameters

      • objectStructure: string

        The Maximo object structure name

      • OptionalapiHome: string

        The base API URL (optional, required for href construction)

      Returns BulkOperationBuilder<T>