We have a workflow which locks the component on save and goes through the various approval steps.
However, in child publications if any operation is being performed, I want to check on the basis of events performed on that, only if the component is not in the workflow.
I tried using
component.GetProcessDefinition() != null
bu this condition holds true if any workflow is enabled for the component whereas I want to see if the component is in the workflow but with TOM.NET.
Any help would be appreciated.