import UpdateFeaturesWorkflow from "@arcgis/core/widgets/Editor/UpdateFeaturesWorkflow.js";
const UpdateFeaturesWorkflow = await $arcgis.import("@arcgis/core/widgets/Editor/UpdateFeaturesWorkflow.js");
@arcgis/core/widgets/Editor/UpdateFeaturesWorkflow
The UpdateFeaturesWorkflow class contains the logic used when updating and/or deleting features using
the Editor widget.
Constructors
-
Parameterproperties Objectoptional
See the properties for a list of all the properties that may be passed into the constructor.
Property Overview
| Name | Type | Summary | Class |
|---|---|---|---|
The shared workflow data. | Workflow | ||
The name of the class. | Accessor | ||
This property indicates whether there is a next step in the workflow. | Workflow | ||
This property indicates if there is a previous step in the workflow. | Workflow | ||
Indicates whether the workflow is considered active. | Workflow | ||
The name of the current step in the workflow. | Workflow | ||
Value indicating the workflow type. | Workflow |
Property Details
-
data
InheritedPropertydata CreateFeaturesWorkflowData |MergeFeaturesWorkflowData |SplitFeatureWorkflowData |UpdateWorkflowData |UpdateFeaturesWorkflowDatareadonlyInherited from Workflow -
The shared workflow data. This can be either CreateFeaturesWorkflowData, UpdateWorkflowData, UpdateFeaturesWorkflowData.
-
type
InheritedPropertytype StringreadonlyInherited from Workflow -
Value indicating the workflow type.
Possible Value Description create-features This allows the end user to create either individual or continuous features in the feature service. (Since 4.23) update This allows the end user to update and/or delete features in the feature service. These workflows are only enabled if the feature service allows these operations.
Possible Values:"add-association" |"create-features" |"merge-features" |"split-feature" |"update" |"update-feature" |"update-features" |"update-table-record"
Method Overview
| Name | Return Type | Summary | Class |
|---|---|---|---|
Adds one or more handles which are to be tied to the lifecycle of the object. | Accessor | ||
Promise<void> | Cancels the active workflow. | Workflow | |
Promise<void> | Call this method when the workflow is considered finished. | Workflow | |
Returns true if a named group of handles exist. | Accessor | ||
Promise<void> | Moves to the next step in the workflow. | Workflow | |
Promise<void> | Moves to the previous step in the workflow. | Workflow | |
Removes a group of handles owned by the object. | Accessor | ||
Promise<void> | Resets the workflow. | Workflow | |
Promise<any> | Starts the workflow. | Workflow |
Method Details
-
Inherited from Accessor
-
Adds one or more handles which are to be tied to the lifecycle of the object. The handles will be removed when the object is destroyed.
// Manually manage handles const handle = reactiveUtils.when( () => !view.updating, () => { wkidSelect.disabled = false; }, { once: true } ); this.addHandles(handle); // Destroy the object this.destroy();ParametershandleOrHandles WatchHandle|WatchHandle[]Handles marked for removal once the object is destroyed.
groupKey *optionalKey identifying the group to which the handles should be added. All the handles in the group can later be removed with Accessor.removeHandles(). If no key is provided the handles are added to a default group.
-
Inherited from Workflow
-
Call this method when the workflow is considered finished. This is used to help process the editing results.
ReturnsType Description Promise<void> Resolves when the active workflow commits and processes the edited results.
-
hasHandles
InheritedMethodhasHandles(groupKey){Boolean}Inherited from Accessor -
Returns true if a named group of handles exist.
ParametergroupKey *optionalA group key.
ReturnsType Description Boolean Returns trueif a named group of handles exist.Example// Remove a named group of handles if they exist. if (obj.hasHandles("watch-view-updates")) { obj.removeHandles("watch-view-updates"); }
-
Inherited from Workflow
-
Moves to the next step in the workflow.
ReturnsType Description Promise<void> Resolves when moved to the next step within the active workflow.
-
Inherited from Workflow
-
Moves to the previous step in the workflow.
ParametersReturnsType Description Promise<void> Resolves when moved to the previous step within the active workflow.
-
Inherited from Accessor
-
Removes a group of handles owned by the object.
ParametergroupKey *optionalA group key or an array or collection of group keys to remove.
Exampleobj.removeHandles(); // removes handles from default group obj.removeHandles("handle-group"); obj.removeHandles("other-handle-group");
-
Inherited from Workflow
-
Resets the workflow.
ReturnsType Description Promise<void> Resolves when the active workflow is reset.
-
Inherited from Workflow
-
Starts the workflow.
ReturnsType Description Promise<any> Resolves when the active workflow starts.