limcheekin/activiti — Issue #2: Add support for configuring data source
Author: dmurat
Created: 2012-02-11 09:10:04+00:00
State: open

Since grails 2.0.0 now support multiple data sources, it would be nice to add support for configuring data source name in activiti plugin.

If this doesn't brake something else in the plugin (i.e. in scripts), I believe this can be implemented by modifying a single line in ActivitiGrailsPlugin:

```groovy
processEngineConfiguration(org.activiti.spring.SpringProcessEngineConfiguration) {
//...
dataSource = ref("dataSource")
//..
}
```
should be replaced with

```groovy
processEngineConfiguration(org.activiti.spring.SpringProcessEngineConfiguration) {
//...
dataSource = ref(CH.config.activiti.dataSourceName ?: "dataSource")
//..
}
```