Package org.flowable.common.engine.impl
Class FlowableVersions
- java.lang.Object
-
- org.flowable.common.engine.impl.FlowableVersions
-
public class FlowableVersions extends Object
- Author:
- Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description static List<FlowableVersion>CAM_MIGRATION_VERSIONSstatic StringCURRENT_VERSIONstatic List<FlowableVersion>FLOWABLE_VERSIONSstatic StringLAST_V5_VERSIONstatic StringLAST_V6_VERSION_BEFORE_SERVICES
-
Constructor Summary
Constructors Constructor Description FlowableVersions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static intfindMatchingCamMigrationIndex(String dbVersion)static intfindMatchingVersionIndex(String dbVersion)static intfindMatchingVersionIndex(FlowableVersion flowableVersion)Returns the index in the list ofFLOWABLE_VERSIONSmatching the provided string version.static intgetFlowableVersionIndexForDbVersion(String dbVersion)static FlowableVersiongetPreviousVersion(String version)static booleanhasCamMigrationVersion(String version)
-
-
-
Field Detail
-
CURRENT_VERSION
public static final String CURRENT_VERSION
- See Also:
- Constant Field Values
-
FLOWABLE_VERSIONS
public static final List<FlowableVersion> FLOWABLE_VERSIONS
-
CAM_MIGRATION_VERSIONS
public static final List<FlowableVersion> CAM_MIGRATION_VERSIONS
-
LAST_V5_VERSION
public static final String LAST_V5_VERSION
- See Also:
- Constant Field Values
-
LAST_V6_VERSION_BEFORE_SERVICES
public static final String LAST_V6_VERSION_BEFORE_SERVICES
- See Also:
- Constant Field Values
-
-
Method Detail
-
findMatchingVersionIndex
public static int findMatchingVersionIndex(FlowableVersion flowableVersion)
Returns the index in the list ofFLOWABLE_VERSIONSmatching the provided string version. Returns -1 if no match can be found.
-
findMatchingVersionIndex
public static int findMatchingVersionIndex(String dbVersion)
-
getPreviousVersion
public static FlowableVersion getPreviousVersion(String version)
-
getFlowableVersionIndexForDbVersion
public static int getFlowableVersionIndexForDbVersion(String dbVersion)
-
hasCamMigrationVersion
public static boolean hasCamMigrationVersion(String version)
-
findMatchingCamMigrationIndex
protected static int findMatchingCamMigrationIndex(String dbVersion)
-
-