Fuego.Lib : Server

The Server component is used to retrieve information about the Process Execution Engine that hosts the currently-running process and PBL.

You can associate any data with a particular server by using the Server.store*Property() set of methods. To retrieve previously stored data, use the Server.retrieve*Property() set of methods.

Example 1

In the following example, the Server component is used to retrieve basic configuration of the current Oracle BPM Engine:

display "Engine's server host name: " + Fuego.Server.host
display "Engine's home directory: " + Fuego.Server.homeDir
display "Admin email: " + Fuego.Server.administratorEmail
display "SMTP (email) host name: " + Fuego.Server.mailServerName
display "Directory Service URL: " + Fuego.Server.directoryURL

Example 2

In the following example, the Server component is used to associate a custom property with the current Engine:

storePropertyFor Fuego.Server
    using application = "example_process",
    name = "administrator",
    value = "jsmith"

Example 3

In the following example, the Server component is used to retrieve execution server preferences:

display "Execution Server Preferences: " +
    "\nAutomatic Items Queue Size: " + Fuego.Server.automaticItemsQueueSize +
    "\nMaximum Nr of Execution Threads used for Automatic tasks: " + Fuego.Server.automaticThreadsPoolSize +
    "\nInstance Cache Size: " + Fuego.Server.instanceCacheSize +
    "\nMaximum JVM Heap Size: " + Fuego.Server.jvmHeapMax +
    "\nMaximum BPMethod Timeout: " + Fuego.Server.maximumBPMethodsTimeout +
    "\nRetry Interval: " + Fuego.Server.retryInterval +
    "\nRetry Time: " + Fuego.Server.retryTimes