Hi,
I defined a JavaDelegate class following the steps detailed following documentation sections:
Writing a JavaDelegate and How to solve the error. However, the error reamins. What I did was:
-
Add a service task and set the class field to “org.flowable.CallTask”.
-
Extract my JavaDelegate class: right click on the class > Export > JAR file > (I selected the options “Export generated class files and resources” and “Export Java source files and resources”).
package org.flowable;
import org.flowable.engine.delegate.DelegateExecution; import org.flowable.engine.delegate.JavaDelegate; public class CallTask implements JavaDelegate { public void execute(DelegateExecution execution) { ... } }
-
Copy ithe JAR file to TOMCAT_HOME\wtpwebapps\flowable-app-rest\WEB-INF\lib .
-
Finally, I start the process from flowable-task application.
The error appears when the flow arribes to the serviceTask and the error is:
10:10:09,319 [flowable-async-job-executor-thread-1] ERROR org.flowable.job.service.impl.asyncexecutor.DefaultAsyncRunnableExecutionExceptionHandler - Job 240019 failed
org.flowable.engine.common.api.FlowableException: couldn't instantiate class org.flowable.CallTask
Any idea of what could be the problem?
Thanks,
Clara