Being a beginner of Activit, I've deployed Activiti archives (both activiti-explorer.war & activiti-rest.war) on JBoss WildFly 8.1.0 server.
My Activiti Project includes Activity Diagram along with Task Listener class implementation. Upon certain condition (say for experenced candidates), the approved_task should get executed. XML section is as follows.
I am only logging in my Notify method & it looks like as below.
public class Approved_Task implements TaskListener { public void notify(DelegateTask delegateTask) { System.out.println("Inside notify method …."); LOGGER.info("TASK COMPLETE from Activiti " + delegateTask.toString()); } } I deploy my process & then start using Activiti Explorer. Though the process & tasks got completed, I could never find this log message in JBoss Wildfly log.
The class file say Approved_Task has been placed under WEB-INF\classes\my_activiti_proj\Approved_Task.class of "activiti-explorer.war".
1) Any clue what could be wrong? Why the logs are not present?
2) If I intend to persist into DB as part of "User Task", then how I can perform this user task using Activiti REST?
So the package of your task listener is my_activiti_proj? That's a very unusual package name. What do you mean with persist into DB as part of "User Task"?
So the package of your task listener is my_activiti_proj? That's a very unusual package name. [Shankar] Since I am trying with simple sample, I didn't pay much attention with package name. Let it be com.test.activit_sample.Approved_Task instead. I think it shouldn't matter.
What do you mean with persist into DB as part of "User Task"? [Shankar] With the user task "approved_task", I intend to insert the details (say employee details) into DB. The corresponding XML section is as below. <userTask id="approved_task" name="Approved" activiti:assignee="kermit" activitiriority="7"> <extensionElements> <activiti:taskListener event="create" class="my_activiti_proj.Approved_Task"></activiti:taskListener> </extensionElements> </userTask>