Details

    • Sprint:
      2019 Week 47-49 (from Nov 18), 2019 Week 50-52 (from Dec 9), 2020 Week 01-03 (from Dec 30), 2020 Week 04-06 (from Jan 20)
    • Steps to Reproduce:
      Hide

      1) Create a simple Kogito project in VSCode.
      2) Create a BPMN file in `src/main/resources`.
      3) Open the file in the Kogito Process Editor.
      4) Save the file.
      5) Run the Kogito application with `mvn clean compile quarkus:dev`

      Show
      1) Create a simple Kogito project in VSCode. 2) Create a BPMN file in `src/main/resources`. 3) Open the file in the Kogito Process Editor. 4) Save the file. 5) Run the Kogito application with `mvn clean compile quarkus:dev`

      Description

      As discussed with Kriss, Name and Id should be set as filename, this ticket will prepare the code so that when API is ready from App former and it returns the file name, we can just change a couple of lines (Jaime)

      BPMN/BPMN2 files created in VSCode can not be executed by Kogito runtimes. The `Process ID` generated by the editor is not valid. The validation of process id in the context of Kogito should be more strict (that the 7.x validation) as the id is used in the code generation. So we shouldn't just make sure the generated default is valid, but also that the user can only put in valid characters.

      12:25:55,781 ERROR [io.qua.dev.DevModeMain] Failed to start quarkus: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
              [error]: Build step io.quarkus.kogito.deployment.KogitoAssetsProcessor#generateModel threw an exception: java.lang.IllegalArgumentException: Process id '_727ADCB4-28EB-4B46-A932-EE98CB6A93E8' is not valid
              at org.kie.kogito.codegen.process.ProcessGenerator.<init>(ProcessGenerator.java:108)
              at org.kie.kogito.codegen.process.ProcessCodegen.generate(ProcessCodegen.java:246)
              at org.kie.kogito.codegen.process.ProcessCodegen.generate(ProcessCodegen.java:65)
              at org.kie.kogito.codegen.ApplicationGenerator.lambda$generateComponents$7(ApplicationGenerator.java:209)
              at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267)
              at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
              at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
              at org.kie.kogito.codegen.ApplicationGenerator.generateComponents(ApplicationGenerator.java:210)
              at org.kie.kogito.codegen.ApplicationGenerator.generate(ApplicationGenerator.java:195)
              at io.quarkus.kogito.deployment.KogitoAssetsProcessor.generateModel(KogitoAssetsProcessor.java:152)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at io.quarkus.deployment.ExtensionLoader$1.execute(ExtensionLoader.java:930)
              at io.quarkus.builder.BuildContext.run(BuildContext.java:415)
              at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
              at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2011)
              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1535)
              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1426)
              at java.lang.Thread.run(Thread.java:748)
              at org.jboss.threads.JBossThread.run(JBossThread.java:479)
      
              at io.quarkus.runner.RuntimeRunner.run(RuntimeRunner.java:149)
              at io.quarkus.dev.DevModeMain.doStart(DevModeMain.java:180)
              at io.quarkus.dev.DevModeMain.start(DevModeMain.java:94)
              at io.quarkus.dev.DevModeMain.main(DevModeMain.java:66)
      Caused by: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
              [error]: Build step io.quarkus.kogito.deployment.KogitoAssetsProcessor#generateModel threw an exception: java.lang.IllegalArgumentException: Process id '_727ADCB4-28EB-4B46-A932-EE98CB6A93E8' is not valid
              at org.kie.kogito.codegen.process.ProcessGenerator.<init>(ProcessGenerator.java:108)
              at org.kie.kogito.codegen.process.ProcessCodegen.generate(ProcessCodegen.java:246)
              at org.kie.kogito.codegen.process.ProcessCodegen.generate(ProcessCodegen.java:65)
              at org.kie.kogito.codegen.ApplicationGenerator.lambda$generateComponents$7(ApplicationGenerator.java:209)
              at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267)
              at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
              at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
              at org.kie.kogito.codegen.ApplicationGenerator.generateComponents(ApplicationGenerator.java:210)
              at org.kie.kogito.codegen.ApplicationGenerator.generate(ApplicationGenerator.java:195)
              at io.quarkus.kogito.deployment.KogitoAssetsProcessor.generateModel(KogitoAssetsProcessor.java:152)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at io.quarkus.deployment.ExtensionLoader$1.execute(ExtensionLoader.java:930)
              at io.quarkus.builder.BuildContext.run(BuildContext.java:415)
              at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
              at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2011)
              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1535)
              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1426)
              at java.lang.Thread.run(Thread.java:748)
              at org.jboss.threads.JBossThread.run(JBossThread.java:479)
      
              at io.quarkus.builder.Execution.run(Execution.java:108)
              at io.quarkus.builder.BuildExecutionBuilder.execute(BuildExecutionBuilder.java:121)
              at io.quarkus.deployment.QuarkusAugmentor.run(QuarkusAugmentor.java:115)
              at io.quarkus.runner.RuntimeRunner.run(RuntimeRunner.java:110)
              ... 3 more
      Caused by: java.lang.IllegalArgumentException: Process id '_727ADCB4-28EB-4B46-A932-EE98CB6A93E8' is not valid
              at org.kie.kogito.codegen.process.ProcessGenerator.<init>(ProcessGenerator.java:108)
              at org.kie.kogito.codegen.process.ProcessCodegen.generate(ProcessCodegen.java:246)
              at org.kie.kogito.codegen.process.ProcessCodegen.generate(ProcessCodegen.java:65)
              at org.kie.kogito.codegen.ApplicationGenerator.lambda$generateComponents$7(ApplicationGenerator.java:209)
              at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267)
              at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
              at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
              at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
              at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
              at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
              at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
              at org.kie.kogito.codegen.ApplicationGenerator.generateComponents(ApplicationGenerator.java:210)
              at org.kie.kogito.codegen.ApplicationGenerator.generate(ApplicationGenerator.java:195)
              at io.quarkus.kogito.deployment.KogitoAssetsProcessor.generateModel(KogitoAssetsProcessor.java:152)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at io.quarkus.deployment.ExtensionLoader$1.execute(ExtensionLoader.java:930)
              at io.quarkus.builder.BuildContext.run(BuildContext.java:415)
              at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
              at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2011)
              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1535)
              at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1426)
              at java.lang.Thread.run(Thread.java:748)
              at org.jboss.threads.JBossThread.run(JBossThread.java:479)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jenrique Jaime Enriquez
                  Reporter:
                  McCloud Duncan Doyle
                  Tester:
                  Dominik Hanak
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: