Skip to content

Import drools docs (2/10) #4551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 100 commits into from
May 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
59de135
1. added a svg picture. 2. cleaned up some text
enzhao Nov 9, 2008
7f55f0c
small fixes to typos and docbook markups
enzhao Nov 21, 2008
5333828
small fixes
enzhao Nov 21, 2008
4597e3a
added two inkscaped diagrams
enzhao Nov 21, 2008
656f99d
image format small fix to enhance the rendering quality
enzhao Nov 21, 2008
44f3800
added some <code></code> markups
enzhao Nov 28, 2008
41d5f29
added drools-doc authoring guideline and cheat sheet, please feel fre…
enzhao Nov 28, 2008
1d92f29
<code></code> markups
enzhao Nov 28, 2008
2dee181
added <code></code> markups
enzhao Nov 28, 2008
00caa1a
- updated Drools Flow documentation
krisv Dec 5, 2008
54b0670
Updated the drools-api to examples in the documentations
Rikkola Dec 8, 2008
a1438d1
fixed malformed XML - can't put generics chevrons in code block (eith…
michaelneale Dec 9, 2008
a887c24
small adjustment
enzhao Dec 9, 2008
2adf9c0
adjusted css so that new logos show
enzhao Dec 9, 2008
7600c38
1. fixed the xml errors in example code
enzhao Dec 9, 2008
85709a7
fixed the drools logo size for introduction and solver
enzhao Dec 10, 2008
65b2508
Updated an image and some typos to examples in the documentations
Rikkola Dec 10, 2008
08dbd2c
initial fusion docs.
Dec 11, 2008
67343a6
git-svn-id: https://svn.jboss.org/repos/labs/labs/jbossrules/trunk@24…
Dec 11, 2008
4e1873c
tweaked AS version note
michaelneale Dec 12, 2008
265fbb9
fixed some wording
michaelneale Dec 12, 2008
e6da98b
added references chapter (init).
Dec 12, 2008
87fe0ec
structure for i18n later....need a tool to automatically generate .po…
enzhao Dec 13, 2008
1807eb4
- added more Drools Flow documentation
krisv Dec 20, 2008
33871b7
Documentation for guvnor eclipse integration
michaelneale Dec 23, 2008
fc77918
JBRULES-1907 Adding conf and properties to package builder.
michaelneale Jan 8, 2009
b183d78
- updated Drools Flow docs
krisv Jan 12, 2009
33d792e
- updated docs
krisv Jan 22, 2009
2cb23b2
doco tweaks
michaelneale Jan 27, 2009
d2ef5cf
doco updates for guvnor
michaelneale Jan 27, 2009
e845adb
updated the doco
michaelneale Jan 27, 2009
b3bf3b4
updated doco screenshots for 5
michaelneale Jan 27, 2009
197714c
Starting to write the docs on fusion
etirelli Jan 29, 2009
97e624c
Starting to write the docs on fusion
etirelli Jan 29, 2009
c4a089e
added "Citations" and "Show source of reference" sections
enzhao Jan 29, 2009
6d54ef3
wokring on docs
etirelli Jan 30, 2009
f54fc8f
working on docs
etirelli Jan 30, 2009
aaa8a6b
documenting type declaration
etirelli Jan 31, 2009
9e1388a
documenting type declaration
etirelli Feb 1, 2009
04bc48a
a few paragraphs about MinaTaskClient/Server
salaboy Feb 3, 2009
ae2f875
working on type declaration docs
etirelli Feb 4, 2009
433d955
working on type declaration docs
etirelli Feb 4, 2009
b628693
Detailed component interaction in human task
salaboy Feb 4, 2009
9bed167
updates on docs: changed the keywords section and added the Error Mes…
Feb 5, 2009
2d18f5f
working on docs
etirelli Feb 9, 2009
605f77f
Adding explanation on the interaction between 'from' and 'lock-on-act…
etirelli Feb 19, 2009
b3104f4
Adding acknowledgements section
etirelli Feb 19, 2009
caebe54
adding docs
etirelli Feb 20, 2009
d80aad1
https://jira.jboss.org/jira/browse/BRMS-29: Using a Maven profile to …
jervisliu Feb 23, 2009
8e80a32
GUVNOR-153 and more fixes for exporting
michaelneale Feb 26, 2009
a5b409b
for DT templates
michaelneale Mar 4, 2009
3f1faf0
added note for future change
michaelneale Mar 4, 2009
efe6d20
- added some more RuleFlow documentation
krisv Mar 8, 2009
7c6f9fd
Improving fusion docs
etirelli Mar 20, 2009
bb398fc
Adding docs
etirelli Mar 22, 2009
e17f35a
- updated process persistence docs
krisv Mar 22, 2009
b7e5a21
added quick start guide
mdproctor Mar 23, 2009
0b4e299
added quickstart to master
mdproctor Mar 23, 2009
6ca1bb0
- updated process persistence docs
krisv Mar 24, 2009
266fd92
more updated to quick start, including table formatting
mdproctor Mar 25, 2009
0ccf267
remvong .html, should never have been committed
mdproctor Mar 25, 2009
e32dd2c
more updates to quick start
mdproctor Mar 28, 2009
9944fcb
JBRULES-2019 Documentation patches for Drools Expert Chapter "Rule En…
mdproctor Mar 30, 2009
c92a0ea
JBRULES-2013 Documentation patches for Drools Expert
mdproctor Mar 30, 2009
a897878
JBRULES-1790 RuleAdministrator typo in documentation example
mdproctor Mar 30, 2009
d099b3f
JBRULES-1953 corrected escaping of curlies
michaelneale Mar 30, 2009
a430bbd
Adding docs and the EventProcessingOption configuration
etirelli Mar 30, 2009
0db77ab
- updated Drools Flow docs
krisv Mar 31, 2009
6511717
Improving docs
etirelli Mar 31, 2009
ca2ff82
Improving docs
etirelli Mar 31, 2009
9895b4b
Adding docs
etirelli Apr 2, 2009
9053b4e
Added What is new in Drools 5.0 to the documents
Rikkola Apr 5, 2009
35fcdc7
Added What is new in Drools 5.0 to the documents
Rikkola Apr 5, 2009
ca7ccea
Updated documents: Installation and Setup
Rikkola Apr 5, 2009
6428e1a
trying to bring up the table border.
enzhao Apr 5, 2009
6219b57
fix to the border width
enzhao Apr 5, 2009
cb0be89
- updated transaction docs
krisv Apr 5, 2009
0adcdc9
reverted back to hiddon borders
mdproctor Apr 6, 2009
fa5acb6
Install docs update
Rikkola Apr 14, 2009
b4cf95f
Updated Guvnor docs: Rule Agent to Knowledge Agent
Rikkola Apr 15, 2009
a0693c2
BRMS-29(SOA profile): updated SOA profile related files to sync with …
jervisliu Apr 16, 2009
a14f510
-more expert docs
mdproctor Apr 16, 2009
104fe73
-more expert docs
mdproctor Apr 16, 2009
0a429d8
-more expert docs
mdproctor Apr 16, 2009
dc50b25
-more expert docs
mdproctor Apr 16, 2009
3ac3817
-added images for type declarations
mdproctor Apr 16, 2009
eb18dcb
Updated rule agent to knowledge agent
Rikkola Apr 17, 2009
8e54fe6
Updated from drools 5.0.0.SNAPSHOT to 5.0.0
Rikkola Apr 17, 2009
b63308d
improvements
wlaun Apr 17, 2009
39152cb
Updated from drools 5.0.0.SNAPSHOT to 5.0.0. A small bug in the renam…
Rikkola Apr 17, 2009
570f722
Updated from drools 5.0.0.SNAPSHOT to 5.0.0. A small bug in the renam…
Rikkola Apr 17, 2009
b37cabc
improvements
wlaun Apr 17, 2009
0d22e8f
improvements
wlaun Apr 17, 2009
e8942cf
improvements
wlaun Apr 17, 2009
fbb54b6
improvements
wlaun Apr 17, 2009
0e73443
-fixed some logos
mdproctor Apr 17, 2009
4fda902
improvements
wlaun Apr 17, 2009
a2bbcc5
-added IDE to expert docs
mdproctor Apr 17, 2009
0d32a9b
-fixed some more docs
mdproctor Apr 17, 2009
f387791
-fixed missing images.
mdproctor Apr 17, 2009
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
181 changes: 181 additions & 0 deletions drools-docs/doc-authoring-guideline-and-cheatsheet.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
Drools Documentation Authoring Guideline and Cheat Sheet
========================================================

