Difference between revisions of "Send WaitCall Attr"
(→Overview) |
|||
| (4 intermediate revisions by the same user not shown) | |||
| Line 18: | Line 18: | ||
or when calling action on some distinct factory: | or when calling action on some distinct factory: | ||
<source lang="javascript"> | <source lang="javascript"> | ||
| − | void send_wait (int timeout, object top_object, "call_attr", string factory_name, string | + | void send_wait (int timeout, object top_object, "call_attr", string factory_name, string method_name, [ var parameters… ]) |
</source> | </source> | ||
| Line 25: | Line 25: | ||
* attr_name - name of attribute on which the action is called | * attr_name - name of attribute on which the action is called | ||
* factory_name - name of factory on which the action is called | * factory_name - name of factory on which the action is called | ||
| − | * action - name of the called action | + | * action/method - name of the called action/method |
* parameters - variable number of parameters based on the called action | * parameters - variable number of parameters based on the called action | ||
| Line 31: | Line 31: | ||
Methods usually fill global '''msg''' array with return values. What values are on what positions depends on the called action. | Methods usually fill global '''msg''' array with return values. What values are on what positions depends on the called action. | ||
| − | == Available actions == | + | == Available method/actions == |
| + | === Defined on Object attributes === | ||
{| width="100%" | {| width="100%" | ||
|- | |- | ||
| − | ! colspan=3|'''<font size="3">Object | + | ! colspan=3|'''<font size="3">Object attributes</font>''' |
|- | |- | ||
| width="33%" align="left" style="vertical-align:top;" | | | width="33%" align="left" style="vertical-align:top;" | | ||
| Line 45: | Line 46: | ||
|} | |} | ||
| + | === Defined on factories === | ||
{| width="100%" | {| width="100%" | ||
|- | |- | ||
| − | ! colspan=3|'''<font size="3"> | + | ! colspan=3|'''<font size="3">Defined for all factories</font>''' |
|- | |- | ||
| width="34%" align="left" style="vertical-align:top;" | | | width="34%" align="left" style="vertical-align:top;" | | ||
| − | *[[ | + | *[[Send_WaitCall_attrDob_attr_list|dob_attr_list]] |
| − | *[[ | + | *[[dob_attr_type_info|dob_attr_type_info]] |
| − | *[[ | + | *[[dob_by_persid|dob_by_persid]] |
| + | |||
| width="33%" align="left" style="vertical-align:top;" | | | width="33%" align="left" style="vertical-align:top;" | | ||
| − | *[[ | + | *[[get_domset]] |
| − | *[[ | + | *[[get_new_dob]] |
| − | + | ||
| − | + | ||
| width="33%" align="left" style="vertical-align:top;" | | | width="33%" align="left" style="vertical-align:top;" | | ||
| − | *[[ | + | *[[Send_WaitCall_attrNew_attached_event|new_attached_event]] |
| − | *[[ | + | *[[Send_WaitCall_attrSync_fetch|sync_fetch]] |
| − | *[[ | + | *[[val_by_key]] |
| + | |- | ||
| + | |} | ||
| + | |||
| + | |||
| + | {| width="100%" | ||
| + | |- | ||
| + | ! colspan=3|'''<font size="3">Defined on CNT factory</font>''' | ||
| + | |- | ||
| + | | width="34%" align="left" style="vertical-align:top;" | | ||
| + | *[[Send_WaitCall_attrCurrent_user_id|current_user_id]] | ||
| + | *[[Send_WaitCall_attrGet_groups_by_persid|get_groups_by_persid]] | ||
| + | |||
| + | | width="33%" align="left" style="vertical-align:top;" | | ||
| + | *[[cnt.get_members_to_notify_by_persid|get_members_to_notify_by_persid]] | ||
| + | |||
| + | | width="33%" align="left" style="vertical-align:top;" | | ||
| + | *[[Send_WaitCall_attrNotify_list|notify_list]] | ||
| + | |||
|- | |- | ||
|} | |} | ||
Latest revision as of 15:20, 1 March 2012
To discuss or ask questions about this article, select the discussion tab above.
Overview
This is some kind of global method (callable on TOP object). It can be called in Spell Code using send_wait method.
Using this method you can call some actions on object attributes or on other factories. So we can distinguish between usage of this method on current object's attributes and other factories.
Usage
When calling action on some of top_object's attribute: <source lang="javascript"> void send_wait (int timeout, object top_object, "call_attr", string attr_name, string action_name, [ var parameters… ]) </source> or when calling action on some distinct factory: <source lang="javascript"> void send_wait (int timeout, object top_object, "call_attr", string factory_name, string method_name, [ var parameters… ]) </source>
- timeout - how long (?in seconds?) should the method wait for finishing the method (0 means infinite)
- top_object - root object for the method (on which the method is called)
- attr_name - name of attribute on which the action is called
- factory_name - name of factory on which the action is called
- action/method - name of the called action/method
- parameters - variable number of parameters based on the called action
Results
Methods usually fill global msg array with return values. What values are on what positions depends on the called action.
Available method/actions
Defined on Object attributes
| Object attributes | ||
|---|---|---|
Defined on factories
| Defined for all factories | ||
|---|---|---|
| Defined on CNT factory | ||
|---|---|---|
Examples
<source lang="javascript"> // Get currently logged in user uuid login_userid send_wait(0, top_object(), "call_attr", "cr", "current_user_id"); login_userid = msg[0]; </source>