Definition
It is common to redirect the user to/from different features or user task using action buttons or after completing a feature.
Sometimes it is also useful to provide values from the current context to the next one, such as initializing form fields with values entered in the previous features.
URL schemes
There are two URL schemes available to redirect to features and user task respectively:
Feature
The scheme starts with feature:// followed by the id of the feature and eventually the object id.
Exemple: feature://my-user-card-read/john.doe.
For features nested inside a hub, the scheme accepts a dotted notation to reference the feature:
Example: feature://my-hub-feature.a-feature-in-hub/john.doe
User access rights to the feature(s) will be checked when resolving the link.
User Task
The scheme starts with task:// followed by a valid action and eventually an id.
The available actions are:
-
to-approve
-
submitted-requests
-
about-me
-
admin
Example: task://to-approve/1234
Contexts
Links can be templated using context variables.
-
routeObjectId: A shortcut for “object.id”
-
object: The current object of a feature (access or set attributes of the object using “object.<attribute id>”)
-
field: Field values (note that “Fields” are not attributes, they are input in a form that are not linked to the attributes of an object. To read or set attributes, use the “object” context).
-
user: The current user (access its attributes using “user.<attribute id>”)
-
dataKey: Access to a row element in a list (same as the “row” context)
-
row: Access to a row element in a list
-
widgetData: Available in some specific widget to access their context data
-
workflow: Access workflow information (contains “id” for the workflow id and “taskInstanceId” for the task instance id)
Use cases
Redirect to a feature from an action button
Redirect to a feature in an action button in a list row
Redirect to a feature that creates a child organization from a parent organization
In this use case we want to provide a button in an organization feature that allows creating a child organization. We want to initialize the parentOrganization attribute of the child organization for convenience.
Redirect to another feature after the execution of a feature
Use the “completionRedirectURL” option of a feature to redirect to another feature after the current feature is submitted.
Provide the user task instance id to another feature and use it to return to the user task after completion
For this use case we will need to provide the user task instance to another feature, save it somewhere and use it when completing the feature.
We will save the task instance id in a hidden field.
In the user task screen, provide a link to the desired feature and initialize a field with the task instance id:
Workflow screen action button configuration
Feature screen
Use the “completionRedirectURL” and your field value to redirect back to the user task.
Read Next
-
Screen -
Widgets Widgets are used (and mandatory) in the configuration of Features to display/edit information about Attributes or manage Memority Portal functionalities.
-
Types -
Display Conditions A display condition allows, in a Feature, to hide elements (buttons, information) according to the context (either of the concerned user or of the logged user).
-
Navigation -
Authentication Step-Up Allows to configure the different authentication levels and in which cases a higher authentication level can be requested from the user (portal, features...).
-
Tasks Dashboard