Type identifier:
object:packCategory: Object Operations
Combines selected property values into a Schema-validated object, or validates a data input against a non-object Schema. The configured Schema can be inline or reference an existing Schema.
Handle | Data Type | Required | Description |
|---|---|---|---|
| Varies | No | One input for each selected Schema path |
| Varies | Yes for a non-object Schema | Value to validate and pack |
Input handles are generated from selectedProperties:
Pname, Paddress.Pcity)Handle | Data Type | Description |
|---|---|---|
| Configured Schema | The packed value |
objectNotes:
Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| Yes |
| Display label for the node |
|
| Yes | Empty object | Schema definition or reference |
|
| Yes |
| Paths to properties to accept |
schemaobject with a type of literal or referenceVariants:
{ type: "literal", schema: <schemaDefinition> } - Inline Schema definition{ type: "reference", schemaId: string } - Reference to existing SchemaNotes:
selectedProperties["Paddress", "Pcity"])Notes:
data input instead; a reference that resolves to a non-object Schema with selected properties fails during the run.For object Schemas, for each selected property:
data for a non-object SchemaSchema Type | Behaviour |
|---|---|
| Uses the inline Schema |
| Uses the referenced Schema from the current Space |
A reference that resolves to a non-object Schema reads the data input; if it is not connected, the run fails.
Values are automatically mapped to the target Schema:
Scenario | Behaviour |
|---|---|
Schema reference unavailable | The run fails |
Invalid data for Schema | The run fails with a Schema validation error |
{
"type": "object:pack",
"data": {
"label": "Create User Object",
"schema": {
"type": "literal",
"schema": {
"type": "object",
"name": "User",
"properties": {
"Pname": { "type": "string", "name": "Name" },
"Pemail": { "type": "string", "name": "Email" }
}
}
},
"selectedProperties": [["Pname"], ["Pemail"]]
}
}Creates input handles: Pname, Pemail. Output: { Pname: "...", Pemail: "..." }
{
"type": "object:pack",
"data": {
"label": "Pack Order",
"schema": {
"type": "reference",
"schemaId": "cm12345678901234567890123"
},
"selectedProperties": [["PcustomerId"], ["Pitems"], ["Ptotal"]]
}
}Uses an existing Schema from the Space.
{
"type": "object:pack",
"data": {
"label": "Pack Address",
"schema": {
"type": "literal",
"schema": {
"type": "object",
"name": "Contact",
"properties": {
"Pname": { "type": "string", "name": "Name" },
"Paddress": {
"type": "object",
"name": "Address",
"properties": {
"Pstreet": { "type": "string", "name": "Street" },
"Pcity": { "type": "string", "name": "City" }
}
}
}
}
},
"selectedProperties": [["Pname"], ["Paddress", "Pstreet"], ["Paddress", "Pcity"]]
}
}Creates handles: Pname, Paddress.Pstreet, Paddress.Pcity