Package me.ahoo.cosid.flowable
Class FlowableIdGenerator
java.lang.Object
me.ahoo.cosid.flowable.FlowableIdGenerator
- All Implemented Interfaces:
org.flowable.common.engine.impl.cfg.IdGenerator
public class FlowableIdGenerator
extends Object
implements org.flowable.common.engine.impl.cfg.IdGenerator
Flowable's
IdGenerator on the text ids of a runtime generator: set it with
processEngineConfiguration.setIdGenerator(new FlowableIdGenerator(runtime)). The generator is the one named
here (in Spring cosid.flowable.generator-name), else by the ID_KEY system property, else
default.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFlowableIdGenerator(me.ahoo.cosid.runtime.CosIdRuntime runtime) The generator of theID_KEYsystem property, elsedefault.FlowableIdGenerator(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
-
FlowableIdGenerator
public FlowableIdGenerator(me.ahoo.cosid.runtime.CosIdRuntime runtime) The generator of theID_KEYsystem property, elsedefault.- Parameters:
runtime- the runtime
-
FlowableIdGenerator
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.flowable.common.engine.impl.cfg.IdGenerator
-