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.

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.

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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close