Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Method

Methods are MetaElements that are executed to create business objects, alter their state or end their lifecycle.

Methods are mutable

specfield

ownershipType : type of ownership of the method from the business object type

specfield

effectType : type of effect provoked by the execution of the method

specfield

parameters : list of parameters to provide when invoking a method

specfield

triggeringEvent: BusinessEventType which triggers the execution of this

Hierarchy

Index

Constructors

constructor

  • Creates a new method m so that:

    • m.name = name &&
    • m.effectType = effectType &&
    • m.ownershipType = ownershipType &&
    • m.parameters = parameters &&
    • m.triggeringEvent = triggeringEvent

    Parameters

    • name: string

      Name of the method

    • triggeringEvent: BusinessEventType

      Triggering [[BusinessEventtype]]

    • ownershipType: OwnershipType

      Type of ownership of the method

    • effectType: EffectType

      Type of effect of the method

    • Default value parameters: Array<AttributeType> = new Array<AttributeType>()

      Parameters to provide when invoking method

    Returns Method

Properties

Private effectType

effectType: EffectType

Private ownershipType

ownershipType: OwnershipType

Private parameters

parameters: Map<string, AttributeType>

Private triggeringEvent

triggeringEvent: BusinessEventType

Methods

addParameter

getEffectType

getId

  • getId(): string

getName

  • getName(): string

getOwnershipType

getParameter

  • throws

    an error in case there is no parameter with id paramId known to this

    willreturn

    otherwise, returns a parameter p so that p is in this.parameters and p.id = paramId

    Parameters

    • paramId: string

      id of the parameter to be retrieved

    Returns AttributeType

getParameters

getTriggeringEvent

isValid

  • isValid(): boolean

setId

  • setId(id: string): void

toJSON

toModelFormat

Static createMapFromArray

  • createMapFromArray<MetaElementType>(elements: Array<MetaElementType>): Map<string, MetaElementType>

Generated using TypeDoc