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

Data Index support to consume deploy and undeploy events

XMLWordPrintable

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

      As discussed in https://issues.redhat.com/browse/SRVLOGIC-178, the Operator will send events to the Data Index for every workflow deployment / undeployment. This information will be used to mark the corresponding workflow definition as available/unavailable by using a "status" field that will be incorporated to the corresponding ProcessDefinition "metadata".

       

      e.g:

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

       

      While the registering of the ProcessDefinition metadata is already supported, modifications were done to internally store the metadata as a JSON value, and also to support Data Index queries by using the metadata.

      Interested parties can now query the information with example queries like these:

       

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

       

       

              ftirados Francisco Javier Tirado Sarti
              wmedvede@redhat.com Walter Medvedeo
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: