Class ActivitiIdGenerator

java.lang.Object
me.ahoo.cosid.activiti.ActivitiIdGenerator
All Implemented Interfaces:
org.activiti.engine.impl.cfg.IdGenerator

public class ActivitiIdGenerator extends Object implements org.activiti.engine.impl.cfg.IdGenerator
Activiti's IdGenerator on the text ids of a runtime generator: set it with processEngineConfiguration.setIdGenerator(new ActivitiIdGenerator(runtime)). The generator is the one named here (in Spring cosid.activiti.generator-name), else by the ID_KEY system property, else default.
  • Field Details

    • ID_KEY

      public static final String ID_KEY
      The system property of the generator name.
      See Also:
    • DEFAULT_GENERATOR

      public static final String DEFAULT_GENERATOR
      The generator when neither a name nor the system property gives one.
      See Also:
  • Constructor Details

    • ActivitiIdGenerator

      public ActivitiIdGenerator(me.ahoo.cosid.runtime.CosIdRuntime runtime)
      The generator of the ID_KEY system property, else default.
      Parameters:
      runtime - the runtime
    • ActivitiIdGenerator

      public ActivitiIdGenerator(me.ahoo.cosid.runtime.CosIdRuntime runtime, String generator)
      A named generator.
      Parameters:
      runtime - the runtime
      generator - the generator name; blank or null for the ID_KEY system property's
  • Method Details

    • generator

      public String generator()
      The generator name.
      Returns:
      the name
    • getNextId

      public String getNextId()
      Specified by:
      getNextId in interface org.activiti.engine.impl.cfg.IdGenerator