本文简要介绍 python 语言中 arcgis.gis.workflowmanager.JobManager.update
的用法。
用法:
update(job_id, update_object)
返回:
成功对象
按 ID 更新作业对象
Parameter
Description
job_id
必需的字符串。要更新的作业的 ID
update_object
必需的对象。包含要添加到作业的字段和新值的对象
例子:
# USAGE EXAMPLE: Updating a Job's properties # create a WorkflowManager object from the workflow item >>> workflow_manager = WorkflowManager(wf_item) >>> job = workflow_manager.jobs.get(job_id) >>> job.priority = 'Updated' >>> table_name = job.extended_properties[0]["tableName"] >>> job.extended_properties = [ { "identifier": table_name + ".prop1", "value": "updated_123" }, { "identifier": table_name + ".prop2", "value": "updated_456" }, ] >>> workflow_manager.jobs.update(job_id, vars(job))
相关用法
- Python ArcGIS JobTemplate.update_automated_creation用法及代码示例
- Python ArcGIS power用法及代码示例
- Python ArcGIS APIKeyManager.get用法及代码示例
- Python ArcGIS KnowledgeGraph.named_object_type_delete用法及代码示例
- Python ArcGIS ContentManager.unshare_items用法及代码示例
- Python ArcGIS ImageryLayer.thumbnail用法及代码示例
- Python ArcGIS FormFieldElement用法及代码示例
- Python ArcGIS Geometry.true_centroid用法及代码示例
- Python ArcGIS Site.delete用法及代码示例
- Python ArcGIS GeoAccessor.bbox用法及代码示例
- Python arcgis.apps.hub.Initiative.update用法及代码示例
- Python ArcGIS generate_service_areas用法及代码示例
- Python ArcGIS build_overview用法及代码示例
- Python ArcGIS RunInterval用法及代码示例
- Python ArcGIS describe_dataset用法及代码示例
- Python ArcGIS acos用法及代码示例
- Python ArcGIS Item.publish用法及代码示例
- Python ArcGIS MapImageLayer.find用法及代码示例
- Python ArcGIS Group.get_members用法及代码示例
- Python ArcGIS Geometry.last_point用法及代码示例
- Python ArcGIS Worker用法及代码示例
- Python ArcGIS ContentManager.delete_folder用法及代码示例
- Python ArcGIS train_classifier用法及代码示例
- Python ArcGIS APIKeyManager.create用法及代码示例
- Python ArcGIS negate用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 arcgis.gis.workflowmanager.JobManager.update。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。