Page tree

MagicDraw 2022x Refresh1 Documentation

The number of parameters a script operation can have depends on the script operation language:

  • An OCL expression can have a single parameter, which by default specifies the Contextual element. Though the parameter cannot be removed, you can easily reset the Contextual element, if necessary.
  • A binary expression inherits parameters from the Java class to which the expression body references. You cannot create additional parameters.
  • Other script operations, such as JavaScript or Groovy, can have as many parameters as you need (see the following figure).



  • No labels