Class Payloads

java.lang.Object
com.axelor.workflow.exec.Payloads

public final class Payloads extends Object
What a <send> carries besides its address: the author's expression, evaluated in the sending walk and stored as JSON. A snapshot of what was true when the sender committed.
  • Method Details

    • evaluate

      public static String evaluate(String stepId, String expr, WorkflowRunContext context)
      The payload serialised, or null when the node declared none.
    • binding

      public static Map<String,Object> binding(MetaWorkflowMessage message)
      A delivered message as the walk it wakes reads it: message.name, key, data and sentAt. data is an empty map, never null, when the sender wrote no payload.