AnsweredAssumed Answered

Incompatible type set on field declaration

Question asked by rxh on Sep 12, 2011
Latest reply on Sep 13, 2011 by trademak
Hi all,

Please I need help with the problem.  :cry:

My service task is this:


<serviceTask id="Service" activiti:class="engine.bpmn.tasks.Service">
     <extensionElements>
             <activiti:field name="testService" expression="#{testService}" />
             <activiti:field name="parameters" expression="customer" />             
             <activiti:field name="withoutException" expression="noException" />
             <activiti:field name="withException" expression="exception" />  
     </extensionElements>
</serviceTask>

And in Spring i have:


    <bean id="testService" class="engine.common.cannonical.testService">
       <property name="ServiceManager" ref="ServiceManagerListener" />
    </bean>
   
    <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
      <property name="dataSource" ref="dataSource" />
      <property name="transactionManager" ref="transactionManager" />
      <property name="databaseSchemaUpdate" value="true" />
      <property name="mailServerHost" value="localhost" />
      <property name="mailServerPort" value="4025" />
      <property name="jobExecutorActivate" value="false" />
      <property name="processEngineName" value="ManagerBpmEngine" />
      <property name="dbCycleUsed" value="true" />
      <property name="beans">
         <map>
           <entry key="testService" value-ref="testService" />
         </map>
      </property>
     </bean>

When I running the following error is shown:


Incompatible type set on field declaration 'testService' for class engine.bpmn.tasks.Service. Declared value has type org.activiti.engine.impl.el.JuelExpression, while expecting org.activiti.engine.delegate.Expression   


any idea?

Outcomes