當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Python ArcGIS JobTemplate.update_automated_creation用法及代碼示例

本文簡要介紹 python 語言中 arcgis.gis.workflowmanager.JobTemplate.update_automated_creation 的用法。

用法:

update_automated_creation(adds=None, updates=None, deletes=None)

返回:

成功對象

創建一個自動創建

Parameter

Description

adds

可選列表。要創建的自動創建的列表。

updates

可選列表。要更新的自動創作列表

deletes

可選列表。要刪除的自動創建 ID 列表

例子:

# USAGE EXAMPLE: Creating a automated creation for a job template

# create a WorkflowManager object from the workflow item
wm = WorkflowManager(wf_item)

# create the props object with the required automation properties
adds = [{
            "automationName": "auto_mation",
            "automationType": "Scheduled",
            "enabled": True,
            "details": "{"timeType":"NumberOfDays","dayOfMonth":1,"hour":8,"minutes":0}"
        }]
updates = [
        {
          "automationId": "abc123",
          "automationName": "automation_updated"
        }
      ]
deletes =  ["def456"]

wm.update_automated_creation(adds, updates, deletes)
>> True  # returns true if created successfully

相關用法


注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.gis.workflowmanager.JobTemplate.update_automated_creation。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。