Difference between revisions of "Catglobe modules"

From Catglobe Wiki
Jump to: navigation, search
(Initial page which describes how to use catglobe modules)
 
m
Line 11: Line 11:
 
The Catglobe module loader is the workflow module responsible for loading all other generic Catglobe modules, the script below demonstrates how to initialize the module loader and add a few generic Catglobe modules:  
 
The Catglobe module loader is the workflow module responsible for loading all other generic Catglobe modules, the script below demonstrates how to initialize the module loader and add a few generic Catglobe modules:  
  
<source lang="null">
+
<source lang="javascript">
 
number moduleLoaderResId = 1234;
 
number moduleLoaderResId = 1234;
 
Dictionary cgmod = Workflow_call(moduleLoaderResId, {
 
Dictionary cgmod = Workflow_call(moduleLoaderResId, {

Revision as of 10:39, 12 September 2011

Catglobe modules

Using CG Script it's possible to build very complex solutions on top of the Catglobe platform. This page and sub pages offers some guidelines on how to use existing Catglobe modules and how to extend with additional generic modules, or create and register customized modules which are used by a specific solution.

Building a new solutioin, where Catglobe modules are used as the foundation, helps you abstract from tedious things like remembering the resource ids of a lot of generic workflows, it also makes it easier to move your solution to other Catglobe sites once it's done.

One workflow resource id must be known in order to initialize the Catglobe modules framework, namely the resource id of the Catglobe module loader.

Initializing the module loader

The Catglobe module loader is the workflow module responsible for loading all other generic Catglobe modules, the script below demonstrates how to initialize the module loader and add a few generic Catglobe modules:

number moduleLoaderResId = 1234;
Dictionary cgmod = Workflow_call(moduleLoaderResId, {
   "Catglobe.DateTime",
   "Catglobe.Text"
});