Event based validation
First Claim
Patent Images
1. A non-transitory computer readable medium comprising computer readable program code for performing event based validation, the performing comprising:
- obtaining, for a first user interface (UI) event, a first UI event definition comprising a first parameter definition and a second parameter definition;
obtaining, for the first UI event definition, a first trigger event definition and a second trigger event definition, wherein the first trigger event definition associates a first event subscriber to the first UI event with a first validation condition and a first parameter value for the first parameter definition, wherein the second trigger event definition associates a second event subscriber to the first UI event with a second validation condition and a second parameter value for the second parameter definition;
associating a first page of a web application with the first UI event definition by adding the first UI event to the first page;
detecting, through a first action performed by the end user, the first UI event in the first page of the web application;
transmitting the first UI event to an event bus;
identifying, by the event bus and based on a first type of the first UI event, the first event subscriber and the second event subscriber, wherein the first type of the first UI event specifies the first action and a first item affected by the first action;
making a first determination, based on testing the first validation condition and data in a context cache, that the first validation condition is satisfied, wherein the data in the context cache comprises data that the end user of the web application input on a second page of the web application;
performing, based on the first determination, a second action in the first page of the web application by applying the first parameter value to the first parameter definition; and
making a second determination, based on testing the second validation condition, that the second validation condition is not satisfied.
8 Assignments
0 Petitions
Accused Products
Abstract
Event based validation includes detecting a user interface (UI) event in a page of a web application, and identifying a event subscriber of multiple event subscribers to the UI event. The event subscriber defines a validation condition, which is tested. When the validation condition is satisfied, an action, defined by the event subscriber is performed.
33 Citations
10 Claims
-
1. A non-transitory computer readable medium comprising computer readable program code for performing event based validation, the performing comprising:
-
obtaining, for a first user interface (UI) event, a first UI event definition comprising a first parameter definition and a second parameter definition; obtaining, for the first UI event definition, a first trigger event definition and a second trigger event definition, wherein the first trigger event definition associates a first event subscriber to the first UI event with a first validation condition and a first parameter value for the first parameter definition, wherein the second trigger event definition associates a second event subscriber to the first UI event with a second validation condition and a second parameter value for the second parameter definition; associating a first page of a web application with the first UI event definition by adding the first UI event to the first page; detecting, through a first action performed by the end user, the first UI event in the first page of the web application; transmitting the first UI event to an event bus; identifying, by the event bus and based on a first type of the first UI event, the first event subscriber and the second event subscriber, wherein the first type of the first UI event specifies the first action and a first item affected by the first action; making a first determination, based on testing the first validation condition and data in a context cache, that the first validation condition is satisfied, wherein the data in the context cache comprises data that the end user of the web application input on a second page of the web application; performing, based on the first determination, a second action in the first page of the web application by applying the first parameter value to the first parameter definition; and making a second determination, based on testing the second validation condition, that the second validation condition is not satisfied. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A system performing event-based validation, comprising:
-
a computer processor; a builder that, when executed on the computer; obtains, for a first UI event, a first UI event definition comprising a first parameter definition and a second parameter definition; obtains, for the first UI event definition, a first trigger event definition and a second trigger event definition, wherein the first trigger event definition associates a first event subscriber to the first UI event with a first validation condition and a first parameter value for the first parameter definition, wherein the second trigger event definition associates a second event subscriber to the first UI event with a second validation condition and a second parameter value for the second parameter definition; associates a first page of a web application with the first UI event definition by adding the first UI event to the first page; an UI event manager that, when executed on the computer processor; detects, through a first action performed by the end user, the first UI event in the first page of the web application, and transmits the first UI event to an event bus, the event bus operatively connected to the UI event manager and configured to; receive the first UI event; identify, based on a first type of the first UI event, the first event subscriber and the second event subscriber, wherein the first type of the first UI event specifies the first action and a first item affected by the first action; make a first determination, based on testing the first validation condition and data in a context cache, that the first validation condition is satisfied, wherein the data in the context cache comprises data that the end user of the web application input on a second page of the web application; perform, based on the first determination, a second action in the first page of the web application by applying the first parameter value to the first parameter definition; and make a second determination, based on testing the second validation condition, that the second validation condition is not satisfied. - View Dependent Claims (7, 8, 9, 10)
-
Specification