Getting a list of activitiesAdded by IBM | Edited by IBM on March 15, 2012 | Version 3 (Show original)
|Use administrative commands to retrieve lists of activities that you can subsequently manipulate programmatically.
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:
- 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