Class MetaWorkflowRunRepository

All Implemented Interfaces:
Repository<MetaWorkflowRun>

public class MetaWorkflowRunRepository extends AbstractMetaWorkflowRunRepository
  • Constructor Details

    • MetaWorkflowRunRepository

      public MetaWorkflowRunRepository()
  • Method Details

    • forRecord

      public Query<MetaWorkflowRun> forRecord(String model, Long recordId)
      The runs recorded against one business record, unordered.

      Here rather than spelled out at each call site: the viewer, its run list and the toolbar all ask the same question, and a filter string repeated three times is three places to get the jsonModel handling wrong.

    • remove

      public void remove(MetaWorkflowRun entity)
      Deleting a run takes its node rows with it. They are that run's history and mean nothing without it, and their FK would otherwise refuse the delete — so retention pruning, an administrator clearing history, and a test tidying up all behave the same way.
      Specified by:
      remove in interface Repository<MetaWorkflowRun>
      Overrides:
      remove in class JpaRepository<MetaWorkflowRun>
      Parameters:
      entity - the entity object