Enterprise content management systems, such as EMC Documentum, enable enterprise users (e.g., companies) to manage content according to their business processes and/or some content lifecycle. For example, suppose a company uses EMC Documentum to create and manage some product over its lifecycle (e.g., from manufacturing or acquisition to distribution or sale). A user interface associated with the enterprise content management system may be created to ensure that the company's business process are followed, for example to ensure that the proper people authorize various steps, only authorized users have access to certain (e.g., sensitive or proprietary) information, etc.
To assist in the creation and management of user interfaces for enterprise content management systems, some enterprise content management vendors provide application composition tools. For example, EMC provides the xCP Designer application composer. It would be desirable if application composition tools had new ways to generate user interfaces, for example when it comes time to update an existing user interface. Existing techniques may be risky and/or require a level of expertise that some users may not have.
Various embodiments of the invention are disclosed in the following detailed description and the accompanying drawings.
The invention can be implemented in numerous ways, including as a process; an apparatus; a system; a composition of matter; a computer program product embodied on a computer readable storage medium; and/or a processor, such as a processor configured to execute instructions stored on and/or provided by a memory coupled to the processor. In this specification, these implementations, or any other form that the invention may take, may be referred to as techniques. In general, the order of the steps of disclosed processes may be altered within the scope of the invention. Unless stated otherwise, a component such as a processor or a memory described as being configured to perform a task may be implemented as a general component that is temporarily configured to perform the task at a given time or a specific component that is manufactured to perform the task. As used herein, the term ‘processor’ refers to one or more devices, circuits, and/or processing cores configured to process data, such as computer program instructions.
A detailed description of one or more embodiments of the invention is provided below along with accompanying figures that illustrate the principles of the invention. The invention is described in connection with such embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims and the invention encompasses numerous alternatives, modifications and equivalents. Numerous specific details are set forth in the following description in order to provide a thorough understanding of the invention. These details are provided for the purpose of example and the invention may be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the invention is not unnecessarily obscured.
At 100, a selection of a user interface artifact from a set of one or more user interface artifacts associated with a first user interface to an enterprise content management system is received. Conceptually, the first user interface (recited by step 100) may be thought of as an initial or original user interface and the second user interface (recited by step 104) may be thought of as a modified user interface. In one example of step 100, a user interface designer may select (e.g., using an application composition tool) a user interface artifact (s)he wants modified.
As used herein, the term user interface artifact (or, more simply, artifact) refers to a smaller part or piece of a user interface which defines how the user interface behaves (e.g., in response to a user's input or interactions) and/or is rendered or otherwise displayed. To put it another way, a user interface is a collection of visual or display elements which are displayed, as well as a collection of actions, step, or processes which are performed (e.g., when in a certain state or when certain conditions have been met) and (generally speaking) a user interface artifact is a smaller piece of the user interface which describes some slice of how the user interface behaves or is rendered/displayed. User interface artifacts include (but are not limited to): user interface widgets (e.g., a date input widget, a text input widget, an actionable widget (e.g., a button), actions, user interface events, context menus, page fragments, action flows, pages, and steps. More detailed examples of user interface artifacts are described below.
At 102, a selection of a user interface aspect from a set of one or more user interface aspects is received, wherein each user interface aspect in the set of user interface aspects is capable of modifying at least one user interface artifact from the set of user interface artifacts. For brevity, user interface aspects are sometimes referred to herein as aspects. As in the above step, a user interface designer may select (e.g., in an application composition tool) which user interface aspect (s)he wants to use to modify the selected user interface artifact.
In some embodiments, the selected user interface aspect may be as simple as changing the text of a label (e.g., from English to some other language). Or, the selected user interface aspect may be associated with a more complicated change, such as changing a check or validation performed on an input. Some more detailed examples of user interface aspects are described in more detail below.
At 104, a second user interface to the enterprise content management system is generated using the selected user interface artifact and the selected user interface aspect, wherein the selected user interface artifact in the second user interface is implemented per the selected user interface aspect. For example, if the selected user interface aspect affects the placement of a particular widget, then the second user interface will have that widget placed per the selected user interface aspect (e.g., as opposed to some original placement).
In some embodiments, the process of
The following figure shows an example of a system in which the process of
Initially, enterprise content management system 202 is empty and there is no user interface with which to access or otherwise manage information in enterprise content management system 202. Initial user interface designer 216 accesses application composition tool 200 in order to create an initial user interface to enterprise content management system 202. For simplicity and brevity, initial user interface designer 216 is shown as a single person, but naturally any number of people may be involved in developing the initial user interface.
Using application composition tool 200, initial user interface designer 216 generates artifacts 208 and initial user interface 210 which are stored in user interface storage 206. Generally speaking, artifacts 208 are the “building blocks” associated with initial user interface 210 and initial user interface 210 is generated from artifacts 208 (e.g., application composition tool 200 ingests artifacts 208 and outputs initial user interface 210). It is noted that artifacts 208 are not necessarily in a form that is capable of being executed or run, whereas initial user interface 210 is in a form which is capable of being executed or run. In one example, artifacts 208 are in XML and user interface 210 is in JavaScript (e.g., JSON).
Aspect developer 200 uses application composition tool 200 to generate aspects 212. (As before, for simplicity and brevity, aspect developer 218 is shown as a single person but any number of people may develop aspects.) Generally speaking, an aspect describes a change which (if desired or otherwise selected) is used to change some artifact. In some embodiments, each aspect includes a list of relevant or applicable artifacts which that aspect is permitted to modify (if desired). For example, an aspect developer may specify whether an aspect affects (only) user interface widgets versus (only) actions versus (only) user interface events, etc. In some embodiments, an artifact only affects a certain property or field associated with an artifact and that property or field is specified by the aspect developer. In some embodiments, an artifact requires some input and the aspect developer specifies such inputs and any limitations or constraints on that input (if appropriate).
Using the artifacts (208) created by initial user interface designer 216 and the aspects (212) created by aspect developer 218, modified user interface designer 220 picks which artifacts to modify and which aspects to apply (i.e., changes to make) using application composition tool 200. The user interface which results from those selections is modified user interface 214. As before, for simplicity and brevity, modified user interface designer 220 is shown as a single person but any number of people may develop aspects.
In one example of how the modified user interface 214 is generated, the application composition tool includes the selected aspect(s) in the applicable artifact's JSON. In some cases there may be multiple aspects which have been selected and which apply to the same artifact. If so, modified user interface 214 (at least in this example) puts each aspect in a separate node. During runtime, the JSON of each artifact is checked to see if any aspects modify that particular artifact. If so, the code from the aspect is used instead of the corresponding code from the artifact (e.g., code in the aspect which causes a new label to be displayed instead of corresponding label display code in the aspect). In some embodiments, there is some conditional expression which is evaluated at runtime and (based on whether or not the conditional expression is satisfied), the appropriate code is executed. In some embodiments (e.g., when the code associated with the aspect will always be executed and the corresponding code associated with the artifact will never be executed), the code associated with the aspect replaces or otherwise overwrites the corresponding code associated with the artifact.
A benefit to this technique is that a deep understanding of artifacts 208 and/or initial user interface 210 is not required. For example, many companies which employ an enterprise content management system have complex business processes which are enforced by the user interface to the enterprise content management system. Also, an enterprise content management system may have many types of data and/or data objects which may be related in a many different ways. As a result, directly modifying artifacts 208 in order to make a change to a user interface may be difficult and/or risky.
In contrast, with the system shown, neither aspect developer 218 nor modified user interface designer 220 need to have a deep understanding of artifacts 208 and/or initial user interface 210 in order to generate and use aspects 212, respectively. Aspect developer 218 may be a user interface or application expert (e.g., without necessarily having a deep understanding of the business process or rules enforced by initial user interface 210) who has enough knowledge to avoid making changes to any action, user interface event, actions flow, and/or step which may cause business rules or business process associated with initial user interface 210 to be violated. Similarly, modified user interface designer 220 may know about new features, behaviors, or appearances for modified user interface 214 and can make these changes using aspects 212 without being an expert coder and/or having a deep understanding of deep understanding of artifacts 208 and/or initial user interface 210.
As described above, another benefit to the technique described herein is that aspects can be created and made available while still enforcing and/or respecting business processes and/or rules already in place in initial user interface 210.
As described above, in some embodiments, each aspect includes a list of artifacts which that aspect is applicable to (i.e., is permitted to modify, if desired). The following figure shows an example of a process to determine applicable user interface aspects for a given user interface artifact.
At 300, for each user interface aspect included in the set of user interface aspects, a list of applicable user interface artifacts included in that user interface aspect is ingested. For example, application composition tool 200 would ingest aspects 212 in user interface storage 206 and each aspect may have an “applicable to” section. In some embodiments, this step is performed when application composition tool 200 is compiled (or, more generally, is generated).
At 302, for the selected user interface artifact, one or more applicable user interface aspects are determined, including by determining which of the one or more ingested lists of applicable user interface artifacts includes the selected user interface artifact. In one example, step 302 is triggered when step 100 in
At 304, the applicable user interface aspects is displayed as the set of user interface aspects from which the selected user interface aspect is selected. In some examples described below, an application composition tool has some aspects window, page or tab in which the relevant aspects for the currently selected artifact are displayed. A user (e.g., the modified user interface designer 220 in
The following figure shows some examples of initial user interfaces and modified user interfaces which show how an initial user interface may be modified by one or more aspects.
Modified user interface 450 is an example of a modified user interface which is generated using one or more selected artifacts and one or more selected aspects. In this example, modified user interface 450 has been modified for use in India.
One change to modified user interface 450 is in the layout or placement of text input widgets. In initial user interface 400, first name widget 402 is in the upper left corner and last name widget 404 is in the upper right corner. In modified user interface 450, their positions have been reversed: family name widget 454 is in the upper left corner and first name widget 452 is in the upper right corner. For example, there is may be a “dynamic placement” aspect and a designer applied that aspect to artifacts associated with first name widget 402 and last name widget 404. As part of the process, the designer may have had to specify the new positions of the text input widgets.
Another change to modified user interface 450 is in the label displayed by family name widget 454. Instead of displaying “Last Name:” (which widget 404 in initial user interface 400 does), widget 454 displays “Family Name:” (e.g., because in India the term “family name” is more common than the term “last name”). As part of the process, the designer may have had to specify the new text (i.e., “Family Name:”).
Modified user interface 450 also differs from initial user interface 400 in the checks (or, more generally, actions) that are performed when enter button 464 is pressed. In initial user interface 400, an input is required for last name widget 404. However, in India, some people do not have last/family names. As such, no input is required for family name widget 454. For state widget 460, the input is compared a list of Indian states (as opposed to a list of US states). For postal index number widget 462, modified user interface 450 checks for a 6-digit number (as opposed to a 5-digit number) since postal index numbers in India have 6 digits. In some embodiments, a single “dynamic validation” aspect may have been used but with different artifacts (e.g., text input widgets) selected and different new checks specified for each selected artifact.
As is illustrated in this example, another benefit to the technique is that there is no “code fork” required to simultaneously support multiple versions of a user interface. As is shown in this example, a company may want to have one user interface for one country and another user interface for another county. Both user interfaces would be in use at the same time where the Indian version does not supersede or otherwise replace the US version and vice versa. Since both versions come from the same code base (i.e., the same set of artifacts), there is no code fork.
The following figure shows another example of a modified user interface and corresponding initial user interface.
Initial user interface 550 also includes two buttons: search again button 502 and save changes button 504. If desired, the user can change one or more of the search fields (e.g., the purchase order number, the vendor ID, and/or the part number) and perform another search by pressing search again button 502. If desired, the user can make changes to the purchase order information (e.g., the purchase order number, the vendor ID, the part number, the quantity, and/or the price) and save the changed information to the enterprise content management system.
In this example, a change to the business process is desired where another person is required to validate and/or authorize any changes to the purchase order. In contrast, any changes made using the save changes button in the initial user interface are committed immediately to the enterprise content management system, overwriting or otherwise replacing the old values.
To implement this new feature, a number of aspects are used. First, a dynamic label aspect is used to change the label of save changes button (504) from “Save Changes” to “Upload for Approval” in button 554. Second, an aspect which changes the size or dimensions of button 504 is used to adjust the size of button 554 so that it is taller than button 504 (e.g., in order to clearly display the new, longer label). Third, an aspect which adjusts the position or placement of search again button 552 within the page (fragment) is used so that the button is shifted up (e.g., to accommodate the taller button 554).
It is noted that the second and third aspects/steps outlined above are performed if needed depending upon the implementation. For example, if the implementation of a button and/or the dynamic label aspect is such that the size or dimensions of the button being changed automatically expands to accommodate the longer label, then it may not be necessary to use a change size aspect on button 552. Similarly, if the implementation of a button and/or the dynamic label aspect is such that the position of a neighboring button is automatically shifted, then it may not be necessary to use a change position aspect to manually and/or directly shift button 552 upwards.
Lastly, a change action aspect is used so that the action triggered by pressing button 554 no longer automatically saves the changed data to an enterprise content management system in a manner that overwrites the old data. Rather, the data is (as an example) saved temporarily without overwriting the old data. Some other user (e.g., with the appropriate authority to permit changes to be made to purchase order information) is then notified of the desired change to the purchase order information and either accepts the change (in which case the new data replaces the old data in the enterprise content management system) or denies the change (in which case the proposed change is discarded from the enterprise content management system).
The following figures show some examples of an application composition tool via which an artifact and an aspect are selected (see, e.g., steps 100 and 102 in
Last name widget 604 is selected and as such, the properties displayed in properties panel 606 show the properties for last name widget 604. Last name widget 604 includes a number of properties, including general, style, behavior, validation, and aspects. In the state shown, aspects are selected in properties panel 606 and the aspects assigned to the last name widget (currently none) are shown under “Assigned Aspects.”
To add an aspect, a user clicks on add button 608 which causes select aspect window 610 to be displayed. In this example, the user selects the dynamic label aspect from the pull down menu and presses the okay button. The process of
The following figure shows the application composition tool after the dynamic label aspect has been added or otherwise applied to the last name widget.
As is shown in properties panel 702, the assigned aspects for the last name widget (704) now includes the dynamic label aspect. Since dynamic label aspect 706 is selected (note, for example, the highlight over dynamic label aspect 706), aspects configuration panel 708 shows the configurations for dynamic label aspect 706. In this example, the next label (i.e., new text) needs to be configured (i.e., the user needs to specify what the new label for last name label 704 will be). For example, if the user wants to change the label of last name label 704 from “Last Name:” to “Family Name:” then the user would specify “Family Name:” in aspects configuration panel 708 and that new label would be displayed for that widget.
Returning to
As described above, in some embodiments, an aspect includes a conditional expression. To illustrate this with the dynamic label aspect, a user may specify in aspect configuration panel 708 “IF<conditional expression>THEN<first label value>ELSE<second label value>.” In some embodiments, the second label value in the ELSE branch above is the original label for that widget.
The following figures show some other properties associated with the exemplary last name widget described above (see, e.g., the other tabs in property panel 702). Naturally, there may be a corresponding aspect which is capable of modifying one or more of the exemplary properties described below.
The following figures show the exemplary dynamic label aspect in more detail.
This view also include an applicable to section (1104) which describes those artifact types which the aspect is applicable to and is able to modify if so desired. In this example, the applicable artifacts are described by (e.g., logical) artifact type as opposed to specific artifact instances, such that an aspect is applicable to all instances of an artifact when included in the applicable to list. As described above, limiting an aspect to specified artifacts may be desirable to prevent the accidental and/or unintentional violation of some business process or rule enforced by a user interface.
The following figures describe various user interface artifacts in more detail. Although not explicitly shown, it is to be understood that there may be some aspect which is capable of modifying some part of these exemplary artifacts.
User Interface Widgets
Actions
In the example shown, an application composition tool (1300) shows a vehicle list page being constructed. As is shown in interaction panel 1302, the export to CSV action is currently associated with the vehicle list page. To add another interaction to the vehicle list age, the user interface designer may press add button 1304. In response, application composition tool 1300 may present a pull down window or other widget (not shown) from which to select an action to add to the vehicle list page.
Properties panel 1308 shows some properties associated with the export to CSV action and in the particular state shown shows inputs to the export to CSV action. In this example, the inputs include a result list widget ID (e.g., ‘vehicle_result_list’), a page size (e.g., 100), a file name (e.g., ‘Pleasanton_Branch_Vehicle_List’), and selected columns (e.g., {‘License Plate’, ‘Manufacturer Year’, ‘Vehicle Status’}). Other non-input properties in this example include general, behavior, and validations.
User Interface Events
A user interface event is sometimes more simply referred to as an event. Generally speaking, an event is a mechanism which permits a declarative way to express a trigger and/or enable communication between different page elements (e.g., widgets, actions, action flows, data services instances, etc.) without requiring such elements to explicitly register with one another (i.e., be aware of each other).
In one example, a user interface contains two page fragments. One page fragment includes a list of customers and the other page fragment includes details associated with the customers. When a user updates the details of a specific customer, a user interface event occurs and communicates to the first page fragment (with the list of customers), causing that page fragment to update the specifics of that customer to reflect the changes made on the second page fragment. If so configured, an event can trigger multiple events (e.g., based on the configurations set by the user interface designer).
As described above, an event permits decoupling of the source and target information. That means (e.g., irrespective of the source or destination information) the event behaves seamlessly to pass information. An event can also provide an enhanced and interactive user experience where a single event allows interaction between pages. For example, suppose a user interface has a customer accounts page. This page includes a results list widget and an add new customer account button. The results list widget shows details related to customer accounts of interest (e.g., as the result of a search) and the add new customer account button allows a user to add a new customer account. A user (if desired) could use a real-time query (RTQ) to get the details of the customer accounts. Upon clicking the add new customer account button, the user interface would connects the user to the action flow that seeks information through a wizard. For example, the first step seeks information for the type of account, second step seeks information for the name of customer, and the last step is an agreement that the customer accepts to complete the creation of an account. This sequence of steps permits creation of a new customer account. Regardless of the source and target information, a user interface event named account create is configured and this event gets triggered at the last step of the action flow. So, whenever a customer account is added, the user event notifies the user about the addition of a new customer. This event can be used to get the latest list of customers every time a customer is added by the user.
Some examples of user interface events include: object created, page navigated, document imported, user logged in, preferences updated, application started, action flow launched, and key pressed. The following figures show some examples of how events are created and/or managed.
Context Menus
Page Fragments
A page fragment is like a page in that an application composer associates it to an application or to an object model. Unlike a page, however, a page fragment is not URL addressable and must be added to a page for the runtime application to render it. A page fragment is a self-contained entity that communicates with the host page or fragment by way of input and output parameters.
Action Flows
Generally speaking, an action flow is a reusable sequence of steps that a user performs in a user interface. Some application composition tools can define an action flow and reuse it in multiple contexts. At runtime, the action flow presents users with either a single step or multiple steps to assist them in executing a (e.g., business) task or process. For example, an application composition tool can create an action flow that enables users to add collateral to a customer. The application composition tool can reuse the same action flow in a car loan processing application and in a mortgage application. In various embodiments, an action flow permits a user interface designer to: control the number of steps, sequence the flow of steps, define the final action executed at the end of the flow, enable the finish button to be labeled, define the label for the cancel button, define the visibility of finish and/or cancel buttons, enable or disable the navigation to next and finish step based on the condition, and/or configure the expression to return step pages, first page, or next page.
Pages
Generally speaking, a page is the basic unit of a user interface. Pages are created and composed at design time by putting widgets on it. It is then viewed at runtime with those widgets.
Page types include master pages, applications pages, and instance pages. A master page is a top-most page in the page hierarchy. Typically, a master page has a menus for application level operations, logos, a global search option, etc. A typical master page may also have a designated area to display application or instance pages. An application page is used to display information outside of the context of an instance of any given object. They are typically used as the home page of the application, search pages, list pages and administration pages. An instance page is used to create, display, and/or update data of the associated object type, for example a customer or collateral.
Although the foregoing embodiments have been described in some detail for purposes of clarity of understanding, the invention is not limited to the details provided. There are many alternative ways of implementing the invention. The disclosed embodiments are illustrative and not restrictive.
This application is a continuation of, and claims a benefit of priority under 35 U.S.C. 120 of, U.S. patent application Ser. No. 15/077,184 filed Mar. 22, 2016, entitled “METHOD AND MECHANISM FOR CONTEXT DRIVEN ALTERATION OF UI ARTIFACTS INSTANCES BEHAVIOR USING EXPRESSION BASED PLUGGABLE UI ASPECTS,” which are hereby incorporated herein for all purposes.
Number | Date | Country | |
---|---|---|---|
Parent | 15077184 | Mar 2016 | US |
Child | 17239271 | US |