ConfigurationTask
require(["esri/tasks/workflow/ConfigurationTask"], function(ConfigurationTask) { /* code goes here */ });
esri/tasks/workflow/ConfigurationTask
Class to get information about Workflow Manager system configuration. The Workflow Manager system configuration consists of the following elements:
- Users - Users are key to controlling what functionality is available and how work is managed and executed by each user. Get the information about one user or all the users configured in the system.
- Groups - Groups are used to categorize users for many reasons, specifically to assign privileges or roles, but also to classify users for the purposes of assigning work. Get the information about one group or all the groups configured in the system.
- Queries - Queries return the jobs based on a specific criteria. They can be defined as a public query by an administrator or as user-owned query by an individual user. The public queries are available to all users, whereas the user-owned query is available only to the user who defined it. Get the configuration of public and user owned queries.
- Job Types - Job types provide a way to categorize your work and processes based on commonalities. Job types allow you to group similar types of work together. In doing this, you provide templates for each unit of work you manage, making the creation and execution of that work more efficient. Get details for a job type and all the job types a user can see and create.
- Table Relationships - Extended and linked properties are custom properties that enable you to store business-specific properties on a job. The information about what kind of extended or linked property relationships exist in the system can be retrieved.
- Data Workspace - The spatial data which will be used to work with jobs. Get the information about the spatial database and it's versions.
- Configuration properties - The configuration of the system such as Activity Types, Hold Types, Priorities, Status Types, Notification Types and Privileges.
Constructors
- new ConfigurationTask(properties)
- Parameter:properties Objectoptional
See the properties for a list of all the properties that may be passed into the constructor.
Property Overview
Name | Type | Summary | Class | |
---|---|---|---|---|
String | The name of the class. more details | more details | Accessor | |
Object | The options to be used for data requests. more details | more details | Task | |
String | URL to the ArcGIS Workflow Manager REST service. more details | more details | ConfigurationTask |
Property Details
- Since: ArcGIS API for JavaScript 4.7
The name of the class. The declared class name is formatted as
esri.folder.className
.
The options to be used for data requests. These options can also be controlled through the
requestOptions
method parameter.
- urlString
URL to the ArcGIS Workflow Manager REST service.
Method Overview
Name | Return Type | Summary | Class | |
---|---|---|---|---|
Promise<Object[]> | Gets an array of all the user groups that are configured in the Workflow Manager system. more details | more details | ConfigurationTask | |
Promise<Object[]> | Gets an array of all the users that are configured in the Workflow Manager system. more details | more details | ConfigurationTask | |
Promise<Object[]> | Gets the properties and an array of geodatabase versions for a data workspace. more details | more details | ConfigurationTask | |
Promise<Object[]> | Gets a single user group in the Workflow Manager system. more details | more details | ConfigurationTask | |
Promise<JobTypeDetails> | Gets the detailed configuration properties of a job type. more details | more details | ConfigurationTask | |
Promise<JobQueryDetails> | Gets the configuration of a publicly accessible job query. more details | more details | ConfigurationTask | |
Promise<WorkflowManagerServiceInfo> | Gets the configuration information specific to a Workflow Manager system. more details | more details | ConfigurationTask | |
Promise<TableRelationship> | Gets an array of registered table relationships in the Workflow Manager system. more details | more details | ConfigurationTask | |
Promise<UserDetails> | Gets information for a single user in the system. more details | more details | ConfigurationTask | |
Promise<JobQueryDetails> | Gets the configuration of a user-owned job query. more details | more details | ConfigurationTask | |
Promise<JobType> | Gets all the job types a user is allowed to see and create. more details | more details | ConfigurationTask |
Method Details
Gets an array of all the user groups that are configured in the Workflow Manager system.
Parameter:requestOptions ObjectoptionalAdditional options to be used for the data request (will override requestOptions defined during construction).
Returns:Type Description Promise<Object[]> Resolves to an array of groups, each group object having the following properties: Name Type Description description String The description of the group. id Number The unique id for the group. name String The name of the group. users String[] An array of users that belong to the group.
Gets an array of all the users that are configured in the Workflow Manager system.
Parameter:requestOptions ObjectoptionalAdditional options to be used for the data request (will override requestOptions defined during construction).
Returns:Type Description Promise<Object[]> Resolves to an array of users, each user object having the following properties: Name Type Description address String The address of the user. email String The email address of the user. faxNumber String The fax number of the user. firstName String The first name of the user. lastName String The last name of the user. fullName String The full name fo the user. phoneNumber String The phone number of the user. roomNumber String The room number of the user's office. userName String The username of the user. zipCode String The zip code of the user.
Gets the properties and an array of geodatabase versions for a data workspace.
Parameters:params ObjectSee the object specifications in table below for the structure of the
params
object.Specification:dataWorkspaceId StringThe unique id of the data workspace, whose version will be returned.
user StringThe user name of the user who is requesting the information.
requestOptions ObjectoptionalAdditional options to be used for the data request (will override requestOptions defined during construction).
Returns:Type Description Promise<Object[]> Resolves to an array of geodatabase versions, each version object having the following properties: Property Type Description id String The unique id for the data workspace. name String The name of the data workspace. defaultVersion String The name of the default version of the workspace. versions VersionInfo[] An array of versions in the geodatabase.
Gets a single user group in the Workflow Manager system.
Parameters:groupId NumberThe unique id of the group whose information will be retrieved.
requestOptions ObjectoptionalAdditional options to be used for the data request (will override requestOptions defined during construction).
Returns:Type Description Promise<Object[]> When resolved, returns a user group as an object with the following properties: Name Type Description description String The description of the group. email String The email address associated to the group. id Number The unique id for the group. name String The name of the group. privileges Privilege[] An array of privileges associated to the group. users String[] An array of name of users that belong to the group.
- getJobTypeDetails(jobTypeId, requestOptions){Promise<JobTypeDetails>}
Gets the detailed configuration properties of a job type.
Parameters:jobTypeId NumberThe unique id of a job type.
requestOptions ObjectoptionalAdditional options to be used for the data request (will override requestOptions defined during construction).
Returns:Type Description Promise<JobTypeDetails> When resolved, returns the detailed configuration properties of a job type as JobTypeDetails object.
- getPublicJobQueryDetails(queryId, requestOptions){Promise<JobQueryDetails>}
Gets the configuration of a publicly accessible job query.
Parameters:queryId NumberThe unique id of public query.
requestOptions ObjectoptionalAdditional options to be used for the data request (will override requestOptions defined during construction).
Returns:Type Description Promise<JobQueryDetails> When resolved, returns a JobQueryDetails object.
- getServiceInfo(requestOptions){Promise<WorkflowManagerServiceInfo>}
Gets the configuration information specific to a Workflow Manager system.
Parameter:requestOptions ObjectoptionalAdditional options to be used for the data request (will override requestOptions defined during construction).
Returns:Type Description Promise<WorkflowManagerServiceInfo> When resolved, returns the WorkflowManagerServiceInfo object with configuration information for a Workflow Manager system.
- getTableRelationshipsDetails(requestOptions){Promise<TableRelationship>}
Gets an array of registered table relationships in the Workflow Manager system.
Parameter:requestOptions ObjectoptionalAdditional options to be used for the data request (will override requestOptions defined during construction).
Returns:Type Description Promise<TableRelationship> When resolved, returns an array of TableRelationship object.
- getUser(user, requestOptions){Promise<UserDetails>}
Gets information for a single user in the system.
Parameters:user StringThe user name of the user whose information will be returned.
requestOptions ObjectoptionalAdditional options to be used for the data request (will override requestOptions defined during construction).
Returns:Type Description Promise<UserDetails> When resolved, returns a UserDetails object.
- getUserJobQueryDetails(params, requestOptions){Promise<JobQueryDetails>}
Gets the configuration of a user-owned job query.
Parameters:params ObjectSee the object specifications in table below for the structure of the
params
object.Specification:queryId NumberThe unique id of user query.
user StringThe user name of the user who is requesting the information.
requestOptions ObjectoptionalAdditional options to be used for the data request (will override requestOptions defined during construction).
Returns:Type Description Promise<JobQueryDetails> When resolved, returns a JobQueryDetails object. Example:var params = { queryId: 43, user: "cjones" }; configurationTask.getUserJobQueryDetails(params).then(function(jobQueryDetails){ var jobQueryName = jobQueryDetails.name; var jobQueryFields = jobQueryDetails.fields; var jobQueryTables = jobQueryDetails.tables; . . . });
Gets all the job types a user is allowed to see and create.
Parameters:user StringThe user name of the user for whom the information will be retrieved.
requestOptions ObjectoptionalAdditional options to be used for the data request (will override requestOptions defined during construction).
Returns:Type Description Promise<JobType> When resolved, returns an array of JobType objects.
Type Definitions
- DataWorkspaceObject
A geospatial database that will be used for editing in the Workflow Manager system.
- GroupMembershipObject
The membership attributes of a group.
- HoldTypeObject
The type of hold that can be applied to suspend the execution of a job.
- JobPriorityObject
The properties of a job priority. Job priority is a way to assign a level of importance to the job.
- JobQueryObject
A query that is available to the user to execute. A query returns jobs based on a specific criteria.
- JobQueryContainerObject
A container of job queries, it can also contain nested containers with child job query containers under it.
- Properties:
- containers JobQueryContainer[]
One or more job query containers which are nested under the parent container.
id NumberThe unique id for the container.
name StringThe name of the query container.
queries JobQuery[]An array of queries inside the query container.
- JobQueryDetailsObject
Detailed properties of a job query.
- Properties:
- aliases String[]
An array of field aliases included in the select statement.
fields String[]An array of fields included in the select statement.
id NumberThe unique id for the query.
name StringThe name of the query.
orderBy StringThe field used to order the results returned by the query.
tables String[]An array of tables selected from and used in the where clause.
where StringThe where clause used as filter for selecting job information.
- JobStatusObject
Properties of a job status.
- JobTypeObject
A list of properties that describe a job type.
- JobTypeDetailsObject
Detailed information of a job type.
- Properties:
- autoExecuteCreatedJobs Boolean
Indicates whether jobs of this type will have their workflows automatically executed, when created.
canDataWorkspaceChange BooleanIndicates whether jobs of this type allows users to modify the current data workspace in the job.
category StringThe category of the job type.
defaultAssignedTo StringThe name of the user or group that the job will be assigned to by default.
defaultAssignedType StringIndicates whether the job is assigned to a user, group or unassigned by default.
Possible Values: unassigned | user | group
defaultDataWorkspaceId StringThe unique id of the default data workspace of the job.
defaultDescription StringThe description that gets associated with the job.
defaultDueDate StringThe default due date of the job.
defaultJobDuration NumberThe duration for completing the job assigned by default.
defaultParentVersionName StringThe name of the geodatabase version that will be assigned the parent version of the job's geodatabase by default.
defaultPriority StringThe numeric priority value assigned to the job by default.
defaultStartDate DateThe default start date of this job type.
description StringThe description of the job type.
id StringThe unique id automatically generated for this job type.
jobNamingScheme StringThe naming scheme for this job type, which would serve as template for the name of the job.
jobVersionNamingScheme StringThe naming scheme for this job type, which would serve as template for the name of job's version.
mxdNamingScheme StringThe naming scheme for this job type, which would serve as template for the name of job's map.
name StringThe job type name.
state StringThe state of the job type.
Possible Values: draft | active | retired
- PrivilegeObject
A privilege in the Workflow Manager system that controls application access.
- TableRelationshipObject
TableRelationship represents a list of extended properties tables and the properties that identify them like name and cardinality.
- Properties:
- cardinality String
The type of extra property table relationship, one-to-one represents one row for each property and one-to-many represents there will be multiple values for the property.
Possible Values: one-to-one | one-to-many
linkField StringThe foreign key field used to join the jobs table.
tableAlias StringThe alias name of the table.
tableName StringThe name of the extended properties table.
- UserDetailsObject
A list of properties including groups and privileges associated with a Workflow Manager user.
- Properties:
- address String
The address of the user.
email StringThe email address of the user.
faxNumber StringThe fax number of the user.
firstName StringThe first name of the user.
fullName StringThe full name of the user.
groups GroupMembership[]An array of group memberships of the user.
lastName StringThe last name of the user.
phoneNumber StringThe phone number of the user.
privileges Privilege[]An array of application privileges of the user.
roomNumber StringThe room number of the user.
userName StringThe login username for the user.
userQueries JobQueryContainer[]An array of queries owned by the user.
zipCode StringThe zip code of the user.
- VersionInfoObject
A list of properties that describe a geodatabase version.
- WorkflowManagerServiceInfoObject
The base properties of a Workflow Manager service.
- Properties:
- activityTypes ActivityType[]
An array of activity types in the Workflow Manager system.
configProperties ObjectThe configuration properties of the Workflow Manager system stored in the database table as key/value pairs.
- Specification:
- AOIOVERLAP String
Indicates whether the location of interest (LOI) for jobs are allowed to overlap.
AOISELECTIONCOLOR NumberThe color of the current job's LOI when selected in the LOI tab. The value is in range of 0 to 167772155.
AUTOASSIGNJOB BooleanIndicates whether the job will be automatically assigned based on step assignment.
AUTOCLOSEJOB BooleanIndicates whether the job will be automatically closed after the last step in the workflow is marked as complete.
AUTOCOMMITWORKFLOW BooleanIndicates whether the job workflow witll be automatically committed to the database when saved.
AUTOSTATUSASSIGN BooleanIndicates whether the status of the jobs will be automatically assigned.
CONFIRMPROCEDURALCHECK BooleanIndicates whether the user will be required to confirm that they want to mark the current procedural step as complete.
DEFAULT_SENDER_EMAIL StringThe default email address to be used in the sender field when sending notifications.
DEFAULT_SENDER_NAME StringThe default name displayed to be used in the sender field when sending notifications.
HTML_SUPPORT StringIndicates whether notifications will be sent as HTML.
JOB_ID_START_VALUE StringThe starting value of job ids in the system.
PENDING_DAYS_USE_HOLDS BooleanIndicates whether the the number of days for each hold is taken out of the pending days calculation.
PROMPTSDEPWD BooleanIndicates whether the user attempting to delete a job version would be prompted to enter a password for the sde owner of the versions.
REQUIREPROCEDURALCHECKSTART NumberIndicates whether it will be required to mark procedural steps as started.
RESTRICT_AOI_OPTION StringIndicates whether the editing behavior will be restricted to data in the job's AOI using editing restriction rules.
Possible Values: Warn | NoSelect | Off
Warn
- Warn users when selecting features outside the job AOI.NoSelect
- Prevent users from selecting features outside the job AOI.Off
- Allow edits to features outside the job AOI.
SEND_SN_CUSTOM_POST BooleanIndicates whether the spatial notifications will be sent on Workflow Manager Post.
SHOW_STEP_IDS BooleanIndicates whether to show step ids on workflow.
SHOW_STEP_PERCENT_COMPLETE BooleanIndicates whether the step completion percentage will be displayed on the step.
SMTP_PASSWORD StringThe password of the authenticated SMTP user in the secure SMTP server.
SHOW_PENDING_DAYS BooleanIndicates whether the pending days will be displayed in the job.
SMTP_PORT StringThe SMTP server port to be used for sending notifications.
SMTP_PROTOCOL StringSMTP Authentication protocol.
Possible Values: SSL | TLS
SMTP_SERVER StringThe name of the SMTP Server to be used for sending notifications.
SMTP_USERNAME StringThe user name that is authenticated in the secure SMTP server.
USE_STEP_STATUS BooleanIndicates whether to use step status assignment such that the job's status updates to match the step status when the step is reached.
USER_STORE StringIndicates the user store of the Workflow Manager system, whether the users will be stored in a Portal or the Workflow Manager system.
Possible Values: traditional | portal
USEUSERDOMAIN BooleanIndicates whether a user will be authenticated using domain along with the user name.
WF_SEL_STEP_FILL_COLOR NumberThe fill color of a selected step in a workflow. The value is in range of 0 to 167772155. When the option is disabled it's value is -1.
WF_SEL_STEP_OUTLINE_COLOR NumberThe outline color of a selected step in a workflow. The value is in range of 0 to 167772155. When the option is disabled it's value is -1.
WF_SEL_STEP_OUTLINE_WIDTH NumberThe outline width of a selected step in a workflow.
Possible Values: 1 | 2 | 3
AOIOVERLAP StringIndicates whether the location of interest (LOI) for jobs are allowed to overlap. The LOI may overlap another job's LOI, or may not be allowed to overlap any other LOI in the system. They can also be set such that LOIs for jobs of the same job type cannot overlap each other.
Possible Values: allow | disallow | disallowjobtype
ZOOMTOAOI BooleanIndicates whether the LOI of the job will be automatically zoomed to in the LOI tab.
currentVersion NumberThe current software version.
dataWorkspaces DataWorkspace[]An array of data workspaces in the Workflow Manager system.
holdTypes HoldType[]An array of hold types in the Workflow Manager system.
jobPriorities JobPriority[]An array of job priorities in the Workflow Manager system.
jobStatuses JobStatus[]An array of job statuses in the Workflow Manager system.
jobTypes JobType[]An array of job types in the Workflow Manager system.
notificationTypes NotificationType[]An array of notification types in the Workflow Manager system.
privileges Privilege[]An array of privileges in the Workflow Manager system.
publicQueries JobQueryContainer[]The array of public queries.