Class HvlBpmnCustomIdGenerator

java.lang.Object
tr.com.havelsan.javarch.bpmn.service.provider.configuration.HvlBpmnCustomIdGenerator
All Implemented Interfaces:
org.flowable.common.engine.impl.cfg.IdGenerator

public class HvlBpmnCustomIdGenerator extends Object implements org.flowable.common.engine.impl.cfg.IdGenerator
Generates 14 digit unique string id Developed to reduce flowable id sizes in the database
  • Constructor Details

    • HvlBpmnCustomIdGenerator

      public HvlBpmnCustomIdGenerator()
  • Method Details

    • generateId

      public static String generateId()
      Generates 14 digit id which includes following data: hextime(8 digits) + local ip (2 digits) + counter (4 digits)
      Returns:
      generated id
    • getNextId

      public String getNextId()
      Implemented flowable getNextId method
      Specified by:
      getNextId in interface org.flowable.common.engine.impl.cfg.IdGenerator
      Returns:
      generated id