Class WorkflowDefinitionCapture

java.lang.Object
com.axelor.workflow.trigger.WorkflowDefinitionCapture
All Implemented Interfaces:
PreUpdateEventListener

public class WorkflowDefinitionCapture extends Object implements PreUpdateEventListener
Remembers the XML a MetaWorkflow row is about to lose. The web layer flushes new values before the repository runs, so PRE_UPDATE's old state is the only place left to read the previous graph that parked runs are on. Detection only.
  • Constructor Details

    • WorkflowDefinitionCapture

      public WorkflowDefinitionCapture()
  • Method Details

    • onPreUpdate

      public boolean onPreUpdate(PreUpdateEvent event)
      Specified by:
      onPreUpdate in interface PreUpdateEventListener
    • take

      public static String take(Long id)
      The prior XML for this row, if this unit of work captured one; consumed as read, with leftovers from earlier units swept.