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.