You are reading the documentation for an outdated Corteza release. 2024.9 is the latest stable Corteza release.

Resource constraints

Low Code

Module (compose:module)

property

Description

module

Constraint checks the value against the module handle.

module.handle

Constraint checks the value against the module handle.

module.name

Constraint checks the value against the module name.

namespace

Constraint checks the value against the namespaces slug.

namespace.slug

Constraint checks the value against the namespaces slug.

namespace.name

Constraint checks the value against the namespaces name.

Namespace (compose:namespace)

property

Description

namespace

Constraint checks the value against the namespaces slug.

namespace.slug

Constraint checks the value against the namespaces slug.

namespace.name

Constraint checks the value against the namespaces name.

Page (compose:page)

property

Description

page

Constraint checks the value against the page’s handle.

page.handle

Constraint checks the value against the page’s handle.

page.title

Constraint checks the value against the page’s title.

namespace

Constraint checks the value against the namespaces slug.

namespace.slug

Constraint checks the value against the namespaces slug.

namespace.name

Constraint checks the value against the namespaces name.

Record (compose:record)

property

Description

record.updatedAt

Constraint checks the value against the record’s updatedAt attribute in RFC3339 format (example: 2006-01-02T15:04:05Z07:00)

record.createdAt

Constraint checks the value against the record’s createdAt attribute in RFC3339 format (example: 2006-01-02T15:04:05Z07:00)

record.deletedAt

Constraint checks the value against the record’s deletedAt attribute in RFC3339 format (example: 2006-01-02T15:04:05Z07:00)

record.values.*

Constraint checks the value against the record’s value. Any field defined by the record’s module can be used.

module

Constraint checks the value against the module handle.

module.handle

Constraint checks the value against the module handle.

module.name

Constraint checks the value against the module name.

namespace

Constraint checks the value against the namespaces slug.

namespace.slug

Constraint checks the value against the namespaces slug.

namespace.name

Constraint checks the value against the namespaces name.

System

application (system:application)

property

Description

application.name

Constraint checks the value against the application’s name.

auth (system:auth)

property

Description

user

Constraint checks the value against the user’s handle.

user.handle

Constraint checks the value against the user’s handle.

user.email

Constraint checks the value against the user’s email.

user (system:user)

property

Description

user

Constraint checks the value against the user’s handle.

user.handle

Constraint checks the value against the user’s handle.

user.email

Constraint checks the value against the user’s email.

role (system:role)

property

Description

role

Constraint checks the value against the role’s handle.

role.handle

Constraint checks the value against the role’s handle.

role.name

Constraint checks the value against the role’s name.

role member (system:role-member)

property

Description

user

Constraint checks the value against the user’s handle.

user.handle

Constraint checks the value against the user’s handle.

user.email

Constraint checks the value against the user’s email.

role

Constraint checks the value against the role’s handle.

role.handle

Constraint checks the value against the role’s handle.

role.name

Constraint checks the value against the role’s name.

sink (system:sink)

property

Description

request.remoteAddress

Constraint checks the value against the request’s remote address.

request.method

Constraint checks the value against the request’s method. The value can be any standard HTTP request method.

request.path

Constraint checks the value against the request’s URL path. For example, www.address.tld/some/path would require /some/path.

request.username

Constraint checks the value against the request’s basic authentication username.

request.password

Constraint checks the value against the request’s basic authentication password.

request.content-type

Constraint checks the value against the request’s content type header field.

request.get.*

Constraint checks the value against the request’s get query parameters. This will be truthy if any value matches in case of multiple query parameter values.

request.post.*

Constraint checks the value against the request’s post body parameters.

request.header.*

Constraint checks the value against the request’s header parameters.

mail (system:mail)

property

Description

mail.header.subject

Constraint checks the value against the email’s subject.

mail.header.from

Constraint checks the value against the email’s from. This will be truthy if any value matches.

mail.header.to

Constraint checks the value against the email’s to. This will be truthy if any value matches.

mail.header.replyTo

Constraint checks the value against the email’s reply to. This will be truthy if any value matches.

mail.header.cc

Constraint checks the value against the email’s cc. This will be truthy if any value matches.

mail.header.bcc

Constraint checks the value against the email’s bcc. This will be truthy if any value matches.