1 Reply Latest reply on Jan 20, 2019 7:14 PM by Rodlin

    Custom Rule with Scripted Rule Condition

    Rodlin Rookie

      Ran into problems in getting the Custom Rule with Scripted Rule Conditions.

      The details were the following

      - found the Scripted Rule evaluation result did not affect the behavior of the Custom Rule

      - the Scripted rule was simplified as single line of return vbFalse or vbTrue

      - the User privilege was set to allow Components>Network Connection

      - no matters the results was False or True, the testing user could configure the IP of the ethernet connection manually

      - attached were screenshot, VBscript and Rule Snippet

      Anyone had any comments/suggestions on

      - any experiences dealing with Scripted Rule

      - how to process next

      Thanks.

        • 1. Re: Custom Rule with Scripted Rule Condition
          Rodlin Rookie

          As one Support Engineer told me that the same VBScript under the "Customer Rule" as Condition was different from the Condition under the "Script Rule"... Could someone had any explanations/comments on why and what were the differences..

          --------- tested VBScript---------------

          Function ScriptedRule()

              ScriptedRule = FALSE

              'rem ScriptedRule = vbFalse

          End Function

          --------- tested VBScript---------------

          The same VBScript worked fine under the "Script Rule" as Condition, but failed under the "Customer Rule" as Condition

          ac_scripted_rule_sample_work.pngac_scripted_rule_options.png@