Panel |
---|
|
USEREVENT Code Block |
---|
system.user (Instance) |
This This system attribute contains a relation to the active user instance (@User@). The active user contains the following attributesthe current events, which can be set as parameters on an Event. This value is unknown if no event is triggered.
user.id (String)
system.user.Roles (List)
system.user.teams
system.user.userName (String)
system.user.tenant (String)These properties are extracted from the UserData object which is automatically filled from the Authentication from the SecurityContext. Do not modify these properties, because in every newly created session these will be extracted again from the Authentication object in the Spring SecurityContext.
The proper way to get your user information copied to new AquimaSessions is to set the Spring Authentication object through the "org.springframework.security.authentication.AuthenticationProvider" For implementing an AuthenticationProvider for the SecurityContext see Runtime authentication. |
Panel |
---|
|
CHANNEL
Code Block |
---|
system.channel (String) |
This attribute contains the current device channel. This value is optional.
Panel |
---|
|
CURRENTPAGE
Code Block |
---|
system.currentpage (String) |
This attribute contains the name of the current page.
Panel |
---|
|
LANGUAGE
Code Block |
---|
system.language (String) |
This attribute contains the current language name. This attribute is updated after a language switch.
Panel |
---|
|
PAGEVALID
Code Block |
---|
system.pagevalid (Boolean) |
The value of this boolean is:
- unknown if a page has never been validated
- false if the page has been validated and it contains errors (and/or warnings that are shown for the first time)
- true if the page has been validated and all validations are passed succesfully
The attribute value is recalculated with every refresh.
Info |
---|
Current events could be defined on buttons or as special events on specific container types. |
System.event value | Behaviour |
---|
_previous | System flows back to the last visited page. Use this when no 'return' flow is modelled in the flow. | _draft | System continues it's flow without validating the current page. | _void | System flows without submitting the current page. Use this on 'return' flows to allow a user to return to a previous step. Can be combined with the _previous event. | _refresh | System refreshes the page without flowing. Use this to allow a user to manually refresh the page. |
Some elements automatically set a value in the system.event attribute. |
Panel |
---|
|
EVENT Code Block |
---|
system.event (List) |
This attribute contains the current events, which can be set as parameters on an Event. This value is unknown if no event is triggered. Info |
---|
Current events could be defined on buttons or as special events on specific container types. |
Furthermore, the type of button also sets these values: Button Event Type | system.event value |
---|
Validate and Continue | no value | Continue | _draft | Cancel | _void |
Also: Button Refreshes | system.event value |
---|
True | _refresh | False | no value |
|
Panel |
---|
|
|
ROLES
Code Block |
---|
system.roles (List) |
This attribute contains a list of the roles of the current user.
Panel |
---|
|
TODAY Code Block |
---|
system.today (date) | This attribute contains the current date (yyyy-MM-dd) from the runtime environment. |