ManagerFactory

Class

Factory for manager classes.

Methods

MethodReturnsNotes
getManager<T>(managerType, config)
Promise<T>

Get an instance of a manager class.

setOptions(options)
void

Set options on the manager class.

getManager

static
Class Method
getManager<T>(managerType() => T, configConfigInfo): Promise<T>

Get an instance of a manager class.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
import { ConfigInfo, JobsManager, ManagerFactory } from '@arcgis/workflow-manager';

// Configure connection properties
const config: ConfigInfo = {
 portalUrl: 'https://domain.hostname.com/portal/',
 itemId: 'workflowItemId',
 appId: 'myAppId'
 };

// Get an instance of a Manager.
const jobsManager = await ManagerFactory.getManager(JobsManager, config);
Type Parameters
ParameterType
T
Manager
Parameters
ParameterTypeNotes
managerType
() => T

Type of manager to return. Options include JobsManager , ConfigurationManager , NotificationManager , WorkflowServerManager

config
ConfigInfo

Configuration for the manager class.

Returns 
Promise<T>

setOptions

static
Class Method
setOptions(optionsOptions): void

Set options on the manager class.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
import { Options, ManagerFactory } from '@arcgis/workflow-manager';

// Configure options properties
const options: Options = {
 logLevel: 'debug'
};

// Set options
ManagerFactory.setOptions(options);
Parameters
ParameterType
options
Options
Returns 
void

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.