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

HelloWorld SW fails to start unless a "workflowdata" a field is passed in the input json

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Trivial
    • None
    • None
    • None
    • False
    • False
    • Hide

      1) create an empty project with the most basic kogito deps for having SW.

      e.g. kogito-quarkus-serverless-workflow, etc.

       

      2) Create hello-world.sw.json file with the content of the helloworld process in

       https://github.com/serverlessworkflow/specification/blob/0.6.x/examples/README.md#Hello-World-Example

       

      3) start the app with quarkus:dev

       

      4) try to create an instance e.g. by using the swagger-ui

       

      5) when the process starts the following exception is thrown.

      https://gist.github.com/wmedvede/db2645f5179ad45dd99f96f6538a82b5

       

      some fragments here:

       

              at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
              at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
              at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: java.lang.NullPointerException
              at org.kie.kogito.serverless.workflow.actions.InjectAction.execute(InjectAction.java:57)
              at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(NodeInstanceImpl.java:238)
              ... 92 more

       

      The expected behavior is that the process must start with no issues.

      Note:  

      By passing the following input  {"workflowdata":{}} , the process starts well, however it must start well in all cases.

       

      Show
      1) create an empty project with the most basic kogito deps for having SW. e.g. kogito-quarkus-serverless-workflow, etc.   2) Create hello-world.sw.json file with the content of the helloworld process in   https://github.com/serverlessworkflow/specification/blob/0.6.x/examples/README.md#Hello-World-Example   3) start the app with quarkus:dev   4) try to create an instance e.g. by using the swagger-ui   5) when the process starts the following exception is thrown. https://gist.github.com/wmedvede/db2645f5179ad45dd99f96f6538a82b5   some fragments here:           at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)         at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)         at java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.lang.NullPointerException         at org.kie.kogito.serverless.workflow.actions.InjectAction.execute(InjectAction.java:57)         at org.jbpm.workflow.instance.impl.NodeInstanceImpl.executeAction(NodeInstanceImpl.java:238)         ... 92 more   The expected behavior is that the process must start with no issues. Note:   By passing the following input  {"workflowdata":{}} , the process starts well, however it must start well in all cases.  

    Description

      As new comer to the SW, I'd like to execute the SW's proposed as examples in the SW spec.

       

      Let's use the very first one:  https://github.com/serverlessworkflow/specification/blob/0.6.x/examples/README.md#Hello-World-Example

       

      Attachments

        Issue Links

          Activity

            People

              ftirados Francisco Javier Tirado Sarti
              wmedvede@redhat.com Walter Medvedeo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: