HelpWizard Pages ReferenceManual6 Smalltalk/en: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „== Reference Manual Smalltalk API (Call Action) == link=HelpWizard Pages ReferenceManual6/en|back * self '''call:''' ''actionNameO…“)
 
Zeile 3: Zeile 3:
[[Datei:arrowup.png|link=HelpWizard Pages ReferenceManual6/en|back]]
[[Datei:arrowup.png|link=HelpWizard Pages ReferenceManual6/en|back]]


* self '''call:'''&nbsp;''actionNameOrID'' '''withArguments:''' ...)<br>tells expecco to execute another action, as specified by its name or UUID string.<br>The ID-string can be an explicit versionID or a generic functionalID (the later is recommended).<br>Returns the first value of the first output pin of the called action.
* self '''call:'''&nbsp;''actionNameOrID''&nbsp;'''withArguments:'''&nbsp;''argCollection'')<br>tells expecco to execute another action, as specified by its name or UUID string.<br>The ID-string can be an explicit versionID or a generic functionalID (the later is recommended).<br>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.<br>Returns the first value of the first output pin of the called action.

* self '''call:'''&nbsp;''actionNameOrID''&nbsp;'''withArguments:'''&nbsp;''argCollection''&nbsp;''into:'''&nbsp;callbackBlock)<br>similar to above, but invokes callbackBlock passing an array of written output-pin values for each output pin.<br>Returns all values of all pins via a callback.<br>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}'.
].
]

Version vom 8. März 2021, 14:11 Uhr

Reference Manual Smalltalk API (Call Action)[Bearbeiten]

back

  • 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