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

  • Home
  • SEARCH
  • 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 7913653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:53:45+00:00 2026-06-03T13:53:45+00:00

I have rule configuration on UI which builds to Java POJO. How could I

  • 0

I have rule configuration on UI which builds to Java POJO. How could I generate Drools DRL (to be passed to other component which will match facts, etc and returns true or false if rule matches).

Also I receive DRL file from database and in order to show rule on UI, I need to convert back to Java POJO.

Basiclly is there any tool or script that could convert between Java POJO and Drools DRL file? If not, what is the best way available?

Thanks much!

  • 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-06-03T13:53:46+00:00Added an answer on June 3, 2026 at 1:53 pm

    I am not sure what are your Java POJOs? Are they representing Rules, Patterns, Constraints, etc?

    If so, Drools has an internal canonical model for representing all types of knowledge assets [1]. We do not recommend using it directly though, as it is an internal API and subject to change.

    Another option for you is to use the actual rule descriptor builder API [2] to generate your rules dynamically [3].

    Finally, if you have a web based UI and you want to allow users to author your rules in there, you have the option to embed guvnor’s rule editor into your own application [4].

    Hope this helps.

    [1] https://github.com/droolsjbpm/drools/tree/master/drools-compiler/src/main/java/org/drools/lang/descr

    [2] https://github.com/droolsjbpm/drools/tree/master/drools-compiler/src/main/java/org/drools/lang/api

    [3] https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/lang/api/DescrBuilderTest.java

    [4] http://www.plugtree.com/guvnor-embed-asset%E2%80%99s-editor-in-your-application/

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

Sidebar

Related Questions

I have the following rule in Yacc out of which I want to make
I have set up a ruleset in my configuration file which has two validators,
I have a rule to my blog posts that is: p + p {
I have a Rule model that references a Question model using a question_id field.
I have validation rule that does not validate as true, and I can't see
I have a rule in my Global.asax like so: RouteTable.Routes.MapPageRoute(defaultRoute, {*value}, ~/default.aspx) Essentially, any
I have a rule, that gets up to three parts, separated by a /
I have this rule: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !index.php RewriteRule ^(.*)$ index.php?req=$1
Assuming we have the rule: a: b c d e and b , c
In my global.asax.vb I have a rule like so: RouteTable.Routes.MapPageRoute(defaultRoute, {*value}, ~/default.aspx) So, if

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.