Topics Used to Subscribe
If you choose to subscribe by making a SOAP call to the dedicated subscription manager endpoint of the WSO2 Governance Registry according to the WS-Eventing specification, you need to specify the topic which is used to filter the subscribed endpoints to which the notifications must be sent for each event generated. This is achieved by adding a Filter
to the subscription request. This filter must be in the following format.
<wse:Filter Dialect="http://wso2.org/registry/notify">TOPIC</wse:Filter>
The TOPIC
should be of the following format.
TOPIC := EVENT_NAME/RESOURCE_PATH
The RESOURCE_PATH
is /
for the root collection and it is /system
for the system collection.
Therefore, the Topic for the XYZ
event generated for an operation performed at the root collection is /XYZ
and the event generated for an operation performed at the system collection is /system/XYZ
.
The topics corresponding to the pre-defined event types for collections are as follows.
- Create Child -
ChildCreated
- Delete Child -
ChildDeleted
- Update -
CollectionUpdated
- Check LC Item -
CheckListItemChecked
- Uncheck LC Item -
CheckListItemUnchecked
- Change LC State -
LifeCycleStateChanged
LC Approval Needed -
LifeCycleApprovalNeeded
LC Approval Withdrawn -
LifeCycleApprovalWithdrawn
LC Approved -
LifeCycleApproved
The topics corresponding to the pre-defined event types for resources are as follows.
- Update -
ResourceUpdated
- Check LC Item -
CheckListItemChecked
- Uncheck LC Item -
CheckListItemUnchecked
- Change LC State -
LifeCycleStateChanged
- LC Approval Needed -
LifeCycleApprovalNeeded
- LC Approval Withdrawn -
LifeCycleApprovalWithdrawn
Note
Each subscription is made into a valid topic or the notifications are not delivered.