ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • ヘルプ
  • Sign Out
ArcGIS Desktop

ArcGIS Online

組織のマッピング プラットフォーム

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS Developers

位置情報利用アプリの開発ツール

ArcGIS Solutions

各種業界向けの無料のテンプレート マップおよびテンプレート アプリケーション

ArcGIS Marketplace

組織で使えるアプリとデータを取得

  • ドキュメント
  • サポート
Esri
  • サイン イン
user
  • マイ プロフィール
  • サイン アウト

ArcMap

  • ホーム
  • はじめに
  • マップ
  • 解析
  • データ管理
  • ツール
  • エクステンション

JobTypeDescription

  • 概要
  • ディスカッション
  • プロパティ
  • コードのサンプル

概要

The JobTypeDescription provides access to job type properties that can be customized before creating a job.

ディスカッション

The properties of the job type that can be customized and assigned to a new job being created.

プロパティ

プロパティ説明データ タイプ
AOI
(読み書き)

The polygon object to be used as the AOI of the job. A list of polygon objects can be provided to create multiple jobs. One job is created for each polygon object provided and the polygon is used to create the AOI of the job.

レガシー:

This property has been deprecated. Use LOI instead.

Polygon
assignedTo
(読み書き)

The user name or group name the job will be assigned to.

String
assignedType
(読み書き)

The type of assignment for the job. Below is a list of valid strings to use when setting the job assignment.

  • User —A user in the workflow database
  • Group —A group in the workflow database
  • Unassigned —No job assignment
String
autoCommitWorkflow
(読み書き)

Indicates whether the workflows are automatically ready for execution when the job is created.

  • True —The workflow is automatically ready for execution when the job is created.
  • False —The workflow must be committed to the database after the job is created.
Boolean
autoExecuteOnCreate
(読み書き)

Indicates whether the job will be automatically executed after it is created.

  • True —The job automatically starts execution after it is created.
  • False —The job does not automatically start execution after it is created.
Boolean
createdBy
(読み書き)

The user name that will be set as the creator of the job.

String
dataWorkspaceID
(読み書き)

The ID of the data workspace to be set as the data workspace of the job.

String
description
(読み書き)

A description about the job type.

String
dueDate
(読み書き)

The due date that will be assigned to the job.

DateTime
extendedProperties
(読み書き)

A dictionary containing the extended property tables of the job type. Each individual table can be obtained as its own dictionary using the table's name, and new values will be added to the table and saved back to the job type in advance of job creation. A sample is shown below.

Dictionary
jobName
(読み書き)

The template for the name of the job.

String
jobTypeName
(読み書き)

The name of the job type that will be used to create a job.

String
LOI
(読み書き)

The geometry object to be used as the LOI of the job. A list of polygon or point objects can be provided to create multiple jobs. One job is created for each point or polygon object provided and the geometry is used to create the LOI of the job.

Geometry
ownedBy
(読み書き)

The user who is the owner of the job.

String
parentJobID
(読み書き)

The ID of the job that would be the parent of the job created.

Integer
parentJobName
(読み書き)

The name of the job that would be the parent of the job created.

String
parentVersionName
(読み書き)

The name of the version that would be the parent version created for the job.

String
prefix
(読み書き)

The prefix to be added to the name of the job.

String
priority
(読み書き)

The priority to be assigned to the job after its creation.

Integer
startDate
(読み書き)

The date when the job will be started.

DateTime
suffix
(読み書き)

The suffix to be added to the name of the job.

String
unionAOI
(読み書き)

Indicates whether the list of polygon objects passed as the AOI will be merged to create one job or multiple jobs.

  • True —The workflow is automatically ready for execution when the job is created.
  • False —The workflow must be committed to the database after the job is created.
レガシー:

This property has been deprecated. Use unionLOI instead.

Boolean
unionLOI
(読み書き)

Indicates whether the list of polygon or point objects passed as the LOI will be merged to create one job or multiple jobs.

  • True —The workflow is automatically ready for execution when the job is created.
  • False —The workflow must be committed to the database after the job is created.
Boolean
versionName
(読み書き)

