StageObject
Stage Object – Create Stage Object
Summary (SEO Meta Description):
The Stage Object processor in WeHub builds structured objects inside workflows.
Configure schema and truncation to create reusable staged data for downstream plugins.
Overview
The Create Stage Object action allows you to construct structured objects within a workflow.
It is typically used to stage normalized data, prepare payloads for APIs, or create reusable objects that downstream processors can consume.
By applying schemas and optional truncation, Stage Object ensures that generated objects remain consistent and validated.
⚙️ Configuration Options
| Field | Type | Description | 
|---|---|---|
| Label | String | Custom name for the node (e.g., "Stage Patient Resource"). | 
| Truncate Fields | Boolean | Toggle to shorten long string fields in the staged object. | 
| Schema | Schema | Optional schema to validate the staged object against. | 
💡 Example Use Cases
- Healthcare → Create a staged FHIR PatientorAppointmentresource for downstream processors.
- Finance → Build a normalized Transactionobject before database insertion.
- Ops → Assemble structured objects for APIs requiring a strict payload format.
FAQ
Q: What happens if schema validation fails?
A: The node fails with detailed error messages unless error handling is configured.
Q: What does truncation do?
A: It shortens oversized string fields (e.g., logs, large notes) based on platform rules.
Q: Can I reuse staged objects later in the workflow?
A: Yes, staged objects are written into workflow context and can be consumed by any downstream node.
Keywords: WeHub Stage Object, Create Object, structured data, schema validation, payload builder