Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-2067

On entry/exit action of service task not getting triggered

XMLWordPrintable

    • Hide

      $ git clone https://github.com/kmacedovarela/kogito-sysout-servicetask-bug.git
      $ cd kogito-sysout-servicetask-bug
      $ mvn clean package
      $ java -jar target/sample-kogito-1.0-SNAPSHOT-runner.jar
      $ curl -X POST "http://localhost:8080/myprocess" -H "accept: application/json" -H "Content-Type: application/json" -d "{}"

      • Current the output:
        2020-05-01 00:28:01,793 INFO [org.acm.MyService] (executor-thread-1) Executing service. Log created by Logger
        Log written by sysout on script task
      • Expected output
        logging with sysout on entry action
        2020-05-01 00:28:01,793 INFO [org.acm.MyService] (executor-thread-1) Executing service. Log created by Logger
        logging with sysout on exit action
        Log written by sysout on script task
      Show
      $ git clone https://github.com/kmacedovarela/kogito-sysout-servicetask-bug.git $ cd kogito-sysout-servicetask-bug $ mvn clean package $ java -jar target/sample-kogito-1.0-SNAPSHOT-runner.jar $ curl -X POST "http://localhost:8080/myprocess" -H "accept: application/json" -H "Content-Type: application/json" -d "{}" Current the output: 2020-05-01 00:28:01,793 INFO [org.acm.MyService] (executor-thread-1) Executing service. Log created by Logger Log written by sysout on script task Expected output logging with sysout on entry action 2020-05-01 00:28:01,793 INFO [org.acm.MyService] (executor-thread-1) Executing service. Log created by Logger logging with sysout on exit action Log written by sysout on script task

      On entry/ on exit actions of a Service Task getting ignored.

      Codes on both actions not getting fired. The attached project uses "sysouts" to show this, while, the sysout within the service java class is properly logged using slfj.

      Also, notice "sysout" works as expected within a Script Task.

              cnicolai@redhat.com Cristiano Nicolai (Inactive)
              kvarela@redhat.com Karina Varela (Inactive)
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: