cancel
Showing results for 
Search instead for 
Did you mean: 

Incompatible type set on field declaration

rxh
Champ in-the-making
Champ in-the-making
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?
3 REPLIES 3

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Activity 0.9 is not supported anymore

rxh
Champ in-the-making
Champ in-the-making
Hi,

Activity 0.9 is not supported anymore

Sorry I did not understand.  Smiley Surprisedops:
Because I know that I use activiti-engine-5.6.jar and activiti-spring-5.6.jar

trademak
Star Contributor
Star Contributor
Hi,

Please post the full code example. So the Java service class which is causing the issue.

Best regards,