Skip to content
Esa Puttonen edited this page Mar 22, 2017 · 16 revisions

nFlow Frequently Asked Questions

Why Spring throws exception "No bean named 'nflowDatabaseInitializer' is defined" when starting?

org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'workflowInstanceDao' defined in URL 
[jar:file:/some/path/nflow-engine-0.2.1-SNAPSHOT.jar!/com/nitorcreations/nflow/engine/internal/dao/WorkflowInstanceDao.class]: 
Unsatisfied dependency expressed through constructor argument with index 1 of type [com.nitorcreations.nflow.engine.internal.dao.ExecutorDao]: : 
No bean named 'nflowDatabaseInitializer' is defined; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: 
No bean named 'nflowDatabaseInitializer' is defined

This may be caused by missing Spring profile that selects database engine. You should use one of these spring profiles nflow.db.mysql, nflow.db.postgresql, nflow.db.oracle or nflow.db.h2. E.g use this system property: -Dspring.profiles.active=nflow.db.mysql.

How to include nflow-engine in my application without starting workflow processing?

Set nflow.autostart=false, e.g use system property -Dnflow.autostart=false when starting your application. With this property nFlow instance won't start a dispatcher thread and thus the instance will not process any workflows.

Why WorkflowState symbol is not found?

error: cannot find symbol
    public enum State implements WorkflowState {
                                 ^
  symbol:   class WorkflowState
  location: class MyWorkflow

Use fully qualified class name for io.nflow.engine.workflow.definition.WorkflowState. This seems to be a JDK bug.

Clone this wiki locally