AnsweredAssumed Answered

Something wrong with Context.getCommandContext().

Question asked by lzf_sec on Aug 4, 2012
Latest reply on Aug 5, 2012 by ronald.van.kuijk
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

Outcomes