cancel
Showing results for 
Search instead for 
Did you mean: 

Need training materials (NOT Activiti In Action)

rpolunsky
Champ in-the-making
Champ in-the-making
I need to learn Activiti as my company will be adopting it for workflow development.  I keep hitting walls with the Activiti In Action book - the code was lacking necessary import statements, and now Listing 1.4 compiles but the process cannot be started throwing a groovy-related error that indicates the ISBN variable was not correctly passed into the process.

Is there a better ground-up training source?
16 REPLIES 16

user1507
Champ in-the-making
Champ in-the-making
The problem in the non-maven project seems to be in the beans.xml file:
<java>
     <interceptors>
  <class>org.activiti.cdi.impl.annotation.StartProcessInterceptor</class>
  <class>org.activiti.cdi.impl.annotation.CompleteTaskInterceptor</class>
</interceptors>
  </java>

I didn´t understand yet why in the maven project works and why in a regular Java web project doesn´t.
The error:
15:42:47,743 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."teste-sem-maven.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."teste-sem-maven.war".WeldService: org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.ClassNotFoundException: org.activiti.cdi.impl.annotation.StartProcessInterceptor from [Module "deployment.teste-sem-maven.war:main" from Service Module Loader]; location: <class>org.activiti.cdi.impl.annotation.StartProcessInterceptor</class> in vfs:/C:/jboss-as-web-7.0/standalone/deployments/teste-sem-maven.war/WEB-INF/beans.xml@7]

user1507
Champ in-the-making
Champ in-the-making
Hello,
English is not my native language; please excuse typing errors.
It´s really strange. I did some research and "unmaved" the project, but it just don´t work.The error is basically what I wrote above.
Is there other source codes without Maven? I really want to learn how to use Activiti, but everywhere where I search I just see Maven projects. I can make them work properly - as Maven projects, and I would like to make a Activiti project without Maven nature to work, because this is the way I need to use in the future. It seems Maven is not only controlling the libs - because I checked all them, one by one.
My basic two questions would be: in this project that I unmaved, what are the others changes needed to be done - besides disable the maven nature of the project and add the libs to the classpath.
And the second question, is Activiti such tied to Maven? Because I just can´t find nothing related to Activiti without it.
Thanks…

trademak
Star Contributor
Star Contributor
No Activiti is not tied to Maven at all, it just makes life a bit easier.
When you add the necessary libraries to your project it should just work.
What's the problem you are experiencing?
Which components of Activiti are you using?

Best regards,

user1507
Champ in-the-making
Champ in-the-making
Hello,

Nice to hear is not so tied, here where I work we don´t use Maven, but we are studying Activiti and planning to use it a lot.

I am using the activiti-cdi and the activiti-engine. The project is a project of your book: book-cdi-app. I can make it work easily using Maven, but without it I am having problems. The libs I am using are all in one of my previous posts - I just changed the versions of some jars to match the exactly jar file Maven was using - for example I was using activi-engine-5.13 and now I am using 5.9.

I am trying in two different ways:

The first project is a copy paste of a Maven Project that I was working (book-cdi). I disabled the maven nature of it and added all the libs that Maven was adding. When I run the project the error I get in the log is in the file: error.txt. I am also in the Maven Forum so they are giving some hints so I can try to find out what is wrong.

In the second project I recreated a Java Web Project and edited it to match the maven project structure. The error I get in the log is in the file: error2.txt. From what I´ve been searching, in this project there is a jboss warning related to this: https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7
So I will try to also fix this.

The error seems to be related to beams.xml file, in its loading or compilation… I am doing some research to understand it better. If you can give me some hints I would appreciate.

Thanks for your attention.

user1507
Champ in-the-making
Champ in-the-making
Should I create a new topic?

trademak
Star Contributor
Star Contributor
Yes please create another topic. I see the following error:

java.lang.ClassNotFoundException: org.activiti.cdi.impl.annotation.StartProcessInterceptor

Are you sure the activiti-cdi JAR is on the classpath?

Best regards,

user1507
Champ in-the-making
Champ in-the-making
Hello Tij,

I found today a different way to add the jars and it is working. It was really quick, all I have to do was to add a Web App Library in the build path and then copy the jars to  web-inf/lib.  Now, my idea is to make the application work on Tomcat - I'm using Jboss 7.0.
After completing this, I will integrate Activiti with Liferay using Liferay users in a Activiti workflow .

Thanks for your attention