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) {
140140 private ResourceLoaderFactory resourceLoaderFactory = DefaultResourceLoaderFactory .get ();
141141 private SchemaValidatorFactory schemaValidatorFactory ;
142142 private WorkflowPositionFactory positionFactory = () -> new QueueWorkflowPosition ();
143- private WorkflowInstanceIdFactory idFactory = new MonotonicUlidWorkflowInstanceIdFactory () ;
143+ private WorkflowInstanceIdFactory idFactory ;
144144 private ExecutorServiceFactory executorFactory = new DefaultExecutorServiceFactory ();
145145 private EventConsumer <?, ?> eventConsumer ;
146146 private Collection <EventPublisher > eventPublishers = new ArrayList <>();
@@ -243,6 +243,9 @@ public WorkflowApplication build() {
243243 return inMemory ;
244244 });
245245 }
246+ if (idFactory == null ) {
247+ idFactory = new MonotonicUlidWorkflowInstanceIdFactory ();
248+ }
246249 return new WorkflowApplication (this );
247250 }
248251 }
You can’t perform that action at this time.
0 commit comments