Uploaded image for project: 'Serverless logic'
  1. Serverless logic
  2. SRVLOGIC-347

Operator support to emit deploy and undeploy events when Data Index is available in a given namespace

XMLWordPrintable

    • Icon: Feature Feature
    • Resolution: Done
    • Icon: Major Major
    • 1.36.0
    • 1.33.0, 1.34.0, 1.35.0
    • Cloud:Operator
    • None

      When the Data Index is present, the SonataFlow operator must produce deployed/undeployed events for Data Index consumption. This information will be used to mark a ProcessDefinition as available/unavailable.

       

      After team discussion, we agreed to introduce a "status" field in the workflow definition metadata stored in the Data Index. When a workflow is deployed/undeployed, the operator will send a ProcessDefinition event to the Data Index, sending the following metadata as part of it.

       

      {
        "metadata" :
      { "status" : "available" }
      }
       
      {   "metadata" :
      { "status" : "unavailable" }
      }
       
      

       

      Interested parties can query that information using a Data Index query like this, e.g.:

      {
        ProcessDefinitions (
          where:{metadata: {status: {equal: "available"}}}
      ) {
          id
          metadata
        } 
        
      }
      
      {
      
        ProcessDefinitions (
          where:{metadata: {status: {equal: "unavailable"}}}
      ) {
          id
          metadata
        } 
        
      }

       

              wmedvede@redhat.com Walter Medvedeo
              wmedvede@redhat.com Walter Medvedeo
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: