rule

Extends: edcEntity
Namespace: http://eurotech.com/edc/2.0
XML Schema: edc.xsd

A Rule represents an Esper rule. At a minimum a Rule is associated to an Account and must have a name when created.

XML

Elements

name (type) min/max
occurs
description
id (long) 1/1
accountId (long) 1/1
name (string) 0/1
description (string) 0/1
createdOn (dateTime) 0/1
createdBy (long) 1/1
modifiedOn (dateTime) 0/1
modifiedBy (long) 1/1
synchronizedOn (dateTime) 0/1
enabled (boolean) 1/1
query (string) 0/1
ruleActionConfigurations/ruleActionConfiguration (ruleActionConfiguration) 0/unbounded
optlock (int) 1/1 The optlock field is used to detect that this entity has not been modified by someone else. When updating an entity, first do a find to get the latest version of the entity and note the value of the optlock. Then in the update operation, set the optlock value to match the value that you found. If someone else has updated the entity between your find and update operations, the update will fail and the db/server will return an error.

See this stackoverflow question for more information on optimistic locking.

JSON

property type description
id id (long)
accountId accountId (long)
name name (string)
description description (string)
createdOn createdOn (dateTime)
createdBy createdBy (long)
modifiedOn modifiedOn (dateTime)
modifiedBy modifiedBy (long)
synchronizedOn synchronizedOn (dateTime)
enabled enabled (boolean)
query query (string)
ruleActionConfigurations array of ruleActionConfigurations/ruleActionConfiguration (ruleActionConfiguration)
optlock optlock (int) The optlock field is used to detect that this entity has not been modified by someone else. When updating an entity, first do a find to get the latest version of the entity and note the value of the optlock. Then in the update operation, set the optlock value to match the value that you found. If someone else has updated the entity between your find and update operations, the update will fail and the db/server will return an error.

See this stackoverflow question for more information on optimistic locking.