Job Id from inside ArcMap in AddIn

1930
1
Jump to solution
03-23-2014 07:39 PM
FraserHand
Occasional Contributor III
Hi There,
I want to be able to get the current job id from inside ArcMap so I can store it on features. Has anyone got a code snippet on how I access the WMX stuff from ArcMap?
Thx,
Fraser
0 Kudos
1 Solution

Accepted Solutions
FraserHand
Occasional Contributor III
Actually it's pretty easy, something along the lines of:

IExtensionManager ext =  ArcMap.Application as IExtensionManager;
IJTXExtension4 WFext = ext.FindExtension("Workflow Manager") as IJTXExtension4;

Then from there you can do stuff like WFext.JobID or wire up listeners etc.

Cheers

View solution in original post

0 Kudos
1 Reply
FraserHand
Occasional Contributor III
Actually it's pretty easy, something along the lines of:

IExtensionManager ext =  ArcMap.Application as IExtensionManager;
IJTXExtension4 WFext = ext.FindExtension("Workflow Manager") as IJTXExtension4;

Then from there you can do stuff like WFext.JobID or wire up listeners etc.

Cheers
0 Kudos