Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tridion - Placing Item in Workflow from Event

Is it possible to place an item in workflow from the event system? The problem I am facing is that we would like to direct components to two different workflows based on what folder they are in (instead of what schema they use), which the Tridion UI doesn't seem to support. I was hoping to write an event that is triggered on check-in of a component, so I can then determine which folder that component is in and direct it into the appropriate workflow from the event.

I'm fine with creation of the event, I'm just totally lost on where to start as far as adding the item to workflow goes. I have looked at the TOM.NET API documentation but really haven't found anything that helps. Any assistance or examples would be appreciated.

like image 844
Andrew Keller Avatar asked Aug 13 '12 14:08

Andrew Keller


2 Answers

As @Jeremy suggests, what you are actually trying to do is not possible.

However you can achieve the same outcome by making the second step of your workflow an automated decision which creates 2 separate workflow branches within one workflow process definition. Your automated decision can read the Org Item of the component and direct it accordingly.

like image 71
Chris Summers Avatar answered Nov 02 '22 01:11

Chris Summers


This is not possible - a Component is only added to a WF process when it is saved and its Schema has an associated process definition.

like image 25
Jeremy Grand-Scrutton Avatar answered Nov 02 '22 00:11

Jeremy Grand-Scrutton