The platform allows APS applications to track and process various events in the system and other applications as explained in APS Events. The embedded demo project logically continues the User Management demo project.
Due to this integration, applications can be as intelligent as:
In this document:
In this project, the application will monitor VPSes, hosted domains, and service users on the following event types as described in the APS Events concepts:
This comprises all event types defined in the List of Types concept.
Following this project, you will create an APS package similar to
the sample package
.
Compared with the previous project in the track, the new package contains one more APS type - event
.
The new type will have a relation with the management context
type.
You can use the new events
service to subscribe to event types before the management context
appears.
Possible event types and event subscriptions are explained in the List of Types section. With the new service, the application will be able to handle the following events:
available
), three types of sourcesremoved
), three different types of sourcesoffer
or a user
- two event types (linked
and unlinked
),
two links from the same source typechanged
) from VPSesThe corresponding event
resource type in the platform must be declared as Autoprovide=true
. Since
it has a required relation with the management context
, the system will auto-provision the latter as well.
Warning
In this model, only one resource can be marked as auto-provided
. Otherwise, if both, the context
and
the event
types, are marked as auto-provided
, it might happen that during the provisioning process, the system will
require provisioning of two management contexts.
Clone the package you have created in the User Management demo project to the new one by following these steps.
Create a new project based on the input package and using one of the ways:
event-mgmt
name.event-mgmt/
.Replace every occurrence of the custom application ID and type ID prefix with
http://aps-standard.org/samples/event-mgmt/
in all project files.
This will replace the old application and types with the new ones.
To verify if there are no typo in the new project, try to build the new package using either Eclipse IDE, IDEA IDE, or command line APS tools. For example, run:
$ aps build event-mgmt
If no errors detected and you have successfully built an APS package, then proceed to the next step.
In this first step, we identified the purpose of the application, a relevant scenario, and a resource model.
To reach the goal, you have started the demo project to create and test an APS package similar to the
sample package
.