cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti in different schema

jatz
Champ in-the-making
Champ in-the-making
We have ACT tables in a seperate schame called ACTI (5.11).

When I run the below query:

historyService.createHistoricProcessInstanceQuery().processDefinitionKey(processDefinitionName).processInstanceBusinessKey(businessKeyId).singleResult();

it fails with the exception saying table not found. The query run is as below:

select * from ( select a.*, ROWNUM rnum from (    
select RES.*            from ACTI.ACT_HI_PROCINST RES             inner join ACT_RE_PROCDEF DEF on RES.PROC_DEF_ID_ = DEF.ID_                    
         order by RES.ID_ asc        ) a where ROWNUM < 1) where rnum  >= 1

It looks like ACTI is not appended to the Inner join. In the config I have event set config.setDatabaseTablePrefix("ACTI.");

Is this a bug?


2 REPLIES 2

trademak
Star Contributor
Star Contributor
From the history of the MyBatis mapping file I see that this was a bug, but it's fixed and should be okay in 5.13.

Best regards,

jatz
Champ in-the-making
Champ in-the-making
Cool..thanks. More reason to upgrade the version Smiley Happy