An instance of an authored Entity whose state is maintained by the RuleSession.
|
||
Parameters: fieldName Type: string The name of the Field to return |
||
Description: Returns a Field object of the specified name |
||
Code Sample: var session = inrule.createRuleSession(); var entity1 = session.createEntity("Entity1"); |
|
||
Parameters: collectionName Type: string The name of the Collection to return |
||
Description: Returns a Collection of the specified name |
||
Code Sample: var session = inrule.createRuleSession(); var entity1 = session.createEntity("Entity1"); |
|
||
Description: Returns the object bound to the current Entity |
||
Code Sample: var session = inrule.createRuleSession(); |
|
||
Description: Returns a string of the Entity's name |
||
Code Sample: var session = inrule.createRuleSession(); |
|
||
Description: The element identifier which uniquely identifies this Entity within its RuleSession |
||
Code Sample: var session = inrule.createRuleSession(); |
|
||
Description: Returns a boolean indicating whether or not the current Entity is valid based on the rules that were executed. If rules have not been applied, this will always return True. |
||
Code Sample: var session = inrule.createRuleSession(); var entity1 = session.createEntity("Entity1"); |
|
||
Parameters: name Type: string The name of the RuleSet to execute
arguments Type: Array of object An Array of values to pass to the RuleSet. The values are bound to the arguments by ordinal positioning. If an argument is an Entity, the value passed to it will be used as the Entity's bound value. If the RuleSet does not have parameters, pass an empty array.
callback Type: function(log) A JavaScript function accepting a RuleExecutionLog object as its parameter |
||
Description: Executes the Rule Set with the specified name on the Entity. If arguments are provided they are passed to the Rule Set. |
||
Code Sample: var session = inrule.createRuleSession(); |
|
||
Description: Returns an AuthoringMetadata object for the Rule Application |
||
Code Sample: var session = inrule.createRuleSession(); |
Comments
0 comments
Please sign in to leave a comment.