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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Generates 14 digit id which includes following data: hextime(8 digits) + local ip (2 digits) + counter (4 digits)Implemented flowable getNextId method
-
Constructor Details
-
HvlBpmnCustomIdGenerator
public HvlBpmnCustomIdGenerator()
-
-
Method Details
-
generateId
Generates 14 digit id which includes following data: hextime(8 digits) + local ip (2 digits) + counter (4 digits)- Returns:
- generated id
-
getNextId
Implemented flowable getNextId method- Specified by:
getNextId
in interfaceorg.flowable.common.engine.impl.cfg.IdGenerator
- Returns:
- generated id
-