views:

595

answers:

4

Hi Everybody,

I am working on a Sharepoint Server 2007 State machine Workflow. Until now I have a few states and a custom Association/InitiationForm which I created with InfoPath 2007. In Addition I have a few modification forms. I have a Problem with the removing of the modification link in the state-page of my workflow.

I have a state and in the initialize block of this state my EnableWorkflowModification Activity appears. So at the beginning of the state the modification is active. In the same state I have an OnWorkflowModification activity, which catches the event raised by the EnableWorkflowModification activity. After this state my modification is over and the link should disappear in the state-page. But this is not the case. Both activities have the same correlation token (modification) and the same owner (the owning state). Has anybody an idea why the link is not removed and how to remove the modification link?

Thank you in advance, Stefan!

+1  A: 

Have you checked the OnWorkflowModification event handler is actually firing? Try debugging or adding some eventlog traces to make sure it is. I've run into similar issues with OnWorkflowItemChanged event handler.

axel_c
A: 

Hi axel_c

i checked this out and the Event is fireing.

I assume you're putting your event handler into an EventHandlingScope? If that doesn't work, sorry but I can't help you with that, never used that myself...Also check out http://msdn.microsoft.com/en-us/library/ms480794.aspxif you haven't already
axel_c
Thank you for your help, but i have seen the site you send to me.
A: 

Make sure you have the enableWorkflowModification and onWorkflowModified inside an eventHandlingScopeActivity, and set that as the OwnerActivityName for each.

Andy Mikula
A: 

I am have a similar problem. Did you ever figure out how to remove the links?