Guideline
=========
* please markup all package names, class names, method names, etc. with
<code></code>.

example:
<para>The <code>JavaDialectConfiguration</code> allows the compiler
and language levels to be supported. You can override by setting the
<code>drools.dialect.java.compiler</code> property in a
<code>packagebuilder.conf</code> file that the
<code>ChainedProperties</code> instance will find, or you can do it
at runtime as shown below.</para>

* please link svg image files instead of png bitmaps in the text whenever
possible.

* Please avoid using .bmp bitmaps, since it will bloat size of the end
doc. Use any image processing program such as GIMP to convert your bmp
images to png images first. Better yet, use any vector graphic program
such as InkScape to scan your bmp image and make a true svg image out
of it. But this approach may take time and effort, recommanded for
processing diagrams but not screenshots.


Cheat Sheet
===========

Text boxes implemented in the jboss docbook styles:
---------------------------------------------------
* <caution><para></para></caution>
* <important><para></para></important>
* <note><para></para></note>
* <tip><para></para></tip>
* <warning><para></para></warning>

Linking syntax in DocBook 5.0+:
-------------------------------
http://www.sagehill.net/docbookxsl/Db5Tools.html#Db5UnivLinking

Note: The jboss docbook xsl does not support docbook 5.0 syntax yet,
so please use the docbook 4.5 linking syntax for the links.

