RE: How to re-route a "Ready to Route" activity? Oscar W. Henneken 23.Aug.06 04:24 PM a Web browser Lotus Workplace Application Database 3.0.1Windows XP
Hi Cat,
Solution 1) Try a reroute via an api call.
Function DWFBinderReRoute(BinderKey As Variant, DestinationActivityID As String, OnBehalfOf as String, ErrorMsg As String, ErrorCode As Integer) As Integer
Solution 2) Why not reverse the problem.
Currently you do not know which fields to set to restore the document back to an activity manually. Turn it around: make it your problem to find out which fields to set that are of interest intrinsically instead of technically.
How could you do that?
One (tricky) thing you could do is write an agent that:
1) makes a safe copy of the entire binder that is corrupted to
another database.
2) copies all fields that end with "OS" from a binder that is in the correct activity to the binder that is messed up in the LWf application database. So fields from cover to cover and from main doc to main doc, etc.
3) change back the content of some critical fields to maintain integrity of the restored binder:
Field Folderidos on cover and all other binderdocs.
Field SOURCEDOCIDOS idem.
Field binderdocidos on cover.
Field ExpandedParticipantAuthorsOS on the entire binder, set to the (canonical) names of the people you want to be potential activityowners.
If you have special settings for a team, you should set
Field TeamAuthorsOS as well, on the entire binder.
Furthermore you might want to change back:
Field InitiatorOS,
Field IndateOS,
field JobDuedateOS, etc. according to your needs.
Maybe you will miss one or two fields that you wanted to preserve, but technically the binder would be reset to the activity. If it is technically correctly set, you should be able to reroute it (either via the menu or via an api call) to the same activity again, to realy make sure all the fields are set correctly in the end.
Hope this helps,
Oscar Henneken,
e-Office
www.e-office.com
www.cpm-weblog.nl