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

ActivityType

  • Summary
  • Discussion
  • Properties
  • Code sample

Summary

The ActivityType object provides access to the activity type configuration element in the Workflow Manager (Classic) database.

Discussion

An activity type is a template for logging history throughout the life cycle of the job. Activity types have two main purposes: provide a configurable message template to be stored with history and give the message a tag so it can be sorted or queried against later. For example, the job history can be queried with the AssignJob activity type to find out the number of times a job was reassigned.

Properties

PropertyExplanationData Type
ID
(Read Only)

The ID of the ActivityType.

Integer
name
(Read Only)

The name of the ActivityType.

String

Code sample

The following example reassigns a job to a group and logs an AssignJob activity type on the job.

import arcpy
import arcpywmx

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

# Access a Workflow Job 
job = conn.getJob(99999)

# Change the assignment of the job to Editors group
job.assignedTo = "Editors"

# Log an activity for the reassignment of the job
job.logActivity('AssignJob', 'Job assigned to Editors group.')

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