ProcessDto

The single argument every node's processAction() receives. It carries the message payload, the request/response headers used by the platform, and the routing/result decision the node makes.

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

Methods provided #

MethodReturnsPurpose
getJsonData()unknownParse and return the message payload.
setJsonData(value)thisReplace the payload with serialized JSON.
getData()stringRaw body.
setData(value)thisSet raw body (use for non-JSON payloads).
getHeaders()Record<string, string>Inbound message headers.
setHeaders(headers)thisReplace the header map.
addHeader(key, value)thisAdd or overwrite one header.
setStopProcess(code, reason)thisEnd this branch. See ResultCode.

Headers of interest #

Header (constant)Meaning
process-idThe correlation id of the running process.
node-idThe current node id.
topology-id, topology-nameTopology identification.
applicationThe Application this connector/node is registered against.
userThe user identifier the message is processed for.

You will rarely set these by hand; the platform fills them in for you.

See also #

© 2025 Orchesty Solutions. All rights reserved.