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

[SW] Make Kogito Images/CLI to build a Kogito Workflow project from a workflow definition file

XMLWordPrintable

    • False
    • False
    • Undefined
    • ---
    • ---
    • 2021 Week 07-09 (from Feb 15), 2021 Week 10-12 (from Mar 8), 2021 Week 13-15 (from Mar 29), 2021 Week 16-18 (from Apr 19), 2021 Week 19-21 (from May 10), 2021 Week 22-24 (from May 31)

      We aim for a better experience for our end users towards trying the Kogito Workflow engine.

      Today, to deploy a simple workflow in an OpenShift cluster, a user has to create a local maven project, add the workflow definition file to the resources folder and push the entire project with the kogito deploy <folder> command.

      To deliver a better experience, a user could create their own workflow definition via the VSCode plugin and push the file with kogito deploy <file.sw.json|yaml|yml.

      To cover this feature, we would need a Quarkus extension for kogito workflows or at least a kogito-serverless-workflow-bom module with the dependencies needed for a Kogito Workflow project. Our s2i builder image would then use this BOM to generate the maven project, compile the jar file, build, and push the image to the internal registry.

      We would need:

      1. Create the BOM module
      2. Adjust the s2i script in the kogito-images project to recognize an SW file and build it accordingly.

      One side note: A user could push multiple workflow definition files with the same command (with subflows, for example). So the command kogito deploy <folder> should be considered as well.

              rhn-support-zanini Ricardo Zanini
              rhn-support-zanini Ricardo Zanini
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: