You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 24 Next »

Learn more about the system entity attributes system.USER, system.CHANNEL, system.CURRENTPAGE, system.LANGUAGE, system.PAGEVALID, system.EVENT, system.ROLES, system.TODAY, system.TASKID and system.PROCESSID. 


The Blueriq Runtime provides access to specific system properties via the system entity. This entity is created when the Runtime starts and contains attributes which may be used in expressions in your application. These attributes are owned by the runtime and should not be modified. The following attributes are available.

Overview

System attributeDescription
USERContains a relation to the active user instance. 
CHANNELContains the current device channel.
CURRENTPAGEContains the name of the current page.
LANGUAGEContains the current language name. This attribute is updated after a language switch.
PAGEVALIDContains a value that represents the validity of the current page: unknown, true, false. 
EVENTContains the current events, which can be set as parameters on an Event. This value is unknown if no event is triggered.
ROLESContains a list of the roles of the current user. 
TODAYContains the current date (yyyy-MM-dd) from the runtime environment.
TASKIDContains the task id of the current started task. This value is unknown if there is no active task. This property will only be set if DCM 2.0 is active.
PROCESSIDContains the process id of the the case where the started task belongs to. This value is unknown if there is no active task. This property will only be set if DCM 2.0 is active.


System attribute details

USER


This attribute contains a relation to the active user instance (@User@). 


system.user (Instance)


The active user contains the following attributes: 



system.user.id (String)
system.user.Roles (List)
system.user.teams (List)
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.

Back to Top


CHANNEL


This system attribute contains the current device channel. This value is optional.


system.channel (String)


CURRENTPAGE


This system attribute contains the name of the current page.


system.currentpage (String)


LANGUAGE


This system attribute contains the current language name. This attribute is updated after a language switch.


system.language (String)


PAGEVALID


This system attribute contains a value that represents the validity of the current page: unknown, true, false. 


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 successfully


The attribute value is recalculated with every refresh.

Back to Top


EVENT


This system attribute contains the current events, which can be set as parameters on an Event. This value is unknown if no event is triggered.


system.event (List)

Current events could be defined on buttons or as special events on specific container types.

System.event valueBehaviour 
_previousSystem flows back to the last visited page. Use this when no 'return' flow is modelled in the flow.
_draftSystem continues it's flow without validating the current page.
_voidSystem 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.
_refreshSystem 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.

Button Event Type system.event value
Validate and Continueno value
Continue_draft
Cancel_void


Also:

Button Refreshessystem.event value
True_refresh
Falseno value


Back to Top



ROLES


This system attribute contains a list of the roles of the current user. 


system.roles (List)


TODAY


This system attribute contains the current date (yyyy-MM-dd) from the runtime environment.


system.today (date)


TASKID


This system attribute contains the task ID of the current started task. This value is unknown if there is no active task. This property will only be set if DCM 2.0 is active.


system.taskId (Integer)


Unable to render {include} The included page could not be found.



  • No labels