The ActivityType object provides access to the activity type configuration element in the Workflow Manager database.
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.
The ID of the ActivityType.
The name of the ActivityType.
The following example reassigns a job to a group and logs an AssignJob activity type on the job.
import arcpy #Establish a connection to a Workflow database conn = arcpy.wmx.Connect(r'c:\test\Workflow.jtc') #Access a Workflow Job job = conn.getJob(99999) #Change the assignment of the job to Editors group job.assignedType='Group' job.assignedTo='Editors' job.save() #Log an activity for the reassignment of the job job.logActivity('AssignJob','Job assigned to Editors group.')