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 : codeBoolean expression determining whether the action is executed.Valid values based on“string”.  description : stringAction description.language : languageTypeThe scripting language for this element. Defaults to the model scripting language. See Metadata.language Valid values based on“string”.schemescheme scripting languagejsJavaScript scripting languagemethod : qualJavaNameJava 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 : actionNameAction 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 : identifierAction 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.typeDetermines 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”.mainbeforeafteraround

Parents


Parent topic: t_Type_Events_Event_Actions