AnsweredAssumed Answered

To invoke a method Expression

Question asked by abhilashs@vegainvtech.com on Feb 23, 2016
Latest reply on Feb 24, 2016 by martin.grofcik
Hi,

I am trying to invoke a method Expression. But I am not able to call the method from the Delegate. And its giving : org.activiti.engine.ActivitiIllegalArgumentException: Field definition uses unexisting field 'testService' on class com.activiti.test.bpm.WebserviceTask

I need to know how exactly the method is invoked from the Service Task using the Expression? Should the method be in same Service Task or elsewhere?

Expression configured in BPMN:
  <serviceTask id="webService_task_id" name="WebService Task" activiti:class="com.activiti.test.bpm.WebserviceTask">
      <extensionElements>
        <activiti:field name="testService">
          <activiti:expression><![CDATA[testService.testMethod()]]></activiti:expression>
        </activiti:field>
      </extensionElements>
    </serviceTask>

Thanks
Abhilash S

Outcomes