In IBM Connections 4.0 and 4.5, I'm trying to make a custom Java app imitate much of the activity-stream behaviour of the Activities app.
The Java code uses the Social Business Toolkit to post to activity streams, and authenticates as a user that has access to post to other users' streams, but I'm also testing with RESTClient in Firefox while logged in as the same special user.
The Activities app sometimes does the following things, which I can't figure out how to do:
- Posts to a user's "My Notifications" view; and
- Posts to a user's "Action Required" view without the post also appearing in "I'm Following".
How do I achieve these things?
For the first item, I've tried posting to "http://server.company.net.au/connections/opensocial/basic/rest/activitystreams/UserId/@responses/@all", but that doesn't work as desired. The event always appears in "I'm Following" when I want it to appear in "My Notifications".
Additional note regarding "My Notifications":
One of several events I'm trying to imitate is the notification to a person that they were added to an activity. In attempting to create the notification, I have added a person to an activity, logged into Connections as that person, copied the JSON from their "My Notifications" stream, then posted one of those events back to that person's stream with the bare minimum of changes required to make Connections accept it.
No matter what group I post to (such as @responses), the event I've created always appears in "I'm Following" despite the original being in "My Notifications".
For the second item, I have got events to appear in "Action Required" by setting the actionable flag in the JSON data, but those events also appear in "I'm Following" when I don't want them to do so.