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 #
| Value | Meaning |
|---|---|
SUCCESS = 0 | Default. Continue to the next node. (You don't normally set this; just return the dto.) |
STOP_AND_FAILED = 1006 | Mark the message as failed. After retries are exhausted it lands in Trash. |
DO_NOT_CONTINUE = 1003 | End this branch successfully without flowing further. Useful for filters. |
FORWARD_TO_TARGET_QUEUE = 1002 | Route to a named successor instead of the default one. |
REPEAT = 1001 | Re-deliver this exact message to the same node. Use sparingly. |
Reserved (set by the platform / batch infra) #
| Value | Meaning |
|---|---|
LIMIT_EXCEEDED = 1004 | Limiter held the message back. |
BATCH_CURSOR_WITH_FOLLOWERS = 1010 | A batch node asked for the next page; emit downstream now. |
BATCH_CURSOR_ONLY = 1011 | A batch node asked for the next page; hold downstream until done. |
Failure reporting #
| Value | Meaning |
|---|---|
UNKNOWN_ERROR = 2001 | Generic failure (e.g. uncaught exception). |
INVALID_HEADERS = 2002 | Required headers were missing on inbound message. |
INVALID_CONTENT = 2003 | Message body was not parsable. |