Restoring deleted activities
Use an administrative command to restore activities that were moved to the Trash view. After an activity is moved to the Trash view, and before the Trash is purged from the system, the activity can be preserved if it is restored.
Before you begin
To run administrative commands, you must use the wsadmin client. See Starting the wsadmin client for details.
Procedure
- Open a command window and start the wsadmin command line tool. See Starting the wsadmin client for more details.
- Start the Activities Jython script interpreter.
- Get a list of the activities and entries currently in the
Trash view by entering the following command:
TrashCollectionService.fetchTrash()
- Identify the activity or entry that you want to restore from the returned list. See Narrowing down results for more information.
- Enter the following command to restore the activity or
entry:
where you specify the activity or entry that you want to restore as the trashVector parameter.TrashCollectionService.undeleteTrash( java.util.Vector trashVector)
Example
Trash=TrashCollectionService.fetchTrash()
myactivities=ListService.filterActivitiesByName(Trash, "a_act.*")
TrashCollectionService.undeleteTrash(myactivities)