Home

 

Restore 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.


You do not need to check the configuration file in and out nor restart the server when using administrative commands.

To run administrative commands, use the wsadmin client. See Start wsadmin for details.


To restore a deleted activity or entry...

  1. Open a command window and start the wsadmin command line tool. See Starting wsadmin for more details.

  2. Start the Activities Jython script interpreter.

    1. Access the Activities configuration file:

    2. Network deployment:

        execfile("profile_root/config/bin_lc_admin/activitiesAdmin.py")
        

      If prompted to specify which server to connect to, type 1.

      The information about which server to connect to is only used by wsadmin when you are running administrative commands to collect statistics.

  3. Get a list of the activities and entries currently in the Trash view by entering the following command:

      TrashCollectionService.fetchTrash()
      

  4. Identify the activity or entry that you want to restore from the returned list. See Narrowing down results for more information.

  5. Enter the following command to restore the activity or entry:

      TrashCollectionService.undeleteTrash( java.util.Vector trashVector)
      

    where you specify the activity or entry that you want to restore as the trashVector parameter.


Manage trash

 

Related tasks

Start wsadmin

Narrowing down results


+

Search Tips   |   Advanced Search