RuleAction
class RuleAction
This class allows the storage and retrieval of the attributes of a action of a business rule.
Actions are the functional consequences of condition evaluation. If a rule condition is met, the corresponding actions are executed.
Actions are represented by setting attributes on data item, by displaying warning or error messages or by showing/hiding structural elements of the simulation page.
Properties
private int | $id | ||
private string | $name | ||
private string | $target | ||
private int | $data | ||
private int | $datagroup | ||
private string | $step | ||
private string | $panel | ||
private string | $fieldset | ||
private string | $column | ||
private string | $fieldrow | ||
private string | $field | ||
private string | $blockinfo | ||
private string | $chapter | ||
private string | $section | ||
private string | $prenote | ||
private string | $postnote | ||
private string | $action | ||
private string | $footnote | ||
private string | $choice | ||
private string | $value |
Methods
Constructor of class RuleAction
Returns the ID of this action
Returns the name of this action
Sets the name of this action
Returns the target of this action
Sets the target of this action
Returns the ID of the target data item of this action
Sets the ID of the target data item of this action
Returns the ID of the target data group of this action
Sets the ID of the target data group of this action
Returns the ID of the target step of this action
Sets the ID of the target step of this action
Returns the ID of the target panel of this action
Sets the ID of the target panel of this action
Returns the ID of the target field set of this action
Sets the ID of the target field set of this action
Returns the ID of the target column of this action
Sets the ID of the target column of this action
Returns the ID of the target field row of this action
Sets the ID of the target field row of this action
Returns the position of the target field of this action
Sets the position of the target field of this action
Returns the ID of the target block of info of this action
Sets the ID of the target block of info of this action
Returns the ID of the target chapter of this action
Sets the ID of the target chapter of this action
Returns the ID of the target section of this action
Sets the ID of the target section of this action
Returns the position of the field to which the target note of this action is attached
Sets the position of the field to which the target note of this action is attached
Returns the position of the field to which the target note of this action is attached
Sets the position of the field to which the target note of this action is attached
Returns the name of the target action button of this action
Sets the name of the target action button of this action
Returns the ID of the target footnote of this action
Sets the ID of the target footnote of this action
Returns the ID of the target choice of this action
Sets the ID of the target choice of this action
Returns the target ID of this action
Returns the value or message of this action
Sets the value or message of this action
Details
at line 211
void
__construct(int $id, string $name)
Constructor of class RuleAction
at line 223
int
getId()
Returns the ID of this action
at line 243
string
getName()
Returns the name of this action
The possible values are:
- notifyError: allows to define an error message associated with a data, a data group or all the data
- notifyWarning: allows to a warning message associated with a data item, data group, or all data. Unlike the error message, the warning message does not block the progress of the simulation
- hideObject: allows to hide an element of the simulation form
- showObject: allows you to show (display) an element of the simulation form
- setAttribute: allows to assign a value or the result of the evaluation of an expression to the content of a data item or to its default value, its minimum or maximum value, or to define the field of a data source feeding the data.
- unsetAttribute: deletes the contents of a data item. The data becomes "not filled".
at line 264
void
setName(string $name)
Sets the name of this action
The possible values are:
- notifyError: allows to define an error message associated with a data, a data group or all the data
- notifyWarning: allows to a warning message associated with a data item, data group, or all data. Unlike the error message, the warning message does not block the progress of the simulation
- hideObject: allows to hide an element of the simulation form
- showObject: allows you to show (display) an element of the simulation form
- setAttribute: allows to assign a value or the result of the evaluation of an expression to the content of a data item or to its default value, its minimum or maximum value, or to define the field of a data source feeding the data.
- unsetAttribute: deletes the contents of a data item. The data becomes "not filled".
at line 277
string
getTarget()
Returns the target of this action
The possible values are: 'data', 'datagroup', 'dataset', 'step', 'panel', 'fieldset', 'fieldrow', 'field', 'blockinfo', 'chapter', 'section', 'prenote', 'postnote', 'action', 'footnote', 'choice', 'content', 'min', 'max', 'index' or 'default'
at line 291
void
setTarget(string $target)
Sets the target of this action
The possible values are: 'data', 'datagroup', 'dataset', 'step', 'panel', 'fieldset', 'fieldrow', 'field', 'blockinfo', 'chapter', 'section', 'prenote', 'postnote', 'action', 'footnote', 'choice', 'content', 'min', 'max', 'index' or 'default'
at line 304
int
getData()
Returns the ID of the target data item of this action
Available if target is equal to 'data'
at line 316
void
setData(int $data)
Sets the ID of the target data item of this action
at line 329
int
getDatagroup()
Returns the ID of the target data group of this action
Available if target is equal to 'datagroup'
at line 341
void
setDatagroup(int $datagroup)
Sets the ID of the target data group of this action
at line 354
string
getStep()
Returns the ID of the target step of this action
Available if target is equal to 'step'
at line 366
void
setStep(string $step)
Sets the ID of the target step of this action
at line 379
string
getPanel()
Returns the ID of the target panel of this action
Available if target is equal to 'panel'
at line 391
void
setPanel(string $panel)
Sets the ID of the target panel of this action
at line 404
string
getFieldset()
Returns the ID of the target field set of this action
Available if target is equal to 'fieldset'
at line 416
void
setFieldset(string $fieldset)
Sets the ID of the target field set of this action
at line 429
string
getColumn()
Returns the ID of the target column of this action
Available if target is equal to 'column'
at line 441
void
setColumn(string $column)
Sets the ID of the target column of this action
at line 454
string
getFieldrow()
Returns the ID of the target field row of this action
Available if target is equal to 'fieldrow'
at line 466
void
setFieldrow(string $fieldrow)
Sets the ID of the target field row of this action
at line 479
string
getField()
Returns the position of the target field of this action
Available if target is equal to 'field'
at line 491
void
setField(string $field)
Sets the position of the target field of this action
at line 504
string
getBlockinfo()
Returns the ID of the target block of info of this action
Available if target is equal to 'blockinfo'
at line 516
void
setBlockinfo(string $blockinfo)
Sets the ID of the target block of info of this action
at line 529
string
getChapter()
Returns the ID of the target chapter of this action
Available if target is equal to 'chapter'
at line 541
void
setChapter(string $chapter)
Sets the ID of the target chapter of this action
at line 554
string
getSection()
Returns the ID of the target section of this action
Available if target is equal to 'section'
at line 566
void
setSection(string $section)
Sets the ID of the target section of this action
at line 579
string
getPrenote()
Returns the position of the field to which the target note of this action is attached
Available if target is equal to 'prenote'
at line 591
void
setPrenote(string $prenote)
Sets the position of the field to which the target note of this action is attached
at line 604
string
getPostnote()
Returns the position of the field to which the target note of this action is attached
Available if target is equal to 'postnote'
at line 616
void
setPostnote(string $postnote)
Sets the position of the field to which the target note of this action is attached
at line 629
string
getAction()
Returns the name of the target action button of this action
Available if target is equal to 'action'
at line 641
void
setAction(string $action)
Sets the name of the target action button of this action
at line 654
string
getFootnote()
Returns the ID of the target footnote of this action
Available if target is equal to 'footnote'
at line 666
void
setFootnote(string $footnote)
Sets the ID of the target footnote of this action
at line 679
string
getChoice()
Returns the ID of the target choice of this action
Available if target is equal to 'choice'
at line 691
void
setChoice(string $choice)
Sets the ID of the target choice of this action
at line 702
string
getTargetId()
Returns the target ID of this action
at line 743
string
getValue()
Returns the value or message of this action
Available if name is equal to 'notifyWarning', 'notifyError' or 'setAttribute'
at line 755
void
setValue(string $value)
Sets the value or message of this action