Difference between revisions of "Spel Reference Guide"

From SDU
Jump to: navigation, search
m (Reference Sections)
(Reference Sections)
 
(24 intermediate revisions by 8 users not shown)
Line 1: Line 1:
[[Category:Customization]]
+
__NOTOC__
=What Is Spel=
+
[[Category:Customizations]]
Spel is CA proprietary code used to script Service Desk core operations. Spel coding is found a .spl and .maj files located in $NX_ROOT\bopcfg\majic and $NX_ROOT\site\mods\majic directories. Other examples can be found in the $NX_ROOT\samples directory.
+
{{Global Header}}
 +
{{Global Announcement}}
  
Note: .spl files with a ''pcd'' proceeding the .spl are encrypted files, such as chgpcd.spl or itilpcd.spl.
+
Note: please treat SPELL as SPEL
 +
== Overview ==
 +
Spell is CA proprietary code used to script Service Desk core operations. Spell code can be found in .spl and .maj files located in [[$NX_ROOT]]\bopcfg\majic and [[$NX_ROOT]]\site\mods\majic directories. Other examples can be found in the [[$NX_ROOT]]\samples directory.
  
=Reference Sections=
+
Note: .spl files with a ''pcd'' preceding the .spl are encrypted files, such as chgpcd.spl or itilpcd.spl.
*[[Errors]]
+
 
*[[Functions]]
+
Spell is usually used to write methods for object or attribute triggers.  Examples may be attribute validation, notification, post processing, etc.
*[[Operators]]
+
 
**[[Arithmetic Operators]]
+
Spell is interpreted and executed by the Method Engine (spel_srvr), it can also be executed from the command line with bop_cmd command that interprets the fragment (.frg) files and executes the code.
**[[Comparison Operators]]
+
 
**[[Concatenation Operators]]
+
The language resembles C++.  Unlike C or C++, Spell does not support pointers or structures.
**[[Logical Operators]]
+
 
*[[Statements]]
+
== Reference Sections ==
**[[If]]
+
{| width="100%"
**[[For]]
+
|-
**[[Sindex]]
+
! colspan=3|'''<font size="3">Functions</font>'''
*[[Variables and Types]]
+
|-
 +
| width="34%" align="left" style="vertical-align:top;" |
 +
*[[downcase]]
 +
*[[exec]]
 +
*[[format]]
 +
*[[getenv]]
 +
*[[gsub]]
 +
| width="33%" align="left" style="vertical-align:top;" |
 +
*[[is_empty]]
 +
*[[is_null]]
 +
*[[misc:find_mang]]
 +
*[[now]]
 +
*[[send_wait]]
 +
*[[sindex]]
 +
| width="33%" align="left" style="vertical-align:top;" |
 +
*[[strlen]]
 +
*[[substr]]
 +
*[[upcase]]
 +
*[[workshift_abs2work]]
 +
*[[workshift_work2abs]]
 +
|-
 +
|}
 +
 
 +
 
 +
{| width="100%"
 +
|-
 +
! colspan=3|'''<font size="3">Statements</font>'''
 +
|-
 +
| width="34%" align="left" style="vertical-align:top;" |
 +
*[[if]]
 +
| width="33%" align="left" style="vertical-align:top;" |
 +
*[[for]]
 +
| width="33%" align="left" style="vertical-align:top;" |
 +
*[[while]]
 +
|-
 +
|}
 +
 
 +
 
 +
{| width="100%"
 +
|-
 +
! colspan=3|'''<font size="3">Other</font>'''
 +
|-
 +
| width="34%" align="left" style="vertical-align:top;" |
 
*[[Data Type Conversion]]
 
*[[Data Type Conversion]]
 +
*[[Operators]]
 +
| width="33%" align="left" style="vertical-align:top;" |
 
*[[Spel FAQ]]
 
*[[Spel FAQ]]
 +
*[[Triggering Reaction]]
 +
| width="33%" align="left" style="vertical-align:top;" |
 +
*[[Troubleshooting Spell Code|Troubleshooting]]
 +
*[[Variables and Types]]
 +
*[[Methods handling]]
 +
|-
 +
|}
  
=Tools=
+
== See Also ==
 
[[WSSIWYG]] by Nero Le Velu
 
[[WSSIWYG]] by Nero Le Velu
 
 
----
 
<div align='center'><font color="red">To make corrections or additions to this article, select the ''edit'' tab above.<br>
 
To discuss or ask questions about this article, select the ''discussion'' tab above.</font></div>
 

Latest revision as of 13:31, 16 May 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.

Note: please treat SPELL as SPEL

Overview

Spell is CA proprietary code used to script Service Desk core operations. Spell code can be found in .spl and .maj files located in $NX_ROOT\bopcfg\majic and $NX_ROOT\site\mods\majic directories. Other examples can be found in the $NX_ROOT\samples directory.

Note: .spl files with a pcd preceding the .spl are encrypted files, such as chgpcd.spl or itilpcd.spl.

Spell is usually used to write methods for object or attribute triggers. Examples may be attribute validation, notification, post processing, etc.

Spell is interpreted and executed by the Method Engine (spel_srvr), it can also be executed from the command line with bop_cmd command that interprets the fragment (.frg) files and executes the code.

The language resembles C++. Unlike C or C++, Spell does not support pointers or structures.

Reference Sections

Functions


Statements


Other

See Also

WSSIWYG by Nero Le Velu