概要
Establishes a connection to a Workflow Manager (Classic) database.
ディスカッション
To begin using ArcPy for Workflow Manager (Classic), a connection to a Workflow Manager (Classic) database must be established. This can be done through Connect to a .jtc file stored on disk or to the default Workflow Manager (Classic) database if no .jtc file is specified.
構文
Connect ({jtc_path})
パラメーター | 説明 | データ タイプ |
jtc_path | The path to the Workflow Manager (Classic) .jtc connection file. If no connection file is specified, the current default Workflow Manager (Classic) database will be used. | String |
戻り値
データ タイプ | 説明 |
WorkflowConnection | Returns the Workflow Manager (従来版) connection as a WorkflowConnection. |
コードのサンプル
The following script creates a connection to a Workflow Manager (Classic) database using a .jtc file.
import arcpy
import arcpywmx
# Establish a connection to a Workflow database
conn = arcpywmx.Connect(r'c:\test\Workflow.jtc')
The following script creates a connection to the current default Workflow Manager (Classic) database.
import arcpy
import arcpywmx
# Establish a connection to a Workflow database
conn = arcpywmx.Connect()