Package com.axelor.workflow.expression
package com.axelor.workflow.expression
-
ClassDescriptionOne frame of a run's variables, and the frame it sits inside.The values and assignment counts at the start of one branch's walk.Evaluates a workflow
whenpredicate in a sandbox.Small syntactic helpers shared by the code that scans workflowwhenexpressions.The run-independent helper bindings shared by every workflow script.Builds the flat field snapshot awhenevaluates against: the entity's persistent scalars plus its custom fields flattened to top-level keys, real fields winning on a collision.Renders a prompt template: each${expr}span is replaced by whatevalreturns, and all other text is copied verbatim.The engine's one value codec: guest values from a script (WorkflowValues.fromValue(org.graalvm.polyglot.Value)), and host values to and from JSON (WorkflowValues.encode(java.lang.Object, java.lang.String, com.axelor.workflow.expression.WorkflowValues.HostPolicy)/WorkflowValues.decode(java.lang.Object, com.axelor.workflow.expression.WorkflowValues.TagPolicy)).What to do with a host objectWorkflowValues.encode(java.lang.Object, java.lang.String, com.axelor.workflow.expression.WorkflowValues.HostPolicy)cannot turn into JSON: a message refuses one, a variable stores a reference.What a caller makes of a tag this codec does not recognise.The value policy forvars: what a run's variables may hold and how they go to and from the run's row.