HelpWizard Pages ReferenceManual6 Smalltalk/en

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen

previous back next

Reference Manual Smalltalk API (Call Action)[Bearbeiten]

  • self call: actionNameOrID withArguments: argCollection)
    tells expecco to execute another action, as specified by its name or UUID string.
    The ID-string can be an explicit versionID or a generic functionalID (the later is recommended).
    argCollection is a collection of values to be passed as input-pin arguments. Its size should match the number of arguments expected by the called action.
    Returns the first value of the first output pin of the called action.
  • self call:' actionNameOrID withArguments: argCollection into: callbackBlock)
    similar to above, but invokes callbackBlock passing an array of written output-pin values for each output pin.
    Returns all values of all pins via a callback.
    Usage example, calling myAction which has two output pins, each one written with multiple values:
 self 
     call:'myAction' withArguments:#(1 2 3) 
     into:[:outPin1Values :outPin2Values |
         Transcript showCR:'values written to pin1:'.
         outPin1Values do:[:eachValue |
             Transcript showCR: e'   {eachValue}'.
         ].
         Transcript showCR:'values written to pin2:'.
         outPin2Values do:[:eachValue |
             Transcript showCR: e'   {eachValue}'.
         ].
     ]



Copyright © 2014-2024 eXept Software AG