AnsweredAssumed Answered

Posting Custom Activity to Dashlet

Question asked by dwinfield on Oct 9, 2009
Latest reply on Oct 9, 2009 by dwinfield
I've created a new content section in share, and wanted the creation/updating and deletion tasks to show up in the activities dashlet.  No big deal, it's easy to see how the links content section does it.

links.put.json.js has the following line

activities.postActivity("", siteId, containerId, jsonUtils.toJSONString(data));

If you search for that org.alfresco.links string you see they're all listed in with{0} link created by {1}{0} link updated by {1}{0} link deleted by {1}

So I added my entries, and my javascript files pass in the new string I created.

However when I edit a file, I don't think the activityPostService is doing it, I get this error in the console
>>> Skipping activity post 28 since no specific/generic templates for activityType: com.eastport.list.list-updated

Reading the javadoc for activyService.postActivity it says you can post any "pre defined activities" so I'm guessing that's my problem.  How can you post custom activities?  (btw, my entry com.eastport.list.list-updated is in the mysql database, status error'd out though.)