HelpWizard Pages ReferenceManual6 Smalltalk/en: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Cg (Diskussion | Beiträge) |
Cg (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
[[Datei:arrowleft.png|link=HelpWizard Pages ReferenceManual5 Smalltalk/en|previous]] |
|||
⚫ | |||
[[Datei:arrowup.png|link=HelpWizard Pages ReferenceManual6/en|back]] |
[[Datei:arrowup.png|link=HelpWizard Pages ReferenceManual6/en|back]] |
||
[[Datei:arrowright.png|link=HelpWizard Pages ReferenceManual7 Smalltalk/en|next]] |
|||
⚫ | |||
* self '''call:''' ''actionNameOrID'' '''withArguments:''' ''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:''' ''actionNameOrID'' '''withArguments:''' ''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. |
Aktuelle Version vom 10. März 2021, 19:45 Uhr
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}'. ]. ]