07-07-2022 05:23 PM
Hi,
Please help. I developed an Spring Bean JAR for APS 2.1 and it work perfec when callin to Expresions in Service Task.
The Jar is in <aps-install>/webapps/activiti-app/WEB-INF/lib
This works ok.
I replied the JAR in Activiti 6.0.0 installation(<activiti-install>/webapps/activiti-app/WEB-INF/lib) and get this error:
Caused by: org.activiti.engine.ActivitiException: Unknown property used in expression: ${helloWorldService.customGreeting(execution,'Service Task 1')}
The process BPMN is the same in APS and Activiti.
Please can give me a guide to configure the JAR in activiti app.
Thanks in advace.
Note, this is my pom.xml:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.1.6.RELEASE</version>
</parent>
<properties>
<assembly.skipAssembly>true</assembly.skipAssembly>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<start-class>demo.Application</start-class>
<java.version>1.8</java.version>
<activiti.version>5.17.0</activiti.version>
</properties>
<dependencies>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>spring-boot-starter-basic</artifactId>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>com.activiti</groupId>
<artifactId>activiti-app-logic</artifactId>
<version>1.11.0</version>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-app-data</artifactId>
<version>6.0.0.Beta1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Explore our Alfresco products with the links below. Use labels to filter content by product module.