/** * Configuration information from which a process engine can be build. * * <p> * Most common is to create a process engine based on the default configuration file: * * <pre> * ProcessEngine processEngine = ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().buildProcessEngine(); * </pre> * * </p> * * <p> * To create a process engine programmatic, without a configuration file, the first option is {@link #createStandaloneProcessEngineConfiguration()} * * <pre> * ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration().buildProcessEngine(); * </pre> * * This creates a new process engine with all the defaults to connect to a remote h2 database (jdbc:h2:tcp://localhost/activiti) in standalone mode. Standalone mode means that Activiti will manage the * transactions on the JDBC connections that it creates. One transaction per service method. For a description of how to write the configuration files, see the userguide. * </p> * * <p> * The second option is great for testing: {@link #createStandalonInMemeProcessEngineConfiguration()} * * <pre> * ProcessEngine processEngine = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration().buildProcessEngine(); * </pre> * * This creates a new process engine with all the defaults to connect to an memory h2 database (jdbc:h2:tcp://localhost/activiti) in standalone mode. The DB schema strategy default is in this case * <code>create-drop</code>. Standalone mode means that Activiti will manage the transactions on the JDBC connections that it creates. One transaction per service method. * </p> * * <p> * On all forms of creating a process engine, you can first customize the configuration before calling the {@link #buildProcessEngine()} method by calling any of the setters like this: * * <pre> * ProcessEngine processEngine = ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().setMailServerHost("gmail.com").setJdbcUsername("mickey").setJdbcPassword("mouse") * .buildProcessEngine(); * </pre> * * </p> * * @see ProcessEngines */