Generating templates for automated user interface components and validation rules based on context
Abstract
Generating a user interface template is provided. A user context corresponding to an action request by a user to perform a task on a computer is determined. A set of user interface templates corresponding to the action request by the user and the user context is retrieved. Components of different user interface templates within the set of user interface templates are compared. Relevant components of the different user interface templates are combined based on the action request by the user and the user context. The user interface template corresponding to the action request by the user and the user context is generated based on the combined relevant components of the different user interface templates.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A computer-implemented method for dynamically modifying a user interface based on monitored user context, the computer-implemented method comprising:
determining that a user logs into a server;
in response to determining that the user logs into the server, receiving, by a computer comprising the server, an action request to perform a task in relation to an application;
determining, by the computer, a user context indicating a cognitive state of a user that initiated the action request;
retrieving, by the computer, a set of user interface templates corresponding to the action request by the user and the user context;
determining that the user context indicates that the user is stressed;
removing a server reboot component from at least one of the user interface templates to prevent the user from selecting a server reboot action in response to determining that the user logs into the server and that the user context indicates that the user is stressed;
comparing, by the computer, components of different user interface templates within the set of user interface templates, yielding a comparison;
combining, by the computer, relevant components of the different user interface templates based on the comparison, the action request by the user and the user context, yielding combined relevant components;
generating, by the computer, the user interface based on the combined relevant components of the different user interface templates, the user interface enabling the user to perform a first set of tasks in relation to the application;
after causing presentation of the user interface on a device of the user, determining an updated user context of the user;
determining an updated cognitive state and a mood of the user based on the updated user context;
determining that the user is distracted based on the updated user context of the user; and
in response to determining that the user is distracted and based on determining the updated cognitive state and the mood of the user, modifying the user interface to restrict the user from performing at least a first task while the user is distracted, wherein the modifying the user interface comprises:
removing at least one component, yielding a modified user interface, the at least one component enabling the user to perform the first task, the modified user interface restricting the user to perform a second set of tasks in relation to the application, the second set of tasks being a subset of the first set of tasks.
2. The computer-implemented method of claim 1 , further comprising:
sending, by the computer, user interface templates to a developer for validation of each term in the user interface templates; and
receiving, by the computer, the validation of each term in the user interface templates from the developer.
3. The computer-implemented method of claim 1 , further comprising:
extracting, by the computer, a set of rules from a set of specification documents using natural language processing;
sending, by the computer, the set of rules to a subject matter expert for validation; and
receiving, by the computer, the validation of the set of rules from the subject matter expert.
4. The computer-implemented method of claim 1 , further comprising:
extracting, by the computer, data corresponding to a context of the user from a context database; and
retrieving, by the computer, the set of user interface templates based on a user interface user interaction pattern.
5. The computer-implemented method of claim 1 , further comprising:
identifying, by the computer, a set of user interface components in a user interface template;
selecting, by the computer, each component within the set of user interface components; and
associating, by the computer, a rule in a set of rules with each selected component of the user interface template and the user context.
6. The computer-implemented method of claim 1 , further comprising:
determining, by the computer, rule dependencies between a set of rules;
identifying, by the computer, default rules for a user interface template based on the user context;
generating, by the computer, code corresponding to the user interface template based on the set of rules, the rule dependencies, and the default rules; and
associating, by the computer, the code with the user interface template based on a code to user interface template mapping.
7. The computer-implemented method of claim 1 , further comprising:
mining, by the computer, resource object definitions and corresponding rules using a set of system configuration management scripts; and
populating, by the computer, a user interface template with the resource object definitions.
8. The computer-implemented method of claim 7 , further comprising:
defining and validating, by the computer, relationships between the resource object definitions in the user interface template based on the corresponding rules; and
populating, by the computer, the user interface template with resource object validation rules that validate user input entries.
9. The computer-implemented method of claim 1 , further comprising:
receiving, by the computer, customized platform specific rules and defined defaults from a subject matter expert; and
populating, by the computer, a user interface template with the customized platform specific rules and defined defaults.
10. The computer-implemented method of claim 1 , further comprising:
learning, by the computer, the user context and a platform context using support vector machine-based active learning;
generating, by the computer, context-aware rules based on the learned user context and platform context; and
embedding, by the computer, the context-aware rules in a user interface template.
11. The computer-implemented method of claim 1 , further comprising:
retrieving, by the computer, components corresponding to code of a user interface template from a widget database; and
displaying, by the computer, the code of the user interface template and corresponding components.
12. A system comprising:
one or more computer processors; and
one or more computer-readable mediums storing instructions that, when executed by the one or more computer processors, cause the system to performing operations for dynamically modifying a user interface based on monitored user context, the operations comprising:
determining that a user logs into a server;
in response to determining that the user logs into the server, receiving by the server an action request to perform a task in relation to an application;
determining a user context indicating a cognitive state of a user that initiated the action request;
retrieving a set of user interface templates corresponding to the action request by the user and the user context;
determining that the user context indicates that the user is stressed;
removing a server reboot component from at least one of the user interface templates to prevent the user from selecting a server reboot action in response to determining that the user logs into the server and that the user context indicates that the user is stressed;
comparing components of different user interface templates within the set of user interface templates, yielding a comparison;
combining relevant components of the different user interface templates based on the comparison, the action request by the user and the user context, yielding combined relevant components;
generating the user interface based on the combined relevant components of the different user interface templates, the user interface enabling the user to perform a first set of tasks in relation to the application;
after causing presentation of the user interface on a device of the user, determining an updated user context of the user;
determining an updated cognitive state and a mood of the user based on the updated user context;
determining that the user is distracted based on the updated user context of the user; and
in response to determining that the user is distracted and based on determining the updated cognitive state and the mood of the user, modifying the user interface to restrict the user from performing at least a first task while the user is distracted, wherein the modifying the user interface comprises:
removing at least one component, yielding a modified user interface, the at least one component enabling the user to perform the first task, the modified user interface restricting the user to perform a second set of tasks in relation to the application, the second set of tasks being a subset of the first set of tasks.
13. The system of claim 12 , the operations further comprising:
sending user interface templates to a developer for validation of each term in the user interface templates; and
receiving the validation of each term in the user interface templates from the developer.
14. The system of claim 12 , the operations further comprising:
extracting a set of rules from a set of specification documents using natural language processing;
sending the set of rules to a subject matter expert for validation; and
receiving the validation of the set of rules from the subject matter expert.
15. The system of claim 12 , the operations further comprising:
extracting data corresponding to a context of the user from a context database; and
retrieving the set of user interface templates based on a user interface user interaction pattern.
16. The system of claim 12 , the operations further comprising:
identifying a set of user interface components in a user interface template;
selecting each component within the set of user interface components; and
associating a rule in a set of rules with each selected component of the user interface template and the user context.
17. The system of claim 12 , the operations further comprising:
determining rule dependencies between a set of rules;
identifying default rules for a user interface template based on the user context;
generating code corresponding to the user interface template based on the set of rules, the rule dependencies, and the default rules; and
associating, by the computer, the code with the user interface template based on a code to user interface template mapping.
18. A non-transitory computer-readable medium storing instructions that, when executed by one or more computer processors of one or more computing devices, cause the one or more computing devices to performing operations for dynamically modifying a user interface based on monitored user context, the operations comprising:
determining that a user logs into a server;
in response to determining that the user logs into the server, receiving by the server an action request to perform a task in relation to an application;
determining a user context indicating a cognitive state of a user that initiated the action request;
retrieving a set of user interface templates corresponding to the action request by the user and the user context;
determining that the user context indicates that the user is stressed;
removing a server reboot component from at least one of the user interface templates to prevent the user from selecting a server reboot action in response to determining that the user logs into the server and that the user context indicates that the user is stressed;
comparing components of different user interface templates within the set of user interface templates, yielding a comparison;
combining relevant components of the different user interface templates based on the comparison, the action request by the user and the user context, yielding combined relevant components;
generating the user interface based on the combined relevant components of the different user interface templates, the user interface enabling the user to perform a first set of tasks in relation to the application;
after causing presentation of the user interface on a device of the user, determining an updated user context of the user;
determining an updated cognitive state and a mood of the user based on the updated user context;
determining that the user is distracted based on the updated user context of the user; and
in response to determining that the user is distracted and based on determining the updated cognitive state and the mood of the user, modifying the user interface to restrict the user from performing at least a first task while the user is distracted, wherein the modifying the user interface comprises:
removing at least one component, yielding a modified user interface, the at least one component enabling the user to perform the first task, the modified user interface restricting the user to perform a second set of tasks in relation to the application, the second set of tasks being a subset of the first set of tasks.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.