Connect

サマリー

Establishes a connection to a Workflow Manager (Classic) database.

説明

To begin using ArcPy for Workflow Manager (従来版), a connection to a Workflow Manager (従来版) database must be created. This can be done through Connect to a .jtc file stored on disk or to the Workflow Manager (従来版) connection in the Project if no .jtc file is specified.

構文

Connect ({jtc_path})
パラメーター説明データ タイプ
jtc_path

The path to the Workflow Manager (従来版) .jtc connection file. If no file is specified, the current Workflow Manager (従来版) connection in the Project will be used.

String
戻り値
データ タイプ説明
WorkflowConnection

Returns the Workflow Manager (従来版) connection as a WorkflowConnection.

コードのサンプル

The following script creates a connection to a Workflow Manager (従来版) database using a .jtc file.

import arcpy

#Establish a connection to a Workflow database
conn = arcpy.wmx.Connect(r'c:\test\Workflow.jtc')

The following script creates a connection to the Workflow Manager (従来版) database defined in the Project.

import arcpy

#Establish a connection to a Workflow database
conn = arcpy.wmx.Connect()