Class FlowableVersion

java.lang.Object
org.flowable.common.engine.impl.FlowableVersion

public class FlowableVersion extends Object
This class is used for auto-upgrade purposes. The idea is that instances of this class are put in a sequential order, and that the current version is determined from the ACT_GE_PROPERTY table. Since sometimes in the past, a version is ambiguous (eg. 5.12 : 5.12, 5.12.1, 5.12T) this class act as a wrapper with a smarter matches() method.
Author:
Joram Barrez
  • Field Details

    • mainVersion

      protected String mainVersion
    • alternativeVersionStrings

      protected List<String> alternativeVersionStrings
  • Constructor Details

    • FlowableVersion

      public FlowableVersion(String mainVersion)
    • FlowableVersion

      public FlowableVersion(String mainVersion, List<String> alternativeVersionStrings)
  • Method Details

    • getMainVersion

      public String getMainVersion()
    • matches

      public boolean matches(String version)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object