Difference between revisions of "Spel Reference Guide"
m (→Reference Sections) |
(→Reference Sections) |
||
(24 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
− | [[Category: | + | __NOTOC__ |
− | + | [[Category:Customizations]] | |
− | + | {{Global Header}} | |
+ | {{Global Announcement}} | ||
− | Note: .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. |
− | *[[ | + | |
− | *[[ | + | 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 == |
− | **[[ | + | {| width="100%" |
− | **[[ | + | |- |
− | **[[ | + | ! colspan=3|'''<font size="3">Functions</font>''' |
− | *[[ | + | |- |
+ | | 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]] | ||
+ | |- | ||
+ | |} | ||
− | = | + | == See Also == |
[[WSSIWYG]] by Nero Le Velu | [[WSSIWYG]] by Nero Le Velu | ||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 13:31, 16 May 2011
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