This sample demonstrates how to set email notification for all users added to the workflow system.
java UserInfoSample username password server_name:port_number/connectionPoint_name
email_suffix
For more information, see the comments in the sample source. The samples are supplied in the Developer samples section of the IBM® FileNet® P8 Platform publication library.
See also Running the API Samples.
General descriptions of the UserInfoSample methods follow:
main()
The main method displays a usage line if you supply less than the required arguments; otherwise, the method passes the arguments to the constructor.
UserInfoSample()
The UserInfoSample constructor gets the VWSession object and uses VWsession.fetchUsers to get the VWSecurityList object. It then gets the VWUserInfo object by using VWSession.fetchUserInfo, and sets the email address by using VWUserInfo.setEMailAddress. Notification flags are then combined (bitwise OR) using the VWUserInfo NOTIFICATION* fields, and set by using VWUserInfo.setNotificationFlags, for email notification to this user the specified (NOTIFICATION*) events occur.