ACommonNode
Base class for any custom node: pure logic, no external HTTP, no fan-out.
import ACommonNode from '@orchesty/nodejs-sdk/dist/lib/Commons/ACommonNode';
Inheritance #
ANode -> ACommonNode
Methods you implement #
| Method | Returns | Purpose |
|---|---|---|
getName() | string | Stable internal node identifier. |
processAction(dto) | Promise<ProcessDto> | The transformation. Return the (possibly mutated) dto. |
Methods provided #
| Method | Returns | Purpose |
|---|---|---|
getApplicationInstallFromProcess(dto) | Promise<ApplicationInstall | undefined> | Load the install for the current process (only set when the node is registered against an Application). |
Example #
See Development: Building nodes / Custom nodes.
See also #
- AConnector
- ABatchNode
- ProcessDto
- PHP equivalent:
CommonNodeAbstract