2 Replies Latest reply on May 19, 2017 9:25 AM by Adam Lewis

    Triggering on Secure Binding Addresses Attribute

    Adam Lewis

      I've been having trouble mapping a specific Business Application. I upload the tpl file and the trigger always fails.  I've had this problem once before while triggering on secure_binding_addresses.  Any tips?

       

      Thanks, Adam

        • 1. Re: Triggering on Secure Binding Addresses Attribute
          Andrew Waters

          You cannot do this because secure_binding_addresses is a list of strings, it is not a simple string, and hence you cannot match it.

           

          The best you can do is trigger on the type and existence of the value and then examine the binding addresses in the body.

          triggers

            on sc := SoftwareComponent created, confirmed where type = "Microsoft IIS Website" and secure_binding_addresses exists;

          end triggers;

          and

          body

            found := false;

            for secure_binding_address in sc.secure_binding_addresses do

              if secure_binding_address matches "(?i)Auhtorit" then

                found := true;

                break;

              end if;

            end for;

           

            if not found then

              stop;

            end if;

           

            ..... rest  of the body ....

          2 of 2 people found this helpful
          • 2. Re: Triggering on Secure Binding Addresses Attribute
            Adam Lewis

            Andrew, 

             

            Thank you very much for your help!  Appreciate your time!

             

            -Adam