Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-43585

Unable to retrieve information of the task instance from the script context

    Details

    • Branch Version/s:
      6.2.x, 6.1.x
    • Backported to Branch:
      Committed
    • Fix Priority:
      3

      Description

      During the Kaleo Task node execution, specially after the task is completed (onExit), it's useful to have information about the user who completed the task. That support was added on LPS-42484. However, for that to work the KaleoTaskIntanceToken object needs also to be present on the ExecutionContext. This LPS fix this issue.

      The following script should output the user who completed the task.

      <action>
      	<name>approve</name>
      	<script>
      		<![CDATA[
      			println("Completion User: " + userId);
      		]]>
      	</script>
      	<script-language>groovy</script-language>
      	<execution-type>onExit</execution-type>
      </action>
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 30 weeks, 6 days ago