cancel
Showing results for 
Search instead for 
Did you mean: 

Error while calling a java method using Expression in Service Task

rajendiran
Champ in-the-making
Champ in-the-making
Hi,

I designed a java code which has a method called "callExecute()". This method calls again web service client. I am doing this from Service Task using "Expression". I deployed the code without any issues. When I started the process in Activiti Explorer, I got an error "Unknown property used in expression: ${callLeaveService.callExecute()}".

But I am able to invoke the method "callExecute()" successfully from eclipse environment. Where as the Activiti Elxplorer throws the above error. I attached the tomcat log file and the bpmn.

Please help me to fix this bug.

Thanks and Regards,
Rajendiran R
2 REPLIES 2

rajendiran
Champ in-the-making
Champ in-the-making
Adding Activiti-Context xml file as well.

frederikherema1
Star Contributor
Star Contributor
Activiti explorer will use the Process Engine with name "default" -> you're creating a "newProcessEngineConfiguration" bean, with those beans wired. instead, alter the existing processEngineConfiguration xml…