shootsoft opened a new issue, #3820:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3820

   ### Describe the bug
   
   In Kogito's 1.44.0.Final, I have some custom events defined in workflow
   
   ```yaml
   events:
   - name: myCallbackEvent
     source: ""
     type: myCallbackEvent
   ...
   states:
   - name: OnCallbackEvent
     type: event
     onEvents:
     - eventRefs:
       - myCallbackEvent
       actions:
       - functionRef:
           ...
     transition: checkMyCallbackEvent
   ```
   
   These events are not start form the "start" point, but triggered through 
java code
   
   ```java
   var app = new StaticWorkflowApplication();
   var process = app.process(workflow);
   var model = new JsonNodeModel(...);
   var instance = process.createInstance(model);
   instance.start();
   instance.send(Sig.of(channel, eventData));
   ```
   
   Now, when I tried to upgarde to Kogito 10.0.0, my application started to 
fail at this line
   
   ```
   var process = app.process(workflow);
   ```
   
   With error 
   
   ```
   java.lang.IllegalStateException: Process could not be validated ![Process 
'MyWorkflow' [MyWorkflow]: Node 'OnCallbackEvent' [58] Embedded subprocess does 
not have incoming connection....
   
        at 
org.jbpm.ruleflow.core.RuleFlowProcessFactory.validate(RuleFlowProcessFactory.java:244)
        at 
org.kie.kogito.serverless.workflow.parser.ServerlessWorkflowParser.parseProcess(ServerlessWorkflowParser.java:173)
        at 
org.kie.kogito.serverless.workflow.parser.ServerlessWorkflowParser.getProcessInfo(ServerlessWorkflowParser.java:184)
        at 
org.kie.kogito.serverless.workflow.executor.StaticWorkflowApplication.createProcess(StaticWorkflowApplication.java:330)
        at 
org.kie.kogito.serverless.workflow.executor.StaticWorkflowApplication.process(StaticWorkflowApplication.java:283)
   
   ```
   
   How can I skip this validation with embedded mode in Kogito 10.0.0?
   
   ### Expected behavior
   
   No failures with Kogito 10.0.0 because they work well in 1.44.0
   
   ### Actual behavior
   
   _No response_
   
   ### How to Reproduce?
   
   _No response_
   
   ### Output of `uname -a` or `ver`
   
   _No response_
   
   ### Output of `java -version`
   
   17
   
   ### GraalVM version (if different from Java)
   
   _No response_
   
   ### Kogito version or git rev (or at least Quarkus version if you are using 
Kogito via Quarkus platform BOM)
   
   10.0.0
   
   ### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
   
   maven
   
   ### Additional information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to