cancel
Showing results for 
Search instead for 
Did you mean: 

Something wrong with Context.getCommandContext().

lzf_sec
Champ in-the-making
Champ in-the-making
Hi
    I want to get HistoricDetailManager object , so I set Context.getCommandContext().getHistoricDetailManager() to get it ,but the program always throws a NullPointerException, the error line show Context.getCommandContext is null, is there something wrong with my cfg??  I used the spring :

[color=#FF0000]           <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
      <property name="databaseType" value="mysql"></property>
      <property name="dataSource" ref="dataSource"/>
      <property name="transactionManager" ref="transactionManager"/>
      <property name="databaseSchemaUpdate" value="true"/>
      <property name="jobExecutorActivate" value="false"/>
      <property name="historyLevel" value="2"/>
      <property name="history" value="full"/>
   </bean>
   
   <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
      <property name="processEngineConfiguration" ref="processEngineConfiguration"/>
   </bean>[/color] 
 

Wait for you help….ths
3 REPLIES 3

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Why can't you use the history query?

lzf_sec
Champ in-the-making
Champ in-the-making
Because i want to operate the act_hi_detail table.

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
'to operate'? pleace elaborate