AnsweredAssumed Answered

ActivitiEngine Java API and Service Tasks (JavaDelegate)

Question asked by skalex on Oct 29, 2014
Latest reply on Oct 31, 2014 by skalex
Hi,
I've been working with activiti-explorer and Service Tasks with no problems including my jars as usual <tomcat>/activiti-explorer/WEB-INF/lib/my.jar

This time, i'm using activiti through the ActivitiEngine Java Api (No activiti-explorer/activiti-rest actually deployed on the server). The engine is setup through a maven pom in a single Eclipse Java EE project and i'm using a activity.cfg.xml located in a folder in this java ee project.

POM:

    <dependency>
      <groupId>org.activiti</groupId>
      <artifactId>activiti-engine</artifactId>
      <version>${activiti-version}</version>
    </dependency>
    <dependency>
      <groupId>org.activiti</groupId>
      <artifactId>activiti-explorer</artifactId>
      <version>${activiti-version}</version>
    </dependency>    
    <dependency>
      <groupId>org.activiti</groupId>
      <artifactId>activiti-rest</artifactId>
      <version>${activiti-version}</version>
    </dependency>    
    <dependency>
      <groupId>org.activiti</groupId>
      <artifactId>activiti-spring</artifactId>
      <version>${activiti-version}</version>
    </dependency>


Everything works fine without deployed activiti-explorer and activiti-rest WARs  (Users, processes, instances and user tasks)  but i'm getting ClassNotFound for my JavaDelegate implementations.
These delegates are in a separated package, but in the same java ee project

Shouldn't it be able to load these classes ? everything is in the same project that's why I don't understand what's wrong.

I'm attaching two images, the first one shows in green the working code using activiti engine and in red the delegate class that cannot be loaded (referenced as shown in the second image)

Image 1:
[img]http://s29.postimg.org/7yt5zt0hf/activiti_1.jpg[/img]

Image 2:
[img]http://s22.postimg.org/bbtomi4hp/activiti_2.jpg[/img]

Any ideas on how should I proceed? Thanks in advance.

Outcomes