Search in sources :

Example 1 with ProcessDefinitionFormType

use of org.activiti.rest.form.ProcessDefinitionFormType in project Activiti by Activiti.

the class ActivitiEngineConfiguration method processEngineConfiguration.

@Bean(name = "processEngineConfiguration")
public ProcessEngineConfigurationImpl processEngineConfiguration() {
    SpringProcessEngineConfiguration processEngineConfiguration = new SpringProcessEngineConfiguration();
    processEngineConfiguration.setDataSource(dataSource());
    processEngineConfiguration.setDatabaseSchemaUpdate(environment.getProperty("engine.schema.update", "true"));
    processEngineConfiguration.setTransactionManager(annotationDrivenTransactionManager());
    processEngineConfiguration.setJobExecutorActivate(Boolean.valueOf(environment.getProperty("engine.activate.jobexecutor", "false")));
    processEngineConfiguration.setAsyncExecutorEnabled(Boolean.valueOf(environment.getProperty("engine.asyncexecutor.enabled", "true")));
    processEngineConfiguration.setAsyncExecutorActivate(Boolean.valueOf(environment.getProperty("engine.asyncexecutor.activate", "true")));
    processEngineConfiguration.setHistory(environment.getProperty("engine.history.level", "full"));
    List<AbstractFormType> formTypes = new ArrayList<AbstractFormType>();
    formTypes.add(new UserFormType());
    formTypes.add(new ProcessDefinitionFormType());
    formTypes.add(new MonthFormType());
    processEngineConfiguration.setCustomFormTypes(formTypes);
    return processEngineConfiguration;
}
Also used : MonthFormType(org.activiti.rest.form.MonthFormType) ProcessDefinitionFormType(org.activiti.rest.form.ProcessDefinitionFormType) SpringProcessEngineConfiguration(org.activiti.spring.SpringProcessEngineConfiguration) ArrayList(java.util.ArrayList) UserFormType(org.activiti.rest.form.UserFormType) AbstractFormType(org.activiti.engine.form.AbstractFormType) ProcessEngineFactoryBean(org.activiti.spring.ProcessEngineFactoryBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

ArrayList (java.util.ArrayList)1 AbstractFormType (org.activiti.engine.form.AbstractFormType)1 MonthFormType (org.activiti.rest.form.MonthFormType)1 ProcessDefinitionFormType (org.activiti.rest.form.ProcessDefinitionFormType)1 UserFormType (org.activiti.rest.form.UserFormType)1 ProcessEngineFactoryBean (org.activiti.spring.ProcessEngineFactoryBean)1 SpringProcessEngineConfiguration (org.activiti.spring.SpringProcessEngineConfiguration)1 Bean (org.springframework.context.annotation.Bean)1