If you look at the inputs section of an action sequence, you will see inputs typically defined like this:
<inputs> <someInput type="string"> <sources> <request>someInput</request> </sources> </someInput> </inputs>
In the above example, the input (called
someInput) can be found by looking at the request (
PortletRequest, etc.) for a variable called
someInput. Then, throughout the rest of the action sequence, specific actions can reference that input.
Pentaho BI Platform extends the inputs to provide a unique type of input--the security input. The following input names are supported:
The name of the currently authenticated user.
The roles that the currently authenticated user is a member of.
All the known roles in the system. Use caution since this list could be quite long.
All the users known to the system. Use caution since this list could be quite long.
The following input section will get the list of the user's roles, and make it available to all the actions in the action sequence:
<inputs> <principalRoles type="string-list"> <sources> <security>principalRoles</security> </sources> </principalRoles> </inputs>