Difference between revisions of "Send WaitCall Attr"

From SDU
Jump to: navigation, search
(Available actions)
(Available actions)
Line 36: Line 36:
 
! colspan=3|'''<font size="3">Object's attributes</font>'''
 
! colspan=3|'''<font size="3">Object's attributes</font>'''
 
|-
 
|-
 +
| width="33%" align="left" style="vertical-align:top;" |
 +
*[[send_WaitCall_attrGet_dob|get_dob]]
 
| width="34%" align="left" style="vertical-align:top;" |
 
| width="34%" align="left" style="vertical-align:top;" |
 
*[[send_WaitCall_attrGet_val|get_val]]
 
*[[send_WaitCall_attrGet_val|get_val]]
 
| width="33%" align="left" style="vertical-align:top;" |
 
| width="33%" align="left" style="vertical-align:top;" |
 
*[[send_WaitCall_attrSet_val|set_val]]
 
*[[send_WaitCall_attrSet_val|set_val]]
|-
 
| width="33%" align="left" style="vertical-align:top;" |
 
&nbsp;
 
 
|-
 
|-
 
|}
 
|}

Revision as of 09:18, 3 June 2011

To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.

Overview

This is some kind of global method (callable on all objects). It can be called in Spell Code using send_wait method.

Using this method you can call some actions on object's attributes or on other factories. So we can distinguis between usage of this method on 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 action_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 - name of the called action
  • 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 actions

Object's attributes
Other factories

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>