I have a state machine workflow developed in vs2005 running on a document library that sends our reminders when contracts stored within the library are about to expire. It has 3 states
the state1 delays untilt the 'notification dare' (a field in the library) is hit, then sets the state to state2.
state2 sends out weekly reminders by delaying for 7 days, sending a reminder and setting the state back to state2. One week before the contract expiration date (anothe field in the library) it sets state to state3.
The state3 sends out daily reminders by delaying for 1 days, sending a reminder and setting the state back to state3.
It works fine, but i need to have the workflow reactt to changes to the date fields in the library. For example in state1 if the notification date is change in the library I need to restart state1 with the new date.
I'm trying to figure out how to have each of these states include an OnWorkflowItemChangedEvent so that the workflow will be reactivaed when eithher the delay timeout is hit OR the workflowItem is changed. From what I've read, the listener can do this,
but its not allowed in a statemachine. Can someone provide some help as to have a statemachine workflow activated when the underlying item is changed?
View Complete Post