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

Serverless workflow runner POC

XMLWordPrintable

    • False
    • False

      Create a proof of concept for doing interpreted mode in kogito runtime ala

      https://github.com/krisv/kogito-apps/commit/c10b5e3309bfba2201ce01a30e7d183af2839b3a

      POC
      https://github.com/elguardian/jitexecutor-bpmn

       

      doc

      BPMN Runner

      Required a kafka server running in 9092 to execute StatelessProcessResourceTest

      bin/zookeeper-server-start.sh config/zookeeper.properties
      bin/kafka-server-start.sh config/server.properties
      

      create topics

      bin/kafka-topics.sh --create --topic applicants --bootstrap-server localhost:9092
      bin/kafka-topics.sh --create --topic decisions --bootstrap-server localhost:9092
      

      Usage

      java -Dorg.kie.deployment.path=<your deployment path> -jar target/workflow-runner.jar
      

      Deployment

      cp <sw.json> <your deployment path>
      

      you will see:

      10:54:38 INFO  [or.ki.ko.ji.pr.JITProcessServiceImpl] (pool-7-thread-1) org.kie.kogito.jitexecutor.process.JITProcessServiceImpl
      10:54:38 INFO  [or.ki.ko.ji.pr.JITProcessServiceImpl] (pool-7-thread-1) building processes
      10:54:38 INFO  [or.ki.ko.ji.pr.JITProcessServiceImpl] (pool-7-thread-1) creating process definition for File [applicantworkflow.sw.json]
      10:54:38 INFO  [or.ki.ko.ji.pr.JITProcessServiceImpl] (pool-7-thread-1) deployed processes are: applicantworkflow
      10:54:38 INFO  [or.ki.ko.ji.pr.KafkaManager] (pool-7-thread-1) subscribing to kafka topic applicants
      

      you can add additional deployments anytime

              rhn-support-egonzale Enrique Gonzalez Martinez (Inactive)
              rhn-support-egonzale Enrique Gonzalez Martinez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: