Wikis - Page

SBM ModScript Blog Series

3 Likes

SBM ModScript was introduced in SBM 11.3. This blog series is intended to supplement the SBM ModScript Guide with background information and detailed use cases.  You can find the latest version of the documentation here

  1. An Introduction to ModScript
    • Background on SBM ModScript
  2. Transition Related Items
    • An example script containing several key features of SBM ModScript, including:
      • Function definitions
      • Regular expressions
      • List iteration
      • Defining constants
      • Transitioning SBM items
      • Reading lists of SBM items
      • Using the from_json() function
      • Multi-line comments
  3. Adding Methods to a Class
    • How to use the script engine's ability to extend classes to add new methods.
  4. JSON
    • How to use the script engine's to_json() and from_json() utility functions.
  5. Algorithms and Lambdas
    • How to use the script engine's built-in algorithms, along with the optional use of lambdas (anonymous functions).
  6. Invoking DLLs
    • How to interact with custom DLLs.
  7. REST Call Into ModScript
    • How to invoke a ModScript via a URL.
  8. REST Callouts
    • How to invoke a REST endpoint from ModScript.
  9. SQL Queries
    • An introduction to the SQL interaction available in ModScript.
  10. Regular Expressions
    • How to use regular expressions in ModScript.
  11. Transitions
    • A review of how to invoke transitions on Primary/Auxiliary items in ModScript
  12. Class Inheritence
    • An experimental approach to class inheritance.
  13. Base64Encode
    • A utility function for encoding a string using base64 
  14. Checking the Type of a Variable
    • Utility functions available for interrogating the type of a var.
  15. Singletons
    • Using the singleton design pattern.
  16. Base64Decode
    • A utility function for decoding a base64 value to text (not binary)
  17. File Fields
    • Getting an item's file field contents.
  18. Using Ranges for Easy List Interaction
    • Quick access to the first or last element in a list.

Tags:

Labels:

How To-Best Practice
Support Tips/Knowledge Docs
Comment List
Related
Recommended