Difference between revisions of "Rule"

From ADempiere
Jump to: navigation, search
This Wiki is read-only for reference purposes to avoid broken links.
m
m (added categories)
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
You can create the rule from ADempiere menu: [[Application Dictionary]] >> [[Rule]]. Once you create the rule, you can use this rule when you define a Callout, Model Validator or Process.  
 
You can create the rule from ADempiere menu: [[Application Dictionary]] >> [[Rule]]. Once you create the rule, you can use this rule when you define a Callout, Model Validator or Process.  
  
 +
[[Script_Editor_Tool|Script editing tool]] will help you to write desired script.
 
== Sample Rule and its Script ==
 
== Sample Rule and its Script ==
  
 
[[File:01_ScriptModelValidator.png]]
 
[[File:01_ScriptModelValidator.png]]
 +
 +
=See Also=
 +
* [[Script Editor Tool]]
 +
* [[Validation Rule]]
 +
*[[Script Callout]]
 +
*[[Script ModelValidatorLogin]]
 +
*[[Script_ModelValidator]]
 +
 +
[[Category:Development]]
 +
[[Category:Developer documentation]]
 +
[[Category:Application Dictionary]]
 +
[[Category:Table of Contents]]

Latest revision as of 21:56, 21 December 2010

Table of Contents{{#if: | | [[{{{2}}}]] }}{{#if: | | [[{{{3}}}]] }}{{#if: | | [[{{{4}}}]] }}{{#if: | | [[{{{5}}}]] }} | Rule{{#if: Validation Rule| | Validation Rule }} ⇒

Rules are business rules coded in scripts. Different types of scripting are are supported. You can create rules to be executed for some event occurs such as a field in the window changes (Callouts), a table record change ModelValidator Table Event, user logge in event ModelValidator Login Event, a document is processed ModelValidator Table Event or a process is triggered.

You can create the rule from ADempiere menu: Application Dictionary >> Rule. Once you create the rule, you can use this rule when you define a Callout, Model Validator or Process.

Script editing tool will help you to write desired script.

Sample Rule and its Script

01 ScriptModelValidator.png

See Also