AnsweredAssumed Answered

Java service task

Question asked by ddtnero on Mar 10, 2012
Latest reply on Mar 13, 2012 by trademak
Hi activiti community, I've a problem with java service task.
I'm trying to include a java class in my activiti project but I can not.
For understand the problem I wanna make an example.
If I have a class in myPROJE/src/mail/java called Operation and this class have a method called Print(), how can I call this class in the service?
I try:

<serviceTask id="javaService"
             name="My Java Service Task"
             activiti:expression="#{Operation.Print()}" />

or:

<serviceTask id="javaService"
             name="My Java Service Task"
             activiti:expression="#{myPROJE/src/mail/java/Operation.Print()}" />

The class operation has only one method. Do I Must move the class in a directory? Can you write a tag for invoke the method for me please?

Outcomes