Posted by [IP Address: 212.77.205.58] 'Mark' on July 22, 2001 at 02:13:20 EST:
Folks,
I have a interesting scenario. This is a custom single-step task.
Requirement:
* To send work-item to appropriate agent whenever document is created. (Normal, this is fine).
* Whenever document is changed, the earlier 'in-process' work-item should be deleted from the agent's inbox and new work item should be created. Coz when document is changed, there might be new release strategy, that in turn might determine new agent. Document can be changed as many times until it is finally released. (This one is interesting!)
Well, I can include a terminating event in the Single-step task and raise that event whenever document is changed. To re-create the work-itme, now if I re-trigger the same task when document is changed, it will be terminated immiediately as terminating event was also raised simulataneously.
So the question is:
How do I terminate earlier task work-item and re-trigger the same task to create new work-item simulateneously?
OR
Is there a better way to achieve the requirement?
Thanks.
Mark.