Watch.GetPreferences

The Watch.GetPreferences method returns a JSON string containing the preferences for the OL Connect Server and Workflow's HTTP Server, NodeJS Server and SMTP Server.

Syntax

Watch.GetPreferences()

Return value

The method returns a JSON structure containing the preferences for the OL Connect Server and Workflow's HTTP Server, NodeJS Server and SMTP Server. For example:

{
"System": {
	"OLConnect": {
		"serverAddress": "localhost",
		"serverPort": 9340,
		"username": "ol-admin",
		"mailHost": "",
		"mailSender": "",
		"mailUser": ""
	},
	"OLWorkflow": {
		"version": "1.0.0.213 [Debug; Private build (Developer build)]",
		"edition": "PReS Workflow",
		"serialNumber": "CA00W-802058-5075",
		"currentUser": "LocalSystem",
		"workFolder": "C:\\ProgramData\\Objectif Lune\\PlanetPress Workflow 8\\PlanetPress Watch\\",
		"httpServer": {
			"port": 8080,
			"portSSL": 443,
			"SOAPEnabled": false,
			"staticResources": [{
					"endpoint": "_iRes",
					"folder": ""
				}
			],
			"processes": []
		},
		"nodeServer": {
			"port": 9090,
			"portSSL": 8443,
			"SOAPEnabled": true,
			"staticResources": [],
			"proxies": [],
			"processes": [],
			"authentication": {
				"enabled": false,
				"LDAPServer": "",
				"domain": "",
				"user": ""
			}
		},
		"smtpServer": {
			"port": 25,
			"TLSEnabled": false
		}
	}
}
}

Examples

JavaScript

Watch.GetPreferences();

VBScript

Watch.GetPreferences

Python

Watch.GetPreferences();

Perl

$Watch->GetPreferences();