cancel
Showing results for 
Search instead for 
Did you mean: 

How I can capture the action button

klebervz_
Confirmed Champ
Confirmed Champ

Hi, Guys

I created a EventListener to capture the attributes of a task when submitted, I managed to capture when the document type is equals DocumentRoute Example:

Serializable sml = doc.getPropertyValue("var_ReportCreatedWorkflow:reports");

Serializable sml1 = doc.getPropertyValue("var_ReportCreatedWorkflow:mission_comment");

How I can capture the action button? , I need to check if was clicked Done or Reject. What the attribute can I use to capture this action?

Thank You

4 REPLIES 4

Vladimir_Pasqui
Star Collaborator
Star Collaborator

Hi,

You can listen to events from org.nuxeo.ecm.platform.task.TaskEventNames

  • Reject: workflowTaskRejected
  • Accept: workflowTaskCompleted

to do the difference

Thanks for the reply,

You have all the documentations about event and listener here

klebervz_
Confirmed Champ
Confirmed Champ

I created a EventHandler with workflowTaskRejected </ event> workflowTaskCompleted </ event> when I click the buttons Done Or Reject the task always returns me the same event = workflowTaskCompleted, how could differentiate these actions? Anyone have another idea?