HelpWizard Pages ReferenceManual6 Smalltalk/en: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Cg (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „== Reference Manual Smalltalk API (Call Action) == link=HelpWizard Pages ReferenceManual6/en|back * self '''call:''' ''actionNameO…“) |
Cg (Diskussion | Beiträge) |
||
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
⚫ | |||
[[Datei:arrowup.png|link=HelpWizard Pages ReferenceManual6/en|back]] |
|||
[[Datei:arrowright.png|link=HelpWizard Pages ReferenceManual7 Smalltalk/en|next]] |
|||
== Reference Manual Smalltalk API (Call Action) == |
== Reference Manual Smalltalk API (Call 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. |
||
⚫ | |||
* self '''call:''' ''actionNameOrID'' '''withArguments:''' ''argCollection'' ''into:''' 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}'. |
|||
]. |
|||
] |
|||
[[Category: HelpWizard/en]] |
|||
⚫ | * self '''call:''' ''actionNameOrID'' |
||
[[Category: HelpWizard API/en]] |
|||
[[Category: HelpWizard API Smalltalk/en]] |
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}'. ]. ]