In Tridion 2011 SP1, Event System, I try to get the WorkItem of an object that I know works in the workflow, but I donβt know in which WorkList it can be.
Scenario description:
- The page should remain locked while this component is in the workflow.
- If the state of the working component of the component changes, the state of the page must also change.
What I thought about doing was an Event raised by FinishActivityEventArgs, which:
- Check if the current item is a component
- Get the appropriate page (GetUsingItems page type)
- Verify that the page is also in the workflow.
- Get this page
- Get WorkItem for Page
- Complete ongoing activities and pass on relevant activity data.
I am ready with most of the steps, but doubt in step 5. The only method I see so far to get WorkItems is to use session.WorkflowManager.GetUserWorkItems (userWorkItemsFilter), but this probably will not work if the page is not located into current user work items, right?
Any tips / directions?
source share