Markup program list or console output:
--------------------------------------

* as Example:

<example>
<title>Configuring the <code>JavaDialectConfiguration</code>
to use JANINO via a setter</title>

<programlisting><![CDATA[PackageBuilderConfiguration cfg = new PackageBuilderConfiguration( );
JavaDialectConfiguration javaConf = (JavaDialectConfiguration) cfg.getDialectConfiguration( "java" );
javaConf.setCompiler( JavaDialectConfiguration.JANINO );]]></programlisting>
</example>

* Simple (not as Example):

<programlisting ><![CDATA[ your code here... ]]></programlisting>


Link image files:
-----------------

* suitable for diagrams:

<figure>
<title>High-level View of a Rule Engine</title>
<mediaobject>
<imageobject>
<imagedata align="center"
fileref="images/Chapter-Rule_Engine/rule-engine-inkscape.svg"
format="SVG" contentwidth="540px" contentdepth="300px" />
</imageobject>
</mediaobject>
</figure>

* suitable for screenshots:

TODO


Lists
-----

* unnumbered list (bullets):

<itemizedlist>
<listitem> <para>Linear</para> </listitem>
...
</itemizedlist>

* numbered list:
<orderedlist>
<listitem> <para> Initialize the .... </para> </listitem>
...
</orderedlist>


Indexed terms:
-------------

<para>Drools implements and extends the
<indexterm><primary>Rete</primary></indexterm> Rete algorithm,
<indexterm><primary>Leaps</primary></indexterm> ...</para>


Citations:
---------
<para>To quote a Drools mailing list regular:
<blockquote>
<attribution>Dave Hamu</attribution>
<para>It seems to me
that in the excitement of working with rules engines, that people forget
that a rules engine is only one piece of a complex application or
solution. Rules engines are not really intended to handle workflow or
process executions nor are workflow engines or process management tools
designed to do rules. Use the right tool for the job. Sure, a pair of
pliers can be used as a hammering tool in a pinch, but that's not what
it's designed for.</para>
</blockquote>
</para>

You can see the effect of the above example code here:
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html/ch01.html#d0e231


