cancel
Showing results for 
Search instead for 
Did you mean: 

Add own MappedStatement

akakunin
Champ in-the-making
Champ in-the-making
Hi!
During implementaiton of Liferay and Activiti integration I need to do specific queries to Activiti DB - not covered by standard Query-classes.

So, I've decided to implement own query-class (inherited from AbstractQuery) - and I'm blocked by implementing list-method - actually it is simple like:

return commandContext.getDbSqlSession().selectList(statement, this, page);

But - problem with statement.
All statements are stored in xml class and loaded in myBatis configuration during start-up.
Is it possible in runtime to add own mapped-stament file into current myBatis configuration?
Or I should change default activiti mybatis configuration file (activiti.ibatis.mem.conf.xml)?
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Currently, there is no way of adding aditional ibatis-mapping files, only the contents of "activiti.ibatis.mem.conf.xml" is read. An issue exists for running custom queries throug API (http://jira.codehaus.org/browse/ACT-502).

For now, only possibility is indeed adding it to the "activiti.ibatis.mem.conf.xml" file in activiti-engine.jar.

nikpetrovic
Champ in-the-making
Champ in-the-making
When could we expect the feature http://jira.codehaus.org/browse/ACT-502 to be resolved?