Class SequentialArtefactScheduler


  • public class SequentialArtefactScheduler
    extends java.lang.Object
    • Constructor Detail

      • SequentialArtefactScheduler

        public SequentialArtefactScheduler​(ExecutionContext context)
    • Method Detail

      • executeWithinBeforeAndAfter

        public ReportNode executeWithinBeforeAndAfter​(AbstractArtefact artefact,
                                                      ReportNode reportNode,
                                                      java.util.function.Function<java.util.List<AbstractArtefact>,​ReportNode> consumer)
        Delegates the execution of the children artefacts of the provided artefact within the BeforeSequence and AfterSequence artefacts of the provided artefact.
        Parameters:
        artefact - the artefact to be executed
        reportNode - the ReportNode corresponding to the provided artefact
        consumer - the consumer to delegate the execution of the children artefacts without Before and AfterSequence artefacts
        Returns:
        the ReportNode of the provided artefact
      • executeWithinBeforeAndAfter

        public ReportNode executeWithinBeforeAndAfter​(AbstractArtefact artefact,
                                                      ReportNode reportNode,
                                                      java.util.function.Function<java.util.List<AbstractArtefact>,​ReportNode> consumer,
                                                      java.lang.Class<? extends AbstractArtefact> beforeClass,
                                                      java.lang.Class<? extends AbstractArtefact> afterClass)
        Delegates the execution of the children artefacts of the provided artefact within the Before and After artefacts of the provided artefact.
        Parameters:
        artefact - the artefact to be executed
        reportNode - the ReportNode corresponding to the provided artefact
        consumer - the consumer to delegate the execution of the children artefacts without Before and AfterSequence artefacts
        beforeClass - the class of the before artefacts
        afterClass - the class of the after artefacts
        Returns:
      • execute_

        public void execute_​(ReportNode reportNode,
                             AbstractArtefact artefact,
                             java.lang.Boolean continueSequenceOnError)