<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Workflow scripting: any way of knowing which transition is running OnExit?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117436230" />
  <subtitle>Workflow scripting: any way of knowing which transition is running OnExit?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117436230</id>
  <updated>2026-04-07T23:16:38Z</updated>
  <dc:date>2026-04-07T23:16:38Z</dc:date>
  <entry>
    <title>RE: Workflow scripting: any way of knowing which transition is running OnEx</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117439519" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117439519</id>
    <updated>2019-10-12T16:35:27Z</updated>
    <published>2019-10-12T16:35:27Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;br&gt;You can try&amp;nbsp;WorkflowLogManagerUtil and get the Logs of what all user is done , for specific LogType may be u can pass logTypes as&amp;nbsp; below types&lt;br&gt;ACTION_EXECUTION, NODE_ENTRY, NODE_EXIT, TASK_ASSIGNMENT, TASK_COMPLETION,&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;TASK_UPDATE, WORKFLOW_INSTANCE_END, WORKFLOW_INSTANCE_START&amp;nbsp;&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;amp;nbsp;WorkflowLogManagerUtil.getWorkflowLogsByWorkflowInstance(companyId, workflowInstanceId, logTypes, start, end, orderByComparator)

&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-10-12T16:35:27Z</dc:date>
  </entry>
  <entry>
    <title>Workflow scripting: any way of knowing which transition is running OnExit?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117436229" />
    <author>
      <name>Fernando Fernandez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117436229</id>
    <updated>2019-10-11T17:12:25Z</updated>
    <published>2019-10-11T17:12:25Z</published>
    <summary type="html">Hi guys,&lt;br /&gt;I&amp;#39;m groovy scripting a task OnExit action and would like to know what transition the user has chosen. &lt;br /&gt;It seems it&amp;#39;s not included in the workflowContext object (LR 6.2 CE).&lt;br /&gt;Any ideas on how to get the user choice?&lt;br /&gt;TIA&lt;br /&gt;Fernando</summary>
    <dc:creator>Fernando Fernandez</dc:creator>
    <dc:date>2019-10-11T17:12:25Z</dc:date>
  </entry>
</feed>