The name of the version that would be the version associated with the job.

String

コードのサンプル

The following script gets the job type description and updates two extended property table values prior to job creation.

# coding: utf-8
import arcpy
import arcpy_wmx
conn = arcpy_wmx.Connect()

# Get the job type description dictionary
MyDesc = conn.config.getJobTypeDescription(job_type_id = 401)
MyDesc
# Output of MyDesc {'auto_execute_on_create': False, 'start_date': datetime.datetime(2015, 5, 18, 12, 0), 'priority': 0, 'parent_job_name': None, 'extended_properties': {'WMXTest.DBO.extendedtest1_1': None, 'WMXTest.DBO.good_ext': None, 'WMXTest.DBO.extendedtest1': None}, 'job_type_name': 'Work Order', 'owned_by': 'will7692', 'prefix': None, 'aoi': None, 'version_name': None, 'due_date': datetime.datetime(2015, 2, 24, 12, 0), 'assigned_type': 'Unassigned', 'job_name': None, 'created_by': None, 'description': None, 'parent_version_name': None, 'parent_job_id': 0, 'suffix': None, 'assigned_to': None, 'data_workspace_id': None, 'auto_commit_workflow': True}

# Get the extended_properties dictionary
ext_prop = MyDesc['extended_properties']
ext_prop
# Output of ext_prop showing the extended property tables available as a dictionary{'WMXTest.DBO.extendedtest1_1': None, 'WMXTest.DBO.good_ext': None, 'WMXTest.DBO.extendedtest1': None}

# Defining variables of new values, for linked properties those are lists.
ext_prop_dict = {'prop_name_1' : 'prop_value_1', 'prop_name_2' : 'prop_value_2' }
linked_prop_list = [ext_prop_dict, ext_prop_dict]

# Setting them in ext_prop
ext_prop['WMXTest.DBO.extendedtest1_1'] = ext_prop_dict
ext_prop['WMXTest.DBO.good_ext'] = linked_prop_list
ext_prop
# {'WMXTest.DBO.extendedtest1_1': {'prop_name_2': 'prop_value_2', 'prop_name_1': 'prop_value_1'}, 'WMXTest.DBO.good_ext': [{'prop_name_2': 'prop_value_2', 'prop_name_1': 'prop_value_1'}, {'prop_name_2': 'prop_value_2', 'prop_name_1': 'prop_value_1'}], 'WMXTest.DBO.extendedtest1': None}

#Applying the ext_prop dictionary back the MyDesc dictionary
MyDesc['extended_properties'] = ext_prop
MyDesc

# New output of MyDesc {'auto_execute_on_create': False, 'start_date': datetime.datetime(2015, 5, 18, 12, 0), 'priority': 0, 'parent_job_name': None, 'extended_properties': {'WMXTest.DBO.extendedtest1_1': {'prop_name_2': 'prop_value_2', 'prop_name_1': 'prop_value_1'}, 'WMXTest.DBO.good_ext': [{'prop_name_2': 'prop_value_2', 'prop_name_1': 'prop_value_1'}, {'prop_name_2': 'prop_value_2', 'prop_name_1': 'prop_value_1'}], 'WMXTest.DBO.extendedtest1': None}, 'job_type_name': 'Work Order', 'owned_by': 'will7692', 'prefix': None, 'aoi': None, 'version_name': None, 'due_date': datetime.datetime(2015, 2, 24, 12, 0), 'assigned_type': 'Unassigned', 'job_name': None, 'created_by': None, 'description': None, 'parent_version_name': None, 'parent_job_id': 0, 'suffix': None, 'assigned_to': None, 'data_workspace_id': None, 'auto_commit_workflow': True}

# Create a job using the new job description
job = conn.createJob(job_type_description = MyDesc)

ArcGIS Desktop

  • ホーム
  • ドキュメント
  • サポート

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Esri について

  • 会社概要
  • 採用情報
  • Esri ブログ
  • ユーザ カンファレンス
  • デベロッパ サミット
Esri
ご意見・ご感想をお寄せください。
Copyright © 2021 Esri. | プライバシー | リーガル