Overview
The Transform By JDM command provides functionality for:- Applying complex mapping rules defined in a JDM JSON object
- Transforming input data into a completely different output structure
- Optionally leveraging state from the execution context during transformation
Command Type
Command Type ID: 1017Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| jdm | object | The JSON object containing the JDM mapping rules for transforming the data | Yes |
| timeout | number | The timeout for the command in milliseconds | Yes |
| useState | boolean | If true, uses the current execution state during transformation. Defaults to false | No |
Usage Examples
Basic Field Mapping
Transform with State
JDM Structure
Thejdm object follows the gorules/zen JSON Decision Model format — a graph of nodes and edges describing transformation logic.
Refer to the gorules/zen documentation for the full JDM specification.
Common Use Cases
- Complex Transformations: Apply non-trivial multi-field transformation logic in one step
- Rule-Based Mapping: Use decision model rules to conditionally map data
- State-Aware Transforms: Include execution state context in the transformation
Related Commands
- JSONata - Expression-based transformation
- Zen Parse Expression - Evaluate Zen expressions
- Object Mapper - Simpler field-level mapping