cancel
Showing results for 
Search instead for 
Did you mean: 

Where do I deploy the custom (package) class files for the Custom Process Step created using Eclipse.

mahboob
Champ in-the-making
Champ in-the-making
Where do I deploy the custom (package) class files, which were called from within the Overridden execute method.
In the example below I am referring to package com.MyCustomPackage.
Where do I deploy the class or Jar file of com.MyCustomPackage, so that activiti can pick it up while executing the process?



import com.MyCustomPackage;

public void execute(DelegateExecution pipeline) throws Exception {

   com.MyCustomPackage.MyClass objClass = new com.MyCustomPackage.MyClass();
   objClass.SomeMethod();
}


Thanks,
M
4 REPLIES 4

mahboob
Champ in-the-making
Champ in-the-making
Just to add, I am getting the error -> "Could not instantiate Class com.MyCustomPackage.MyClass"

Hi,

put it to the jvm (on which activiti is running) class path.
regards
Martin

usmanali7
Champ in-the-making
Champ in-the-making
Error while parsing: [validation set: 'activiti-executable-process'|Problem:'activiti-servicetask-result-var-name-with-delegate']:'resultvariableName' not supported for service tasks using 'class' or 'delegateExpression-[Extra info: processDefinitionId=RestProcess|ProcessDefinitionName=My Process||id=SyncWebCall||activitiName=Sync Web Call|](line:4, column:157)

'resultvariableName' not supported for service tasks using 'class' or 'delegateExpression