-
1. Re: bpmn - error calling a process from another project
swiderski.maciej Nov 21, 2014 1:41 AM (in response to aha001)to be able to use reusable process it must be in the same kbase so you need to either define that in same project or refer one project from another one as dependency then both project assets will be merged into same kbase.
As an alternative way you can use REST work item to start second process via rest interface of kie-wd though it will not wait for the second process completion.
HTH
-
2. Re: bpmn - error calling a process from another project
aha001 Nov 23, 2014 11:10 PM (in response to swiderski.maciej)Hi Maciej,
Thanks for the response.
I added testProcessB as a dependency to testProcessA. When I deployed testProcessA, I could see both ProcessA and ProcessB process definition showed up. but when I ran the test I was still getting the same error.
Unexpected error encountered : [testProcessA.ProcessA:190 - Call Process B:2] -- Could not find process testProcessB.ProcessB
testProcessA/pom.xml
<?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <groupId>com.sample</groupId> <artifactId>testProcessA</artifactId> <version>1.0</version> <packaging>kjar</packaging> <name>testProcessA</name> <dependencies> <dependency> <groupId>com.sample</groupId> <artifactId>testProcessB</artifactId> <version>1.0</version> </dependency> </dependencies> <repositories> <repository> <id>guvnor-m2-repo</id> <name>Guvnor M2 Repo</name> <url>http://localhost:8080/jbpm-console/maven2/</url> </repository> </repositories> <build> <plugins> <plugin> <groupId>org.kie</groupId> <artifactId>kie-maven-plugin</artifactId> <version>6.1.0.Final</version> <extensions>true</extensions> </plugin> </plugins> </build> </project>
-
3. Re: bpmn - error calling a process from another project
swiderski.maciej Nov 24, 2014 1:31 AM (in response to aha001)you might be missing kbase include on your kmodule.xml. Take a look at this article that might be helpful.
HTH
-
4. Re: bpmn - error calling a process from another project
aha001 Nov 25, 2014 4:27 PM (in response to swiderski.maciej)Hi Maciej,
Following the instruction from the article work. Thanks very much.