ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Connect

  • Summary
  • Discussion
  • Syntax
  • Code sample

Summary

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

Discussion

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.

Syntax

Connect ({jtc_path})
ParameterExplanationData Type
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

Return Value

Data TypeExplanation
WorkflowConnection

Returns the Workflow Manager (Classic) connection as a WorkflowConnection.

Code sample

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()

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

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

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal