Executing WMX Daily for QC

3576
3
05-01-2015 11:39 AM
AnthonyBarron
New Contributor III

Hello,

I am trying to automate a WMX job to execute every 24 hours. Our process is Windows Task Scheduler will execute a python script to execute a WMX job. We are working with ArGIS Desktop 10.2.2.  From my research, I cannot find any python code examples with how to execute a WMX job. I have found the tools listed below but none of them seem to be able to execute a job. So if there is no way to necessarily excute a job, is there a way I can configure settings in WMX to execute ever 24 hours? Whats the most efficient way? Thank you.

Clear Job Replication Information
Export Job Data
Get Job AOI
Get Job Data Workspace
Get Job Parent Version
Get Job Version
Import Job Data
Post Job Version
Replicate Job Data

Synchronize Job Data

0 Kudos
3 Replies
AlisonGaiser1
Occasional Contributor

Not sure if this would work or not, but there appears to be a sample script called CreateJobsBasedOnFC.py. Could you use this base code to help you create the job? Then make sure to set the Job Type to Auto-execute workflow upon job creation.

Just an idea,

     Alison

AnthonyBarron
New Contributor III

Alison thanks for the response. Can you tell me where I can find the sample script? Also, I've found that with the release of 10.3 there is a createjob tool in the WMX toolbox and within WMX the job type can be set to autoexecute upon job creation. So that is one solution. Unfortunately, we are not working with 10.3 yet. As a temporary solution we are using the python script to launch a model which includes the batch job and other custom tools. We are still testing it out now, but I'd defnitiely be interested in seeing the createjobsbasedonFC.py file if you have it available. Thanks!

0 Kudos
AlisonGaiser1
Occasional Contributor

It is part of the Workflow Manager Administration Utilities. You can download it from here.

http://www.arcgis.com/home/item.html?id=387ce7914cde4744b549b934959a0b5f

Then you will find it under ArcToolbox\Scripts

Good luck!

0 Kudos