ResultCode

Enum of values you pass to dto.setStopProcess(code, reason) to tell the platform what to do with the message.

import { ResultCode } from '@orchesty/nodejs-sdk/dist/lib/Utils/ResultCode';

Values you set explicitly #

ValueMeaning
SUCCESS = 0Default. Continue to the next node. (You don't normally set this; just return the dto.)
STOP_AND_FAILED = 1006Mark the message as failed. After retries are exhausted it lands in Trash.
DO_NOT_CONTINUE = 1003End this branch successfully without flowing further. Useful for filters.
FORWARD_TO_TARGET_QUEUE = 1002Route to a named successor instead of the default one.
REPEAT = 1001Re-deliver this exact message to the same node. Use sparingly.

Reserved (set by the platform / batch infra) #

ValueMeaning
LIMIT_EXCEEDED = 1004Limiter held the message back.
BATCH_CURSOR_WITH_FOLLOWERS = 1010A batch node asked for the next page; emit downstream now.
BATCH_CURSOR_ONLY = 1011A batch node asked for the next page; hold downstream until done.

Failure reporting #

ValueMeaning
UNKNOWN_ERROR = 2001Generic failure (e.g. uncaught exception).
INVALID_HEADERS = 2002Required headers were missing on inbound message.
INVALID_CONTENT = 2003Message body was not parsable.

See also #

© 2025 Orchesty Solutions. All rights reserved.