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

Creating a new process with "-" in VSCode generates incorrect Process ID

XMLWordPrintable

    • False
    • False
    • Undefined
      • create a new bpmn file in VScode with name "my-process.bpmn"
      • start quarkus.
    • ---
    • ---
    • 2021 Week 10-12 (from Mar 8)

      By default, the tooling is generating a process-id that is invalid to the runtime.

       

      In VSCode, if you create a process with "-" in the filename,  i.e., "my-process", the editor is generating an invalid process ID "my-process". The IDs "myprocess" or "my_process" would be valid IDs.

       

      See example in the screenshots. 

      Image: error.png -> file created in VSCode. Notice the process ID and the error in the logs.

      Caused by: java.lang.IllegalArgumentException: Process id 'My-process' is not valid

       

      Images: no-error1 and no-error2 - > process ID name changed, removed the - from the name. Notice the error no longer shows up.

        1. error.png
          error.png
          343 kB
        2. no-error1.png
          no-error1.png
          320 kB
        3. no-error2.png
          no-error2.png
          342 kB

              josephblt Wagner Lemos (Inactive)
              kvarela@redhat.com Karina Varela (Inactive)
              Dominik Hanak Dominik Hanak
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: