Skip to content

Start up camunda process engine in the main method of a java class

Notifications You must be signed in to change notification settings

meyerdan/camunda-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

camunda-main

Start up camunda process engine in the main method of a java class

public static void main(String[] args) {

    ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration()
      .setJdbcDriver("org.postgresql.Driver")
      .setJdbcUrl("jdbc:postgresql://localhost/process-engine")
      .setJdbcUsername("postgres")
      .setJdbcPassword("postgres")
      .setHistory(HISTORY_FULL)
      .setDatabaseSchemaUpdate(DB_SCHEMA_UPDATE_TRUE)
      .setJobExecutorActivate(true)
      .buildProcessEngine();
      
    try {
      // ... code goes here
    }
    finally {
      processEngine.close();
    }

  }

About

Start up camunda process engine in the main method of a java class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages