Skip to content
1 min read · 108 words

Function: createJexlCell()

ts
function createJexlCell(options?: JexlCellOptions): PredicateEvaluator;

Defined in: src/batteries/orchestration/cells/jexl.ts:201

Create the jexl predicate cell.

The cell treats a branch/select node's predicate as a JEXL expression source string. load lazily resolves the optional jexl peer and registers the closed transform allowlist; load and validate run the dialect lint and a parse attempt so a syntax error surfaces at freeze rather than mid-run; evaluate synchronously evaluates the source against a marshalled snapshot of the outputs.

Parameters

ParameterTypeDescription
options?JexlCellOptionsoptional cell configuration (the closed transform allowlist).

Returns

PredicateEvaluator

a PredicateEvaluator whose id is 'jexl'.