ActionMapping

Instance class: org.nasdanika.vinci.app.ActionMapping

Action mapping provides a logical name (alias) for another (abstract) action for convenient linking/referencing from action’s content.

Action mapping target is injected into the context under action-mappings/<mapping name> key. When retrieved as a String, e.g. during interpolation, the mapping is converted to a link. I.e. in This is my mapping ${action-mappings/my-mapping}! ${action-mappings/my-mapping} will be interpolated into a link to the mapped action.

In the above case, when aciton mapping is retrieved as a String without a sub-key, it is possible to provide alternative text for the mapping link by separating it from the mapping by a space. For example, ${action-mappings/my-mapping alternative text here} will be interpolated as a link to the target action with “alternative text here” link text. As a consequence, action aliases cannot have spaces in them.

Action mapping also supports text, icon, and url sub-keys computing to action text and action url for actions with reference activator. For example:

  • ${action-mappings/my-mapping/text} will interpolate to the mapped action text.
  • ${action-mappings/my-mapping/icon} will interpolate to the mapped action icon.
  • ${action-mappings/my-mapping/url} will interpolate to the mapped action url.

Mappings are inherited by children. Lower level mappings hide higher level mappings. Action reference mappings are passed to the reference target.

Referrers

  • AbstractAction - Base class for different types of actions - action, action link, and action reference.

Members

Attributes

alias : EString

Logical name of the target action.

Type EString
Cardinality 1

description : EString

Mapping description.

Type EString
Cardinality 0..1

References

target : AbstractAction

Mapping target.

Type AbstractAction
Cardinality 1