ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for 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
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Connect

  • Summary
  • Discussion
  • Syntax
  • Code Sample

Summary

Establishes a connection to a Workflow Manager database.

Discussion

To begin using ArcPy for Workflow Manager, a connection to a Workflow Manager database must be established. This can be done through Connect to a .jtc file stored on disk or to the default Workflow Manager database if no .jtc is specified.

Syntax

Connect ({jtc_path})
ParameterExplanationData Type
jtc_path

The path to the Workflow Manager .jtc connection file. If no connection file is specified, the current default Workflow Manager database will be used.

String

Return Value

Data TypeExplanation
WorkflowConnection

Returns the Workflow Manager connection as a WorkflowConnection.

Code Sample

The following script creates a connection to a Workflow Manager 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 database.

import arcpy
import arcpywmx

#Establish a connection to a Workflow database
conn = arcpywmx.Connect()
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal