Home

 

Delete activities

Use administrative commands to move one or more activities to the Trash view.

Use wsadmin


To delete one or more activities...

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

  2. If you have not yet created a variable that contains the activities you want to delete, create one. You can get a list of activities in hash table format by using one of the fetchActivities commands. See Activities administrative commands for a full list. For example, if a person leaves the organization and you want to delete all of the activities that he owns, you can perform the following steps to narrow down the activities to delete:

    1. Get a hash table of information related to a specific user:

        variable=ActivitiesMemberService.fetchMemberByName(
         java.lang.String member)
        

      For example:

        joe=ActivitiesMemberService.fetchMemberByName("Joe Jacobs")
        

    2. Retrieve the activities that a specific person owns:

        variable=ActivityService.fetchActivitiesByOwner(java.util.Hashtable 
         member)
        

      For example:

        joesactivities=ActivityService.fetchActivitiesByOwner(joe)
        

  3. Enter the following command to delete the activity or activities:

      ActivityService.deleteActivities(java.util.Vector activities)
      

    where you specify the activity or activities that you want to delete as the activities parameter. For example:

      ActivityService.deleteActivities(joesactivities)
      


Manage trash

 

Related tasks

Start wsadmin


+

Search Tips   |   Advanced Search