Package me.ahoo.cosid.activiti
Class ActivitiIdGenerator
java.lang.Object
me.ahoo.cosid.activiti.ActivitiIdGenerator
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionActivitiIdGenerator(me.ahoo.cosid.runtime.CosIdRuntime runtime) The generator of theID_KEYsystem property, elsedefault.ActivitiIdGenerator(me.ahoo.cosid.runtime.CosIdRuntime runtime, String generator) A named generator. -
Method Summary
-
Field Details
-
ID_KEY
The system property of the generator name.- See Also:
-
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 theID_KEYsystem property, elsedefault.- Parameters:
runtime- the runtime
-
ActivitiIdGenerator
A named generator.- Parameters:
runtime- the runtimegenerator- the generator name; blank ornullfor theID_KEYsystem property's
-
-
Method Details
-
generator
The generator name.- Returns:
- the name
-
getNextId
- Specified by:
getNextIdin interfaceorg.activiti.engine.impl.cfg.IdGenerator
-