Difference between revisions of "Send wait"

From SDU
Jump to: navigation, search
(Available methods)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://ogetehuvo.co.cc UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY]=
 
----
 
=[http://ogetehuvo.co.cc CLICK HERE]=
 
----
 
</div>
 
 
__NOTOC__
 
__NOTOC__
 
[[Category:Customizations]]
 
[[Category:Customizations]]
Line 29: Line 21:
  
 
== Available methods ==
 
== Available methods ==
{| width=&quot;100%&quot;
+
{| width="100%"
 
|-
 
|-
! colspan=3|'''&lt;font size=&quot;3&quot;&gt;Base object common&lt;/font&gt;'''
+
! colspan=3|'''<font size="3">Defined on current (TOP) object</font>'''
 
|-
 
|-
 
|colspan=3|These methods are defined on all objects (maybe)
 
|colspan=3|These methods are defined on all objects (maybe)
 
|-
 
|-
| width=&quot;34%&quot; align=&quot;left&quot; style=&quot;vertical-align:top;&quot; |
+
| width="34%" align="left" style="vertical-align:top;" |
 +
*[[attrs_by_index|attrs_by_index]]
 
*[[Send_WaitCall_Attr|call_attr]]
 
*[[Send_WaitCall_Attr|call_attr]]
| width=&quot;33%&quot; align=&quot;left&quot; style=&quot;vertical-align:top;&quot; |
+
| width="33%" align="left" style="vertical-align:top;" |
 
*[[get_attr_vals]]
 
*[[get_attr_vals]]
| width=&quot;33%&quot; align=&quot;left&quot; style=&quot;vertical-align:top;&quot; |
+
| width="33%" align="left" style="vertical-align:top;" |
 
*[[Send_WaitGet_Co_group|get_co_group]]
 
*[[Send_WaitGet_Co_group|get_co_group]]
 
|-
 
|-
 
|}
 
|}
  
{| width=&quot;100%&quot;
+
{| width="100%"
 
|-
 
|-
! colspan=3|'''&lt;font size=&quot;3&quot;&gt;Base object CR&lt;/font&gt;'''
+
! colspan=3|'''<font size="3">Defined on CR object</font>'''
 
|-
 
|-
| width=&quot;34%&quot; align=&quot;left&quot; style=&quot;vertical-align:top;&quot; |
+
| width="34%" align="left" style="vertical-align:top;" |
 
*[[Send_WaitAuto_assign|auto_assign]]
 
*[[Send_WaitAuto_assign|auto_assign]]
 
*[[Send_WaitChange_status|change_status]]
 
*[[Send_WaitChange_status|change_status]]
Line 56: Line 49:
 
*[[Send_WaitCob_mark_delete|dob_mark_delete]]
 
*[[Send_WaitCob_mark_delete|dob_mark_delete]]
 
*[[Send_WaitCo_expand|do_expand]]
 
*[[Send_WaitCo_expand|do_expand]]
| width=&quot;33%&quot; align=&quot;left&quot; style=&quot;vertical-align:top;&quot; |
+
| width="33%" align="left" style="vertical-align:top;" |
 
*[[Send_WaitEscalate|escalate]]
 
*[[Send_WaitEscalate|escalate]]
 
*[[Send_WaitIinit_activity|init_activity]]
 
*[[Send_WaitIinit_activity|init_activity]]
Line 64: Line 57:
 
*[[Send_WaitLog_comment_no_checkout|log_comment_no_checkout]]
 
*[[Send_WaitLog_comment_no_checkout|log_comment_no_checkout]]
 
*[[Send_WaitLog_event|log_event]]
 
*[[Send_WaitLog_event|log_event]]
| width=&quot;33%&quot; align=&quot;left&quot; style=&quot;vertical-align:top;&quot; |
+
| width="33%" align="left" style="vertical-align:top;" |
 
*[[Send_WaitLog_research|log_research]]
 
*[[Send_WaitLog_research|log_research]]
 
*[[Send_WaitMake_from_template|make_from_template]]
 
*[[Send_WaitMake_from_template|make_from_template]]
Line 75: Line 68:
 
|}
 
|}
  
{| width=&quot;100%&quot;
+
{| width="100%"
 
|-
 
|-
! colspan=3|'''&lt;font size=&quot;3&quot;&gt;Base object CHG&lt;/font&gt;'''
+
! colspan=3|'''<font size="3">Defined on CHG object</font>'''
 
|-
 
|-
| width=&quot;34%&quot; align=&quot;left&quot; style=&quot;vertical-align:top;&quot; |
+
| width="34%" align="left" style="vertical-align:top;" |
 
*[[Send_WaitAccumulate|accumulate]]
 
*[[Send_WaitAccumulate|accumulate]]
 
*[[Send_WaitAccumulate_change|accumulate_change]]
 
*[[Send_WaitAccumulate_change|accumulate_change]]
Line 90: Line 83:
 
*[[Send_WaitClose_change_request|close_change_request]]
 
*[[Send_WaitClose_change_request|close_change_request]]
  
| width=&quot;33%&quot; align=&quot;left&quot; style=&quot;vertical-align:top;&quot; |
+
| width="33%" align="left" style="vertical-align:top;" |
 
*[[Send_WaitCopy_chg|copy_chg]]
 
*[[Send_WaitCopy_chg|copy_chg]]
 
*[[Send_WaitCopy_chg_site|copy_chg_site]]
 
*[[Send_WaitCopy_chg_site|copy_chg_site]]
Line 99: Line 92:
 
*[[Send_WaitImpact_analysis|impact_analysis]]
 
*[[Send_WaitImpact_analysis|impact_analysis]]
  
| width=&quot;33%&quot; align=&quot;left&quot; style=&quot;vertical-align:top;&quot; |
+
| width="33%" align="left" style="vertical-align:top;" |
 
*[[Send_WaitInit_activity|init_activity]]
 
*[[Send_WaitInit_activity|init_activity]]
 
*[[Send_WaitInit_change_request|init_change_request]]
 
*[[Send_WaitInit_change_request|init_change_request]]

Latest revision as of 15:21, 1 March 2012

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 the most tricky function and it is the main reason of difficulty of reading SPELL code. It is used for calling methods on objects. On every SD object (ie. cr, chg, alg...) are defined methods and using send_wait function you can call them. Definitions of some of them are in *.maj files in $NX_ROOT/bopcfg/majic folder.

Usage

void send_wait (int timeout, object top_object, string method, [ var parameters… ])

  • timeout - how long (in seconds) should the method wait for finishing the method (0 means infinite). A timeout mean time after which the function is considering as failure, returning to caller with error and no result. Nearly every time the 0 is used.
  • top_object - root object for the method (on which the method is called)
  • method - name of the called method
  • parameters - variable number of parameters based on the called method

Results

Function doesn't return value, but methods usually fill global msg array with return values. What values are on what positions depends on the called method.

Available methods

Defined on current (TOP) object
These methods are defined on all objects (maybe)
Defined on CR object
Defined on CHG object

Examples