BatchProcessDto

The argument ABatchNode.processAction() receives. Extends ProcessDto with methods for emitting downstream items and managing the pagination cursor.

import BatchProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/BatchProcessDto';

Inheritance #

AProcessDto -> ProcessDto -> BatchProcessDto

Methods added #

MethodReturnsPurpose
addItem(payload)thisEmit one downstream message.
addItemFromArray(payload)thisSame, typed for plain objects.
setItemList(items)thisShred the array: each element becomes one downstream message.
setItemList(items, true)thisWrap as a single message instead.
getBatchCursor()string | undefinedCursor value the platform passed in for the next iteration.
setBatchCursor(cursor)thisIterate again. Items already emitted flow downstream immediately.
setBatchCursor(cursor, true)thisIterate again, hold items until the iteration completes.

See also #

© 2025 Orchesty Solutions. All rights reserved.