Skip to main content
Version: latest 1.3.x

API - StaticAttribute

Here all static attributes are listed which can be used in rules. Static attributes are used to show the header of resources, activities and projects. Using the names of static attributes in rules allows to access the values of these attributes in a dynamic way. The following table lists all static attributes and their corresponding attribute name.

StaticAttributeAttribute name
TMS_STARTstart
TMS_ENDend
TMS_EARLIEST_STARTearliest start
TMS_LATEST_ENDlatest end
TMS_LOCATIONlocation
TMS_PROJECTproject
TMS_NAMEname

Usage in when part of rules

In following an example how to retrieve the location attribute of an activity in the when part of a rule:

when 
$activity: Activity(attributes : getAttributes())
$location: Attribute(name == StaticAttribute.TMS_LOCATION.getValue()) from attributes
then