cancel
Showing results for 
Search instead for 
Did you mean: 

TaskListener Logs could not be found on JBoss WildFly. Why?

sankarts
Champ in-the-making
Champ in-the-making
Hello,

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.

<userTask id="approved_task" name="Approved" activiti:assignee="kermit" activitiSmiley Tongueriority="7">
      <extensionElements>
        <activiti:taskListener event="create" class="my_activiti_proj.Approved_Task"></activiti:taskListener>
      </extensionElements>
</userTask>

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?

Thanks in advance.
4 REPLIES 4

trademak
Star Contributor
Star Contributor
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"?

Best regards,

sankarts
Champ in-the-making
Champ in-the-making
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" activitiSmiley Tongueriority="7">
      <extensionElements>
        <activiti:taskListener event="create" class="my_activiti_proj.Approved_Task"></activiti:taskListener>
      </extensionElements>
    </userTask>

sankarts
Champ in-the-making
Champ in-the-making
XML section from .bpmn file added.
<!–<userTask id="approved_task" name="Approved" activiti:assignee="kermit" activitiSmiley Tongueriority="7">
      <extensionElements>
        <activiti:taskListener event="create" class="my_activiti_proj.Approved_Task"></activiti:taskListener>
      </extensionElements>
    </userTask>–>

sankarts
Champ in-the-making
Champ in-the-making
Encountering problem while pasting XML section from .bpmn file.
So, attaching the complete BPMN file as text file.