-
Notifications
You must be signed in to change notification settings - Fork 5
Rule examples
Krzysztof Słysz edited this page Dec 7, 2021
·
5 revisions
Rules for data where id > 0:
{
"rules": [
["id", ">", 0]
]
}
Rules for data where tagId == 5:
{
"rules": [
["tagId", "==", 5]
]
}
Rules for data where owner contains "robot":
{
"rules": [
["owner", "like", "%admin%"]
]
}
Rules for only reserved data:
{
"rules": [
["reserved", "==", true]
]
}
Rules for data where properties does not contain "black":
{
"rules": [
["properties", "!like", "%black%"]
]
}
Data is created by "userA" or "userB":
{
"rules": [
["createdBy", "in", ["userA", "userB"]]
]
}
Date "execution" is after or equal first of January 2000, 14:30 (expected Zulu time):
{
"rules": [
["$.execution", ">=", "2000-01-01T14:30:00.000Z"]
]
}
Rules for data where the property "$.oboarded" exists and the value is true:
{
"rules": [
["$.onboarded.exists()", "==", true],
["$.onboarded", "==", true]
]
}
Rules for data where the property "$.name" matches regular expression, case insensitively:
{
"rules": [
["$.name", "~*", "j.*n"]
]
}
Rules for data where the property "$.name" does not contain a, b or c character:
{
"rules": [
["$.name", "!similar", "%(a|b|c)%"]
]
}
Rules for data where the property "$.purchaseDate" is less than current date minus one day:
{
"rules": [
["$.purchaseDate::timestamp", "<", "#func:NOW() - INTERVAL '1 DAY'"]
]
}
Wiki
Work in the project
- Navigation
- Searching
- Filtering
- Create/modify/remove data
- Data reservation
- Data details
- Data history
- Tasks execution
- Data export
Project settings
Management
API