Skip to main content
Skip table of contents

t_Type_Events_Event_Actions_Action

Action : Class or Aspect

Script items for Class and Aspect Events. e.g. Class.Event.Actions[]

Description

Actions are script items or Java methods executed in a particular order when a Class Event or Aspect Event is invoked. Events always have a single 'main' action. All other actions are executed relative to the main action (and each other). Actions can be overridden in subclasses. They may be conditionally executed.

To specify mutually exclusive actions within a group, use <group>:<action> as the action name.

Properties

condition : code

Boolean expression determining whether the action is executed.

Valid values based on“string”.
  
description : string

Action description.

language : languageType

The scripting language for this element.

Defaults to the model scripting language.
See
Metadata.language
Valid values based on“string”.
scheme

scheme scripting language

js

JavaScript scripting language

method : qualJavaName

Java method implementing the action: <package>.<Class>.<method>(Instance|Metaclass, ..., ActionContext)

Valid values based on“string”.
|[\p{L}_][\p{L}\p{N}_]*(\.[\p{L}_][\p{L}\p{N}_]*)*
name : actionName

Action name. To specify mutually exclusive actions within a group, use <group>:<action>.

Valid values based on“string”.
[\p{L}_][\p{L}\p{N}_]*(:[\p{L}_][\p{L}\p{N}_]*)?
relative : identifier

Action before which this action is placed. Use for specifying the action insertion point when subclassing an event.

Valid values based on“string”.
:?[\p{L}_][\p{L}\p{N}_]*(:[\p{L}_][\p{L}\p{N}_]*)*

Value must begin with a letter or an underscore. Case and length are not restricted. Letters, numbers and underscores are allowed. Colon is used as a scope separator. Spaces and other punctuation characters are not allowed.

type

Determines whether the action is executed before or after the main action, or it can wrap it ("around": use (call-next) to invoke the nested actions).

Valid values based on“string”.
main
before
after
around

Parents

Parent topic: t_Type_Events_Event_Actions

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.