Getting a list of activitiesAdded by IBM on February 11, 2013 | Version 1 (Original)
|Use administrative commands to retrieve lists of activities that you can subsequently manipulate programmatically.
Before you begin
To run administrative commands, you must use the wsadmin client. See Starting the wsadmin client
- Start the Activities Jython script interpreter.
- Use the following command to access the Activities configuration file:
If prompted to specify a service to connect to, type 1 to pick the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file using a local file path, you must pick the node where the file is stored.
- Get a list of the activities and entries using one of the following commands:
- To get a list of all the activities created by your users except those in the trash:
- To get a list of deleted activities, which are activities that have been moved to the Trash view, but have not been permanently deleted yet. They are not permanently deleted until the Trash view is purged.
- To get a list of activities that have been marked Completed:
- To get a list of activities that were created or modified within a specified date range:
java.lang.String beginTime, java.lang.String endTime,
This command does not return activity templates that were created during the specified date range, but does include in the activities that it returns any activities present in the Trash view that were created during the specified date range.
Date field of interest. Options are created and modified. beginTime
Start timestamp of the range, using a yyyy.mm.dd format.endTime
Finish timestamp of the range, using a yyyy.mm.dd format.lastUUID
Unique ID of the last activity retrieved from a previous call of this command. Specify empty double quotes if you expect less than 50 activities in the response, or if you are running this command for the first time.
For example, the following command gets the first set of 50 activities that were created from 1 March 2008 through 31 March 2008:
- To get an activity with a specified universal identifier:
- You can find the universal identifier of an activity by using other fetch commands. The hash table of an activity includes an activityID, such as activityId=3F9G09219392F4733F40F82A4E8D5F000083. For example:
- To get a list of activities filtered by member, complete the following steps:
- Retrieve information about the member by whom you want to filter the activities and save it to a variable using the following command:
- You filter the activities using this member information in the following ways:
- To get a list of activities that were created by the member:
- For example:
- To get a list of standard activities to which the member has access:
- To get a list of standard activities of which the member is the owner:
Note: fetchActivitiesByMember() and fetchActivitiesByOwner() only return standard activities; they do not return community activities.
See Narrowing down results for information on how filter the list of results into a smaller subset.
Parent topic: Running Activities administrative commands
Starting the wsadmin client
Narrowing down results
Managing member access to activities
Activities administrative commands