Class PluggableFlowableExtension

java.lang.Object
org.flowable.engine.impl.test.InternalFlowableExtension
org.flowable.engine.impl.test.PluggableFlowableExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.ParameterResolver

public class PluggableFlowableExtension extends InternalFlowableExtension
An extension which uses the ProcessEngines.getDefaultProcessEngine() and is cached within the entire context (i.e. it would be reused by all users of the extension).

This extension also activates EnableVerboseExecutionTreeLogging if a class is annotated with it.

Author:
Filip Hrisafov
  • Constructor Details

    • PluggableFlowableExtension

      public PluggableFlowableExtension()
  • Method Details

    • afterEach

      public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback
      Overrides:
      afterEach in class InternalFlowableExtension
      Throws:
      Exception
    • getProcessEngine

      protected ProcessEngine getProcessEngine(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      getProcessEngine in class InternalFlowableExtension
    • initializeProcessEngine

      protected ProcessEngine initializeProcessEngine(String configurationResource)
    • getConfigurationResource

      protected String getConfigurationResource(org.junit.jupiter.api.extension.ExtensionContext context)
    • swapCommandInvoker

      protected void swapCommandInvoker(ProcessEngine processEngine, boolean debug)
    • getStore

      protected org.junit.jupiter.api.extension.ExtensionContext.Store getStore(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      getStore in class InternalFlowableExtension
    • newLoggingExecutionTreeAgendaOperationExecutionListener

      protected AgendaOperationExecutionListener newLoggingExecutionTreeAgendaOperationExecutionListener()