|
Hi all, I’m implementing my own event type
through portal subscriptions, but I have got some problems (I’m using CPS
3.3.6): - I can’t remove my own event type that
I have defined in the Events/context tab of portal_subscriptions
through the ZMI. Is there a way to do this? - Once, I have defined an event type, I launch
the event in a script using the function: context.portal_eventservice.notifyEvent('my_event_type', context,
infos) This really works, but, is the best way
to do this? -
I have seen that these events are also relating to workflow transitions. I have
to define the new event type with the syntax “workflow_myWorkflowTransition” (assuming that myWorkflowTransition
exists in the workflow) and them, apply the “doActionFor”
function for this transition in my script? Is this correct? - In
the “Manage Notifications” action in a workspace or section, if I
activate the “Allow user subscriptions” option, I let users to
subscribe to notifications, and if I want to filter the list of available notifications,
I can do this adding “local roles” in the “edit” option,
so I only let users having these local roles to subscribe to these events. But
what is the correct syntax I must use in that textarea?
I have tried with ”WorkspaceManager”,
“workspace manager”, etc, but this doesn’t work. -
How works the portal_eventservice? How can I use it? On
the other hand, I want to use this to capture events in the root of my CPSDefault site (i.e. /cps/), but I have read that the
events notifications are only relating to ‘portal_types’
containers (that is, workspaces, sections, forums, etc), so, is it possible to
define notifications in the root of a CPSDefault site
through the portal_subscriptions? What is the context
that I have to put in the “Where ? (portal_type)” box for the CPSDefault
site when adding a new event type? Particularly, I want to be able to launch
an event when an user registers itself in the portal,
and this way, a manager can receive a notification mail of this. Thank you very much!!!!! Alberto
Porras Galvez Este correo electrónico y, en su caso, cualquier fichero
anexo, contiene información confidencial exclusivamente dirigida a su(s)
destinatario(s). Toda copia o divulgación deberá ser autorizada por
IAVANTE. This e-mail and any
attachments are confidential and exclusively directed to its adressee(s). Any
copy or distribution will have to be authorized by IAVANTE. |
_______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
