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

      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

              Assignee:
              brian.chan Brian Chan
              Reporter:
              marcellus.tavares Marcellus Tavares
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 46 weeks, 1 day ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.X EE
                  7.0.0 M1