Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6102505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:37:18+00:00 2026-05-23T13:37:18+00:00

I am building a validation policy, the rule sets will validate the xml document

  • 0

I am building a validation policy, the rule sets will validate the xml document I passed in, raise different kind of validation errors if anything invalid is found. However, I want to buld one additional rule that says ‘if no validation error is found, do something’. Is it possible to archieve this and how?

i.e. rule looks like this

if doc.firstname=dog
then isDocumentValidate=false; failedReason=’must be a human’
if doc.age=0
then isDocumentValidate=false; failedReason=’must be an adult’
if isDocumentValidate=true
then doSomething

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:37:19+00:00Added an answer on May 23, 2026 at 1:37 pm

    Yes, you can set a priority on each rule within the policy (click on the rule and examine its properties). The rules will execute from the highest priority number to the lowest. You can also use negative numbers. After you “invalidate” a document, you can stop firing additional rules (example of this here).

    However for your example, if possible I would suggest that you have the default value for isDocumentValidate=true, and the BRE will only need to worry about changing the value on invalid instances.

    A rule with an condition of 1 is equal to 1 will always be true. Have that rule be your lowest priority.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building up a library of filters for a validation class in PHP, some
I'm building an ASP.NET MVC application with a form that needs validation. The majority
Building the same project (without any changes) produces binary different exe-files: some small regions
When building projects in C++, I've found debugging linking errors to be tricky, especially
Im building a web application which is a process management app. Several different employee
I'm building a validation function for a particular enumeration data type. The validation function
I am building a custom validation that checks a bank account number and sort
I'm building an API in C#, how should I return validation error messages when
I'm building a user panel, and having some problems with data validation. As an
Building on How Do You Express Binary Literals in Python , I was thinking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.