Class
Factory for manager classes.
Methods
Method | Returns | Notes |
---|---|---|
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 MethodgetManager<T>(managerType: () => T, config: ConfigInfo): Promise<T>
Get an instance of a manager class.
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
Parameter | Type |
---|---|
T | Manager |
Parameters
Parameter | Type | Notes |
---|---|---|
manager | () => T | Type of manager to return.
Options include |
config | ConfigInfo | Configuration for the manager class. |
Returns
Promise<T>
setOptions
static
Class MethodsetOptions(options: Options): void
Set options on the manager class.
import { Options, ManagerFactory } from '@arcgis/workflow-manager';
// Configure options properties
const options: Options = {
logLevel: 'debug'
};
// Set options
ManagerFactory.setOptions(options);
Parameters
Parameter | Type |
---|---|
options | Options |
Returns
void