Add own MappedStatement
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2011 11:42 AM
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:
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)?
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)?
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2011 02:20 AM
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.
For now, only possibility is indeed adding it to the "activiti.ibatis.mem.conf.xml" file in activiti-engine.jar.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2011 04:30 AM