Show source of reference:
-------------------------
<para>The term "Production Rule" originates from formal grammar - where it
is described as "an abstract structure that describes a formal language
precisely, i.e., a set of rules that mathematically delineates a (usually
infinite) set of finite-length strings over a (usually finite) alphabet"
(<ulink url="http://en.wikipedia.org/wiki/Formal_grammar">
<citetitle>wikipedia</citetitle>
</ulink>).
</para>

You can see the the effect of the above example code here:
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html/ch01.html#d0e41

You can of course combine the <blockquote>, <ulink> and <citetitle> together.


Footnotes:
----------
TODO


Callouts:
---------
TODO

======================================

I guess the "reference section" would be somehow like a bibliography
section in a book or paper. Here is the information I found for
bibliography markup:

http://www.docbook.org/tdg5/en/html/bibliography.html

But I'm not sure whether it is working with the JBoss customized XSLT
and CSS. If it looks too complex for you, just don't waste your time
and I'll try it out later and add the relevant information to the
cheatsheet.

For the "Definition/Concept", I found the <termdef> tag that might be
what you want:

http://www.docbook.org/tdg5/en/html/termdef.html

The example in the page looks not that complex. You can give it a try.
Be warned I've not tested it yet (have much to do in the office for
now), if this markup breaks the build, please let me know. (If it does
not break the build, but you do not see any obvious visual effect,
that means this tag is not defined the css. This is small problem and
you can keep using the markup. I'm into CSS these days and will sooner
or later update the Drools css for documentation.)
2 changes: 1 addition & 1 deletion drools-docs/docbook-style-drools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>drools-docs</artifactId>
<groupId>org.drools</groupId>
<version>5.0.0.SNAPSHOT</version>
<version>5.0.0</version>
</parent>

<groupId>org.drools</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ div.note h2, div.note p, div.tip h2, div.tip p, div.caution h2, div.caution p, d
height:89px;
width:310px;
float:left;
background:url(../images/community/drools_logo.png) top left no-repeat;
background:url(../images/drools_logo.png) top left no-repeat;
}

#title a.doc_href {
Expand Down
2 changes: 1 addition & 1 deletion drools-docs/docbook-xsl-drools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>drools-docs</artifactId>
<groupId>org.drools</groupId>
<version>5.0.0.SNAPSHOT</version>
<version>5.0.0</version>
</parent>

<groupId>org.drools</groupId>
Expand Down
2 changes: 1 addition & 1 deletion drools-docs/drools-docs-expert/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>drools-docs</artifactId>
<groupId>org.drools</groupId>
<version>5.0.0.SNAPSHOT</version>
<version>5.0.0</version>
</parent>

<artifactId>drools-docs-expert</artifactId>
Expand Down
35 changes: 35 additions & 0 deletions drools-docs/drools-docs-expert/src/main/docbook/de-DE/master.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>

<book version="5.0" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:svg="http://www.w3.org/2000/svg" xmlns:m="http://www.w3.org/1998/Math/MathML"
xmlns:html="http://www.w3.org/1999/xhtml" xmlns:db="http://docbook.org/ns/docbook">
<info>
<title>Drools Expert User Guide</title>

<releaseinfo>5.0.0</releaseinfo>

<author>
<personname>
<firstname>Mark</firstname>
<surname>Proctor</surname>
</personname>
</author>

<author>
<personname>
<firstname>Michael</firstname>
<surname>Neale</surname>
</personname>
</author>

<author>
<personname>
<firstname>Edson</firstname>
<surname>Tirelli</surname>
</personname>
</author>
</info>

<index />
</book>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<chapter version="5.0" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:m="http://www.w3.org/1998/Math/MathML"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:db="http://docbook.org/ns/docbook">
<title>Acknowledgements</title>

<section>
<title>Documentation</title>

<para>We would like to thank the following persons that contributed either
directly or indirectly in building the documentation that is presented
here. The list is presented in no particular order and the appreciation of
both the Drools team and the community is due.</para>

<itemizedlist>
<listitem>
<para>Peter Samouelian</para>
</listitem>
</itemizedlist>

<para>If you contributed to the project in some way and your name is not
listed above, please drop us a note with your name and e-mail and we will
gladly add it. </para>
</section>
</chapter>
Loading