File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
impl/core/src/main/java/io/serverlessworkflow/impl Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ public SchemaValidator getValidator(SchemaInline inline) {
140
140
private ResourceLoaderFactory resourceLoaderFactory = DefaultResourceLoaderFactory .get ();
141
141
private SchemaValidatorFactory schemaValidatorFactory ;
142
142
private WorkflowPositionFactory positionFactory = () -> new QueueWorkflowPosition ();
143
- private WorkflowInstanceIdFactory idFactory = new MonotonicUlidWorkflowInstanceIdFactory () ;
143
+ private WorkflowInstanceIdFactory idFactory ;
144
144
private ExecutorServiceFactory executorFactory = new DefaultExecutorServiceFactory ();
145
145
private EventConsumer <?, ?> eventConsumer ;
146
146
private Collection <EventPublisher > eventPublishers = new ArrayList <>();
@@ -243,6 +243,9 @@ public WorkflowApplication build() {
243
243
return inMemory ;
244
244
});
245
245
}
246
+ if (idFactory == null ) {
247
+ idFactory = new MonotonicUlidWorkflowInstanceIdFactory ();
248
+ }
246
249
return new WorkflowApplication (this );
247
250
}
248
251
}
You can’t perform that action at this time.
0 commit comments