Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does PublishTransactionsFilter exist on Tridion versions before 2011?

Tags:

tridion

I am trying to use Alex Klock's solution with regards to querying the publishingqueue to see if in item is already still in it. His post about it is here: http://www.codedweapon.com/2012/03/tridion-publishengine/

I am using Tridion 2009 SP1, but it seems I don't have PublishTransactionsFilter available in my code abse. In the top of my file I did include: using Tridion.Contentmanager.Publishing;

Any exmaple on how to get something similar to work in Tridion 2009? Especially the PublishEngine.GetPublishTransactions method. I can't find a similar method in the 2009 API. Only methods which need a specific TCMUri or XML.

like image 205
Hendrik Beenker Avatar asked Mar 15 '12 13:03

Hendrik Beenker


2 Answers

You will need to use the ManagementInfo Class which is documented in the 'Templating and Customization Manual TOM 2009 SP1.chm' help file that comes SDL Tridion 2009.

To quote:

The ManagementInfo object supports the following methods:

GetListPublishQueue Gets a list of items in the publishing queue(s) or scheduler. GetListPublishTransactions Gets a list of publish transactions

GetListPublishQueue: Summary - Gets a list of items in the publishing queue(s) or scheduler.

These classes and methods are contained in the COM version of the TOM DLL so you will need to use Interop to access this from Microsoft.NET

like image 176
Chris Summers Avatar answered Nov 12 '22 23:11

Chris Summers


Yes you found it yourself but indeed just to confirm, the GetPublishTransactions method is specific to SDL Tridion 2011.

The code on the link you provided is using the 2011 API of looking into the queue.

like image 30
Julian Wraith Avatar answered Nov 12 '22 23:11

Julian Wraith