Class AbstractFlowableTestCase

java.lang.Object
org.flowable.engine.impl.test.AbstractTestCase
org.flowable.engine.impl.test.AbstractFlowableTestCase
Direct Known Subclasses:
PluggableFlowableTestCase, ResourceFlowableTestCase, SpringFlowableTestCase

@EnsureCleanDb(excludeTables={"ACT_GE_PROPERTY","ACT_ID_PROPERTY","FLW_EV_DATABASECHANGELOGLOCK","FLW_EV_DATABASECHANGELOG"}) public abstract class AbstractFlowableTestCase extends AbstractTestCase
Author:
Tom Baeyens, Joram Barrez, Filip Hrisafov
  • Field Details

  • Constructor Details

    • AbstractFlowableTestCase

      public AbstractFlowableTestCase()
  • Method Details

    • initializeServices

      @BeforeEach public final void initializeServices(ProcessEngine processEngine)
    • cleanDeployments

      protected static void cleanDeployments(ProcessEngine processEngine)
    • validateHistoryData

      protected static void validateHistoryData(ProcessEngine processEngine)
    • assertProcessEnded

      public void assertProcessEnded(String processInstanceId)
    • assertProcessEnded

      public void assertProcessEnded(String processInstanceId, long timeout)
    • assertActivityInstancesAreSame

      public static void assertActivityInstancesAreSame(HistoricActivityInstance historicActInst, ActivityInstance activityInstance)
    • waitForJobExecutorToProcessAllJobs

      public void waitForJobExecutorToProcessAllJobs(long maxMillisToWait, long intervalMillis)
    • waitForJobExecutorOnCondition

      public void waitForJobExecutorOnCondition(long maxMillisToWait, long intervalMillis, Callable<Boolean> condition)
    • executeJobExecutorForTime

      public void executeJobExecutorForTime(long maxMillisToWait, long intervalMillis)
    • waitForJobExecutorToProcessAllJobsAndExecutableTimerJobs

      public void waitForJobExecutorToProcessAllJobsAndExecutableTimerJobs(long maxMillisToWait, long intervalMillis)
    • waitForJobExecutorToProcessAllJobsAndAllTimerJobs

      public void waitForJobExecutorToProcessAllJobsAndAllTimerJobs(long maxMillisToWait, long intervalMillis)
    • waitForJobExecutorToProcessAllHistoryJobs

      public void waitForJobExecutorToProcessAllHistoryJobs(long maxMillisToWait, long intervalMillis)
    • waitForHistoryJobExecutorToProcessAllJobs

      public void waitForHistoryJobExecutorToProcessAllJobs(long maxMillisToWait, long intervalMillis)
    • createOneTaskTestProcess

      public BpmnModel createOneTaskTestProcess()
      Since the 'one task process' is used everywhere the actual process content doesn't matter, instead of copying around the BPMN 2.0 xml one could use this method which gives a BpmnModel version of the same process back.
    • createOneTaskTestProcessWithCandidateStarterGroup

      public BpmnModel createOneTaskTestProcessWithCandidateStarterGroup()
    • createOneTaskProcess

      protected Process createOneTaskProcess()
    • createTwoTasksTestProcess

      public BpmnModel createTwoTasksTestProcess()
    • deployOneTaskTestProcess

      public String deployOneTaskTestProcess()
      Creates and deploys the one task process. See createOneTaskTestProcess().
      Returns:
      The process definition id (NOT the process definition key) of deployed one task process.
    • deployOneTaskTestProcessWithCandidateStarterGroup

      public String deployOneTaskTestProcessWithCandidateStarterGroup()
    • deployTwoTasksTestProcess

      public String deployTwoTasksTestProcess()
    • deleteDeployments

      protected void deleteDeployments()
    • deleteDeployment

      protected void deleteDeployment(String deploymentId)
    • assertHistoricTasksDeleteReason

      protected void assertHistoricTasksDeleteReason(ProcessInstance processInstance, String expectedDeleteReason, String... taskNames)
    • assertHistoricActivitiesDeleteReason

      protected void assertHistoricActivitiesDeleteReason(ProcessInstance processInstance, String expectedDeleteReason, String... activityIds)
    • completeTask

      protected void completeTask(Task task)
    • mergeLists

      protected static <T> List<T> mergeLists(List<T> list1, List<T> list2)
    • groupListContentBy

      protected static <T> Map<String,List<T>> groupListContentBy(List<T> source, Function<T,String> classifier)
    • getJobActivityId

      protected String getJobActivityId(Job job)
    • deployProcessDefinition

      protected ProcessDefinition deployProcessDefinition(String name, String path)
    • completeProcessInstanceTasks

      protected void completeProcessInstanceTasks(String processInstanceId)