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

[SW] Adjust the Knative Function definition to use the same interface as defined by the extension

    XMLWordPrintable

Details

    • 2023 Week 12-14 (from Mar 20), 2023 Week 15-17 (from Apr 10), 2023 Week 18-20 (from May 1)

    Description

      Although is not published yet, we should implement the initial draft of the Knative Functions definitions in the workflow: https://hackmd.io/caIcNikDSASCxTX51QJ53w:

      - name: processOrder
        operation: knative:services.v1.serving.knative.dev/default/processOrder?path=/init&asCloudEvent=false
        type: custom
       

      And to invoke the function:

      functions: 
      - name: processOrder
        operation: knative:services.v1.serving.knative.dev/default/processOrder?path=/init&asCloudEvent=false
        type: custom
      states: 
      - name: send event
        type: operation
        actions: 
          functionRef: 
            refName: processOrder
            arguments: 
              type: com.hospital.patient.heartRateMonitor
              source: hospitalMonitorSystem
              id: ${ }
              data: ${ . } 
      

      This is just an adjustment in the interface. Internally, it should work as it's today with discovery in-place based on the object definition.

      Attachments

        Issue Links

          Activity

            People

              hbelmiro@redhat.com Helber Belmiro
              rhn-support-zanini Ricardo Zanini Fernandes
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: