EP1673701A2 - Web browser as web service server - Google Patents

Web browser as web service server

Info

Publication number
EP1673701A2
EP1673701A2 EP04795335A EP04795335A EP1673701A2 EP 1673701 A2 EP1673701 A2 EP 1673701A2 EP 04795335 A EP04795335 A EP 04795335A EP 04795335 A EP04795335 A EP 04795335A EP 1673701 A2 EP1673701 A2 EP 1673701A2
Authority
EP
European Patent Office
Prior art keywords
web
business process
web browser
user
web service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
EP04795335A
Other languages
German (de)
French (fr)
Other versions
EP1673701A4 (en
Inventor
Jerry A. Waldorf
Bing Lu
Alex Demetriades
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SeeBeyond Technology Corp
Original Assignee
SeeBeyond Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US10/961,522 external-priority patent/US20050198394A1/en
Priority claimed from US10/961,822 external-priority patent/US20060031750A1/en
Priority claimed from US10/962,160 external-priority patent/US7343554B2/en
Priority claimed from US10/962,182 external-priority patent/US7506072B2/en
Application filed by SeeBeyond Technology Corp filed Critical SeeBeyond Technology Corp
Publication of EP1673701A2 publication Critical patent/EP1673701A2/en
Publication of EP1673701A4 publication Critical patent/EP1673701A4/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • G06F16/88Mark-up to mark-up conversion

Definitions

  • Computer-based information technologies may be used for automation of various business processes.
  • various business operations of a business process may be defined by computer program instructions and some or all of such business operations may be automatically executed by one or more computers .
  • the execution of certain business processes may require retrieval of data or information from other resources such as databases, and collaboration with one or more other computer business processes.
  • Technologies and tools are needed for integrating and orchestrating a wide range of resources, trading partners and service providers to complete such a business transaction.
  • Web Services have been developed to facilitate communications and integrations of different resources, applications and services using various Web technologies .
  • Web Services can be used to define uniform interfaces based on, for example, the Extensible Markup Language (XML) which is a subset of the Standard Generalized Markup Language (SGML) promulgated by the International Standards Organization (ISO) .
  • XML Extensible Markup Language
  • SGML Standard Generalized Markup Language
  • ISO International Standards Organization
  • Web Services provide a framework for different applications to share business process logic and applications in addition to sharing of data.
  • Web Services include a set of open standards that facilitate program-to-program interactions by specifying methods to describe, publish, discover and bind application interfaces. Web Services enable common means for discovery and invocation of services .
  • a Web Service may use an XML-based language, e.g., the Web Services Description Language (WSDL) , to define an interface for a Web application to be available on the Web.
  • WSDL Web Services Description Language
  • the WSDL provides provisions that describe the location of the Web Service and the operations or methods provided by the Web Service in the XML format.
  • a Web Service further uses a transport protocol, e.g., the Simple Object Access Protocol (SOAP) , to define Web Service messages (SOAP messages) in an XML-based message format for communicating and interoperating with other Web Services.
  • SOAP Simple Object Access Protocol
  • XML-based Web Services may be implemented in different programming languages and can run on different computer operating systems . This is because an XML document uses plain ASCII text that can be understood and processed by different computer operating systems in different programming languages.
  • a client accessing a Web Service is generally not required to have priori knowledge about the server for the Web Service.
  • software may communicate and interact with other software via Web Services .
  • This feature of Web Services allows for a Web Service user to access and integrate business processes, data, and functionalities provided by others via Web Services without re- creating the processes, data and functionalities.
  • Web Services can lead to potential new business opportunities that utilize various Web resources.
  • Web Services may be registered, published, and discovered through, for example, a Universal Description and Discovery Integration (UDDI) Registry.
  • UDDI Universal Description and Discovery Integration
  • Web Services provide an integration platform for implementing and integrating business processes in a distributed computing environment, e.g., executing various operations or processing tasks of a single business process in different software applications on different computers.
  • Web Services can be used to achieve universal interoperability between applications by using Web standards and to allow flexible integration of heterogeneous systems in a variety of domains including business-to-consumer, business-to-business and enterprise application integration.
  • a business process can be carried out within an enterprise or across multiple enterprises using the Web Service Platform.
  • Various XML-based business execution languages have been developed or are emerging to provide a uniform and standard mechanism for defining, executing, and sharing business processes via Web Services .
  • the Business Process Execution Language for Web Services (BPEL4WS or BPEL) is an example of such a language. More specifically, BPEL provides the formal specification of business processes and business interaction protocols and leverages existing Web Services defined in WSDL. Summary [0016]
  • the systems and techniques described in this application provide, among others, mechanisms for operating a Web browser as a Web Service Server with and without a business process engine.
  • a Web Service server may include at least one computer which is configured to include a communication server in communication with a computer network, a servlet, and Web page templates that are predefined to obtain information from an expert user for providing a Web Service .
  • the servlet is operable to dispatch the Web page templates to a Web browser in the computer network used by the expert user via the communication server in response to a Web Service request and to convert a message generated by the communication server in response to a received input from the Web browser made by the expert user into an Extensible Markup Language (XML) document.
  • the servlet is also operable to send the XML document to the computer network via the communication server as a response to the Web Service request .
  • An article is also described to include one or more machine-readable storage media that store machine-executable instructions.
  • the stored instructions are operable to cause a machine to dispatch pre-defined Web pages to a Web browser used by a user for obtaining information from the user to respond to a Web Service request, process returned Web pages from the Web browser to convert a response by the user into a Web Service response file, and use the Web Service response file to reply to the Web Service request .
  • one or more machine-readable storage media may be used to store machine-executable instructions. Such instructions are operable to cause the system to execute processes of a business workflow by directly invoking a Web service through a Web service call to the Web service .
  • a system is described to include a business process engine and a Web server module.
  • the business process engine has executable business processes and is operable to directly interact with a Web service server in executing the business processes.
  • the executable business processes include a first set of processes that control a sequence of Web pages at a remote browser connected to interact with the business process engine.
  • the Web server module is in communication with the remote browser and presents the remote browser to the business process engine as another Web service server.
  • the Web server module converts data to the business process engine from the remote browser into a Web service format from a Web service server.
  • the Web server module converts Web service data from the first set of processes in the business process engine to the remote browser into a format that can be transmitted to and can be processed by the remote browser.
  • a system in communication with a computer network to receive input from a Web browser in the network and to send output to the Web browser, (2) a servlet to receive a request that is generated by the server in response to a received input from the Web browser and convert the request into a document, (3) a business process engine, and (4) page templates that are predefined according to activities of the business process engine.
  • the server has executable business processes and is operable to interact with a Web service in executing the business processes.
  • the business process engine is operable to respond to information from the browser in the document converted by the servlet and to produce a Web service communication to the browser as if the browser were a Web service server.
  • the business process engine sends the Web service communication to the servlet .
  • the predefined page templates operate to convert a Web service communication from the business process engine into a Web page to the Web browser.
  • the servlet receives and directs each Web service communication from the business process engine to a selected page template and the server directs each Web page converted by the page templates to the Web browser via the computer network.
  • This application also describes at least one exemplary method for converting information to and from a Web browser to make the Web browser appear as a Web service server.
  • a hypertext transfer protocol (HTTP) request from the Web browser is converted into an Extensible Markup Language (XML) document as a Web Service message.
  • HTML Extensible Markup Language
  • the converted XML document is directed to a software module for Web Services which processes the converted XML document as a message from a Web Service Server and produces an XML reply for the Web Service Server.
  • the XML reply is converted into a Web page and the HTTP is used to transmit the Web page to the Web browser.
  • Another exemplary method described here provides steps for using a computer business process engine to interact with a Web browser as a Web service server. Processing operations of the business process engine are described in a computer programming language to allow for directly invoking a Web service in a Web service server and to exchange information in documents .
  • a set of predefined Web page templates that correspond to activities of the business process engine is provided to interact with a Web browser and to control a page flow at the Web browser.
  • Each Web page template is operable to convert information from the business process engine in the documents to the Web browser into a Web page to be displayed by the Web browser.
  • a protocol is used to transmit the Web page to the Web browser.
  • a Web service of the business process engine is used to invoke the Web browser as a Web service server and the data from the Web browser is converted into a document from a Web service server. The converted document is directed to the business process engine to be processed as a Web service reply.
  • a Web page is usually defined and described in the Hypertext Markup Language (HTML) and thus a data file for a Web page is different from a data file in XML. Therefore, according one aspect of this application, HTML naming conventions are applied to map data in a HTML Web page from a Web browser into tree- structured data fields of a XML document for a Web Service. This XML document is then used to reply to a Web Service request which initiates the HTML Web page from the Web browser to represent the Web browser as a Web service server.
  • a graphic user interface may be provided to graphically represent the mapping between data fields in the HTML Web page and data fields in the tree-structured data fields of the XML document.
  • two separate graphic panes may be provided in the graphic user interface to represent data fields of the HTML Web page and the tree-structured data fields of the XML document, respectively, and graphic icons may be provided for linking the two separate graphic panes .
  • This conversion or mapping between data fields in the HTML Web page and data fields in the tree-structured data fields of the XML document facilitates the use of a Web browser as a Web Service Server with and without a business process engine.
  • the mapping of tree structured data between different computer representations may be implemented.
  • a method for such mapping may include representing an instance of a first tree data structure in a first computer language, translating the instance of the first tree data structure into a corresponding instance of the first tree data structure in a second, different computer language, and for given the instance of the first tree data structure in the second language, finding an instance of a second tree data structure in the second computer language. This method further includes translating the found instance of the second tree data structure from the second computer language into the first computer language.
  • a method may include translating a first tree data structure in a first computer language into a corresponding first tree data structure in a second, different computer language, translating a second tree data structure in a first computer language into a corresponding second tree data structure in a second, different computer language, determining a mapping from the first tree data structure in the second computer language to the second tree data structure in the second computer language, and translating the mapping from the second computer language into the first computer language.
  • This application further describes mechanisms for operating a business process engine to interact with a Web browser where the Web browser operates as a Web Service Server and mechanisms for supporting back button function in the Web browser to undo user actions through the Web browser.
  • a method for using a computer business process engine to interact with a Web browser as a Web Service server.
  • Processing operations of a business process are described in a computer programming language to allow for directly invoking a Web service in a Web Service server.
  • a set of predefined Web page templates that correspond to selected activities within the business process are provided to interact with a user via a Web browser and to control a page flow at the Web browser to obtain information from the user for use in the business process .
  • a record of user actions on the Web browser is kept and one or more selected Web page templates are used to resend corresponding one or more selected Web pages to the Web browser when the user clicks the back button in the Web browser.
  • FIG. 1 shows an exemplary implementation of a system that operates a Web browser as a Web Service through a control of a business process engine.
  • FIG. 2 shows one implementation for operating steps of the web module in FIG. 1.
  • FIG. 3 shows a simple example of a sequence of processing steps of a business process that can be implemented in the system of FIG. 1.
  • FIGS. 4A and 4B show two exemplary methods for executing a business process in the system of FIG. 1 when a back button on the Web browser is used by the user.
  • FIGS. 5A and 5B illustrate an exemplary graphic user interface (GUI) for designing a business process for the system of FIG. 1.
  • GUI graphic user interface
  • FIG. 6 shows an exemplary implementation of a system that operates a Web browser as a Web Service without a business process engine .
  • FIG. 7 shows one implementation for operating steps of the web module in FIG. 6.
  • FIGS. 8A and 8B illustrate mapping of tree structures based on translation between two different computer languages.
  • FIGS. 9A and 9B illustrate mapping of instances of tree structures based on translation between two different computer languages.
  • FIG. 1 illustrates an implementation of a system 50 having a Web interface or conversion module 110 (hereinafter, Web module 110) that enables a business process engine 120 to interact with a Web browser (e.g., 102A or 102B) in a communication network 101 (e.g., the Web on the Internet or other computer networks) as if the Web browser (e.g., 102A or 102B) were a Web Service Server.
  • Web module 110 a Web interface or conversion module 110
  • the business process engine 120 is programmed to directly interact with a Web Service provided by a Web Service server (104A or 104B) connected to the network 101 without an intermediary.
  • the business process engine 120 may contact a Web Service registry such as a UDDI registry to find a suitable Web Service before directly interacting with the suitable Web Service.
  • a Web browser 102A or 102B is generally a client on the Web and is used by a user to invoke one or more Web applications provided by Web servers connected in the network 101.
  • a Web Service on a Web Service server generally operates as a server on the Web to make a particular functionality available to others and can be invoked by others to deliver its functionality or functionalities. Therefore, in such applications, a Web browser usually does not behave like a Web Service and thus cannot be invoked by others in the network 101.
  • the Web module 110 may be designed to allow the business process engine 120 to control the page flow at the Web browser 102A or 102B in accordance with the business processing steps within the business process engine 120.
  • a Web server 100 may be provided to implement the business process engine 120 and the Web module 110.
  • the Web server 100 may be implemented in one or multiple computers.
  • the business processing engine 120 and the Web module 110 may be software applications stored in one or more computer storage - ⁇ o ⁇ devices or media and are executable by the one or multiple computers to perform the operations defined in the business process engine 120.
  • the business process engine 120 may be a computer software application that describes and defines a business process, a business transaction, or a business workflow that has a sequence of processing steps or subprocesses .
  • One or more processing steps of the business process in the business process engine 120 use information from the Web browser (e.g., Web browser 102A or 102B) to complete one or more processing tasks within the business process.
  • the business process engine 120 is written in a suitable XML-based business execution language that defines, executes, and shares business processing logics and functionalities via Web Services.
  • a suitable XML-based business execution language can be used to define relationships between different Web Services and to compose a new application that links, integrates, or correlates with other Web Services.
  • Examples of a suitable XML-based business process execution language for the business process engine 120 in FIG. 1 include but are not limited to: (1) Business Process Execution Language for Web Services (BPEL4WS. or BPEL) published at http://www- 106.ibm.com/developerworks/library/ws-bpel/, (2) Web Services Conversation Language (WSCL) published at http://www.w3.
  • BPEL4WS. or BPEL Business Process Execution Language for Web Services
  • WSCL Web Services Conversation Language
  • BPSS Business Process Specification Schema
  • ebXML electronic business Extensible Markup Language
  • Examples of a business process include on-line stock quote services, on-line purchase services such as those provided by Aamzon.com, or a complex supply chain transaction.
  • typical processing steps may include receiving the customer order for a product, checking the inventory for the availability of the ordered product, processing the customer credit card payment for the ordered produce, requesting the shipment department to prepare the shipment of the product, and finally shipping the product to the customer.
  • Some of the processing steps may involve business processes or transactions that are external to the seller.
  • the seller may obtain products from one or multiple suppliers and hence may need to contact an appropriate supplier for the current pricing and availability of the particular product; many on-line sellers often use third-party credit checking services to process the credit card payments; and the shipping may also be contracted to a third party shipping company such as UPS or FedEx.
  • Web Services and BPEL or other business process execution languages may be used to integrate third party services to the seller' s business process engine 120 in the system 50 shown in FIG. 1.
  • the seller's business process engine 120 may be programmed to directly call the supplier's Web Service (e.g., 104A) without an intermediary to obtain the information on the product and to confirm the order of the on-line buyer after receiving the supplier's confirmation on the product.
  • the engine 120 may be programmed to search for a supplier's Web Service at a Web Service registry first before the direct calling through the Web.
  • the business process engine 120 may also be programmed to integrate one or more backend applications 106 and one or more databases 108 in executing certain processing steps in addition to Web Services.
  • the business process engine 120 may retrieve customer data from a customer database 108 upon receiving the customer order and take certain predetermined actions based on the received data for that particular customer.
  • the customer database 108 may store data on customer's mailing address, past purchase records, etc. If the customer is a new customer, the business process engine 120 may act to create a new entry in the database 108 for that customer.
  • the on-line seller may have an backend application 106 separate from the business process engine 120 to provide certain customer service functions to the business process engine 120. As an example, the seller's backend application 106 may provide billing functions to process and generate a customer bill for the customer and the business process engine 120 can deliver the generated customer bill to the customer.
  • the business process engine 120 may call a Web browser 102A as a Web Service and interact with the Web browser 102A to obtain information from the Web browser 102A in executing one or more processing steps of the business process.
  • the Web browser 102A is invoked by the Web server 100 though the Web module 110.
  • the Web server 100 with the business process engine 120 operates as a client to request a service or functionality from the Web browser 102A while the Web browser 102A operates as a server, a Web Service Server in particular, to respond to the request by providing the requested service or functionality.
  • the Web browser 102A is a "quasi" Web Service and operates as a Web Service to the Web server 100 only through the Web module 110.
  • Web module 110 acts as the intermediary because, conventionally, a Web Service and a Web browser use different communication protocols in their communication messages.
  • the Web module 110 of the system 50 in FIG. 1 may be designed to expand the capabilities of the business process engine 120 from integration of Web Services, backend applications, databases, and other functionalities or resources outside the business process engine 120 to further include the integration of one or more Web browsers into the business process.
  • the system 50 in FIG. 1, for example, may allow for a user to provide information via a Web browser to the business process engine 120 in execution of certain processing steps.
  • a user that is an expert in certain business or technology areas involved in the processing steps of the business process can be queried for a professional assessment or evaluation of a particular situation arising out of a processing step in order for the business process engine 120 to continue or complete the business process.
  • a request from the business process engine 120 is sent to the Web browser (e.g., 102A) and is displayed on the Web browser 102A.
  • the expert user at the Web browser 102A enters an input to the Web browser 102A and the input is sent back to the business process engine 120 through the Web module 110.
  • the input from the user may be in a variety of forms.
  • the user may simply fill in one or more blank fields in a form on a Web page displayed by the Web browser 102A that is defined and controlled by the business process engine 120.
  • the Web module 110 converts the user input in the filled form into a proper XML document for a Web Service and directs the document to the business process engine 120 for further processing.
  • the user may use the Web browser 102A to send a document as part of or the entirety of the user input to the business process engine 120.
  • FIG. 1 further illustrates a detailed exemplary implementation of the Web module 110 when the network 101 is the Web on the Internet.
  • the module 110 includes a HTTP server 112 for directly communicating with one or more Web browsers (e.g., 102A and 102B) on the Web 101, a Java servlet 114 programmed as a front agent for the business process engine 120 to process all exchanges between a Web browser and the business engine 120, and a set of predefined template pages 116 that are defined in the JavaServer Page (JSP) to build HMTL Web pages according to activities defined in the business process engine 120.
  • JSP JavaServer Page
  • a Web application may be made available on the Web 101 either through a conventional Web server to allow a user to use a Web browser to invoke the Web application by a hyperlink and using the Web application by navigating through Web pages defined in the Web server.
  • the Web pages can be described in the Hypertext Markup Language (HTML) and communicated via HTTP.
  • the same Web application may be offered as a Web Service on the Web by using input and output messages in the XML documents defined in WSDL.
  • the XML documents in WSDL are used to find, invoke, and bind the Web Service.
  • the HTML documents and XML documents in Web Services are different.
  • the business process engine 120 in BPEL in general cannot directly invoke and integrate a Web browser as part of its processing steps.
  • a Web browser cannot directly communicate with the business process engine 120 in BPEL.
  • the Web module 110 in FIG. 1 uses the servlet 114 to remove this communication barrier through a conversion between the HTML documents and XML documents. This conversion allows for communication between the Web browser and the business process engine 120.
  • the servlet 114 is configured or programmed, as part of its functions, to provide the conversion from HTML documents generated by the Web browser into properly formatted XML documents for Web Services to be processed by the business process engine 120.
  • the servlet 114 can be programmed as an intelligent agent to direct an XML document for Web Services from the business process engine 120 and to select a proper template page (e.g., JSP) among the predefined template pages 116 (e.g., JSP) for converting the document (e.g., the XML document into a HTML Web page) .
  • a proper template page e.g., JSP
  • JSP predefined template pages 116
  • the conversion from XML documents into HTML Web pages may be carried out by the predefined JSP pages 116.
  • the servlet 114 and the JSP pages 116 may be programmed to dynamically build HTML Web pages "on the fly" from the XML documents generated by the business processing engine 120.
  • Each JSP template page is programmed to parse data fields in each XML document and to compose a properly formatted HTML Web page from the parsed data fields. In this context, each JSP template page controls the content or appearance of a Web page.
  • the HTTP server 112 then packages each HTML page from the JSP template pages 116 in a HTTP container to transmit the Web page to the Web browser (e.g., Web browser 102A) via the communication network 101 (e.g., the Web) .
  • the JSP template pages 116 are predefined by activities in the processing steps programmed in the business process engine 120.
  • the activities in the processing steps programmed in the business process engine 116 determine and control the sequence of the page flow and the content for each of the Web pages output by the JSP template pages 116, and the Web pages completed by and returned from the user of the Web browser.
  • the business process engine 120 ultimately controls the page flow and page content at the Web browser.
  • FIG. 2 shows an exemplary sequence of operations of the above specific implementation of the Web module 110 in FIG. 1.
  • a user input from the Web browser 102A is packaged according to a hypertext transfer protocol (HTTP) and is sent via the communication network 101 (e.g., the Web) to be received by the HTTP server 112.
  • HTTP hypertext transfer protocol
  • the HTTP server produces a HTTP request to the servlet 114 where the HTTP request contains the received user input entered into the Web browser by the user.
  • the servlet 114 converts the data of the user input from the HTML Web page into a XML document containing the user input and sends the converted XML document in a connection map reply message (CMReply message) to the business process engine 120.
  • the business process engine 120 processes the user input in the CMReply message and produces a response to the Web browser 102A by using a connection map request message (CMRequest message) to send the response in the XML document to the servlet 114.
  • the servlet 114 processes the XML document to determine which Web page in the predefined page flow the XML document relates to and directs the XML document to the proper JSP template page in the JSP pages 116.
  • the proper JSP template page operates on the XML document to compose a corresponding HTML Web page and sends it to the HTTP server 112. Finally, the HTTP server 112 transmits the HTML Web page to the Web browser 102A via the communication network 101.
  • the Web module 110 supports a mechanism for converting information to and from a Web browser to make the Web browser appear as a Web service server to the business process engine 120.
  • a hypertext transfer protocol (HTTP) request from the Web browser is converted into an Extensible Markup Language (XML) document as a Web Service message.
  • the converted XML document is directed to a software module for Web Services which processes the converted XML document as a message from a Web Service Server and produces a XML reply for the Web Service Server.
  • the XML reply is then converted into a Web page .
  • the HTTP is used to transmit the Web page to the Web browser.
  • the business process engine 120 may invoke a Web browser to request a user input for the first time by asking the user to activate a specific Web page through a hyperlink.
  • the user may be informed of the specific Web page in various ways. For example, a telephone call to the user may be made either automatically or through an operator to give the hyperlink to the user.
  • an electronic mail including the hyperlink may be sent to the user. This email function may be designed as part of the servlet 114 or as part of the business process engine 120.
  • the request for the Web Service from the Web 101 to the Web Server 100 is received from the HTTP server 112.
  • the servlet 114 or the business processing engine Upon receiving this request, the servlet 114 or the business processing engine generates and sends the email with the proper hyperlink to the expert person whose input is needed for responding to the request.
  • the hyperlinked specific Web page is defined by one of the JSP page templates 116 as the first Web page for the user to interact with the business process engine 120. The user clicks on the hyperlink in the email or directly opens the hyperlink in the Web browser to begin the sequence of the page flow that is predefined by the logic of the business engine.
  • XML documents defined by the WSDL arrange tags and data in a tree-like structure in order to interact with Web Service servers.
  • a simple XML document for a Web Service on a name of "Miles Davis” may be as follows: xml document: ⁇ root> ⁇ first-name>Miles ⁇ /first-name> ⁇ last-name>Davis ⁇ /last-name> ⁇ /root>
  • the output data from a conventional HTML Web page entered at Web browser is a list of name-value pairs. Each pair of a name and the respective value correspond to one HTML input element.
  • the name is the HTML element's name and the value reflects the user's input.
  • the above flat list does not contain a tree structure of the XML files suitable for processing in a Web Service environment.
  • the output from a HTML Web page cannot be properly processed by a Web Service to extract the data.
  • naming conventions may be applied to each HTML element's name and value. For example, the following name-value pair ("root/first- name", "Miles") can be converted into the following tree structure under the naming conventions :
  • the servlet 114 is specifically programmed to parse or decode the output flat list from a conventional HTML Web page and to arrange or map the data in the flat list of the HTML Web page into the XML tree structure in a converted XML document for Web Services by following these naming conventions.
  • the JSP page templates 116 encode the data in the XML tree structure into data in a form of the flat list for a HTML document in order to be processed by a receiving Web browser.
  • Each XML document to or from the business process engine 120 implementing this application as a business process has the following tree structure: output_show_ essage Output formO value (yourName, hisName, submitO)
  • Each JSP page template is programmed to use a naming convention for each HTML element in the input and output of the Web page used by the Web browser. For example, "his name" Web page may be described by the following HTML document :
  • the name of the path "output_show_Message/Output/form0/" uses names of the root and branches in the XML tree in a sequence to reflect the XML tree structure.
  • the Web page outputs the name-value pair to the HTTP server 112.
  • the servlet 114 Upon receiving this output from the Web browser, the servlet 114 parses the name part of the pair and translates it into the XML tree structure. The servlet 114 uses the "output_show_Message” as the root to begin building the tree and adding branches "Output” and “formO” as it parses through the name based on the naming convention used by the JSP page templates. At the very end of the name is the field "hisName.” The servlet 114 creates a data field "hisName” to accept the value of "John” output by the Web browser. This tree structure in the XML document for the output from the Web browser is graphically shown in the lower left field in the GUI in FIG. 5B.
  • the servlet 114 operates to convert the output of the "His Name" HTML page into the following tree-structure XML document to the business process engine 120 as if the Web browser were a Web Service:
  • FIG. 2 further illustrates that the business process engine 120 may call a Web Service, a backend application, a database, or another Web browser (e.g., Web browser 102B) when the user input from the Web browser 102A is being processed and before the response to the Web browser 102A is generated by the business process engine 120.
  • FIG. 3 shows an exemplary flow of steps in a simple business process where the same set of activities is required for processing each single page of the Web application.
  • the request for service support in FIG. 3 represents a call to a Web Service, a backend application, a database, or another Web browser.
  • the business process engine 120 initiates a call for Web Services to a Web browser (e.g., 102A in FIG. 1) to start the interaction between the Web browser 102A and certain processing steps within the business process engine 120. This interaction is predefined by a set of JSP pages 116 shown in FIG. 1.
  • the business process engine 120 sends out a Web page via the JSP pages 116 in FIG. 1 at step 320 to request for certain user's input 322.
  • the business process engine 120 waits for the user's input 322 before continuing a processing step that requires the user's input 322.
  • the business process engine 120 After the user at the Web browser 102A enters the user input 322 in the Web page and sends the page back via the HTTP server 112 and the servlet 114, the business process engine 120 proceeds to the next processing step by using the input 322 at step 330. This step may be invisible to the Web browser 102A. During this time, the business process engine 120 may request for service support by calling another external resource such as a Web Service, a backend application, a database, or input from another user at another Web browser by using a set of JSP pages that are specifically predefined for that particular service support and are generally different from the JSP pages 116 for the Web browser 102A.
  • another external resource such as a Web Service, a backend application, a database, or input from another user at another Web browser by using a set of JSP pages that are specifically predefined for that particular service support and are generally different from the JSP pages 116 for the Web browser 102A.
  • the business process engine completes the needed processing steps and sends a new Web page 342 to the Web browser 102A via another one of the JSP pages 116.
  • the business process engine decides whether the above interaction with the Web browser 102A is to continue and if not, it terminates the interaction at step 360.
  • various functions usually associated with Web browsers may be maintained.
  • Web browsers generally support "back" and "forward" buttons.
  • the forward button allows a user to jump forward from the current Web page to a subsequent Web page that the user has visited.
  • the back button allows the user to jump back to a previous page the user has visited prior to the current Web page .
  • FIGS. 4A and 4B illustrate two different back button operations by the user of the Web browser 102A in a simple multiple-step business process in the business process engine 120 in FIG. 1.
  • the business process engine has yet to perform the processing in step 3 which causes a change at a support service called by step 3.
  • the support service in step 3 may be a resource external to the business process engine such as a database, a backend application, a Web service, etc.
  • the business process engine may be programmed to resend the pages to the Web browser in response to the back button action as long as it keeps the states of the prior user Web pages .
  • the user action of pressing the back button on the Web browser corresponds in the process model to an asynchronous event received while the process is waiting for input at step 5.
  • step 5 the process stops waiting on step 5 and jumps back to step 1.
  • previously executed operations like the one in step 3, still remain valid.
  • the business process would simply resume its activities from step 1 like the situation in FIG. 4A.
  • a fault may be generated to trigger a compensation action on previously executed operations (step 3 in this example) .
  • the business process engine 120 in FIG. 1 may be configured or programmed to include a state keeping mechanism to keep state data on each action of the Web browser. This allows the business process engine 120 to know the past actions by the user and the states of the previous Web pages caused by the user actions .
  • This state keeping mechanism may be implemented as a memory file to store the state data.
  • the business process engine 120 may be programmed to have a continuation mechanism which restarts the processing steps affected by the back button at the Web browser as if the prior actions never take place.
  • the business process engine 120 makes a new call to the JSP template page associated with the Web page to which the back button is directed and continues from that step.
  • the continuation mechanism may be used to support back button actions for multiple Web pages as long as there is no need to undo changes made to a resource outside the business process engine 120.
  • the business process engine 120 may need to activate or invoke a separate compensation mechanism to undo and compensate the changes in outside resources.
  • Various business execution languages including BPEL support such a compensation mechanism. Therefore, the business process engine 120 may be programmed to include the compensation mechanism.
  • GUIs graphic user interfaces
  • GUIs may be used to facilitate development of various components such as the components in the Web module 110 in FIG. 1.
  • a developer's tool kit based on a graphic user interface (GUI) is now described.
  • This GUI allows a developer to conveniently develop a system based on FIG. 1 for a specific application.
  • the GUI provides graphic icons to represent different logic links, logic operations, and business processes for programming business processes or workflows .
  • a developer can use this GUI tool kit to graphically design a business flow on the GUI with the graphic icons to represent the underlying business processing steps for the business processing engine 120.
  • the GUI may also provide graphic icons for the developer to design a set of JSP template pages based on the activities of the business process engine 120.
  • the GUI represents the JSP pages as icons.
  • the developer can proceed to design the business processing engine 120 on the GUI by dragging the JSP page icons and other predefined graphic icons to a design canvas on the GUI to compose the workflow for the business process engine 120.
  • the developer can execute a compiling process on the GUI to check and generate the underlying codes for the business process according to a selected business execution language such as BPEL, WSCI, etc.
  • the business process engine is ready to operate after the compiling process is completed.
  • 5A and 5B illustrate one example of such a GUI for a simple process where a Web browser is asked for the user's name and another person's name ("his name”) and returns a Web page to the user displaying "Hello" to both entered names.
  • This process has a sequence of three Web pages.
  • the business process engine 120 in the system 50 of FIG. 1 can be programmed to control these three web pages in this example.
  • the first page is a form "Yourname . show” for entering the user's name;
  • the second page is a form "Hisname. show” for entering the other person's name;
  • the third page is a form "SayHi.show” for displaying "Hello" to two entered names in the first and second pages .
  • a Home Link process (“Home.
  • FIG. 5A shows the XML tree structure for the output of the page "YourName . show” converted by the servlet 114 from an output of the Web browser and the input to the next page "HisName. show” in form of a XML document produced by the business process engine in the lower part of the GUI .
  • FIG. 5B shows the XML tree structure for the output of the page "HisName . show” and the input to the next page “SayHi.show” and their mapping relations.
  • the above GUI may be implemented as a GUI called "business process manager" to allow a developer to define, test and run a business process engine.
  • Most Web Service servers have been specially designed for Web Services .
  • Web Services software is implemented in such servers to provide desired functions and servers in form of Web Services .
  • Web browsers are generally used to access Web pages to send or receive information.
  • the above techniques and systems can be used to operate a web browser as a Web Service server through a business engine .
  • a user can use such a web browser through an interface or conversion module to respond to a Web Service request and to provide the requested service or functionality in a Web Service environment.
  • such a Web browser is a "quasi" Web Service server in part because the interface and conversion module is used to make the Web Service possible through a Web browser.
  • FIG. 6 illustrates an exemplary system with an interface module 110S that allows a Web browser 102S to operate as a Web Service Server.
  • the combination of the browser 102S and the interface module 110S functions as a Web Browser Web Service server 103.
  • the interface module 110S is designed to describe and publish the function or service of the browser 102S as a regular Web Service on the Web 101 and enable discovery and invocation of the browser 102S as a Web Service server.
  • the interface module 110S may allow for a user who is an expert in certain business or technology areas to provide a professional assessment, evaluation of a particular situation, or other information requested in a Web Service request to the interface module 110S.
  • the request is sent to the Web browser 102S and is displayed on the Web browser 102S.
  • the expert user at the Web browser 102S enters an input to the Web browser 102S and the input is sent back to, e.g., a Web Service server 104A or a computer on the Web 101 that makes the initial Web Service request to the interface module 110S.
  • the interface module 110S includes a servlet 114S, a HTTP server 112S, and predefined JSP pages 116S.
  • the HTTP server 112S provides the communication interface between the Web Browser WS server 103 with the Web 101 and part of the communications between the browser 102S and the interface module 116S.
  • a request for the Web Service from the Web 101 e.g., the WS client 104A, is sent to and processed by the interface module 110S. This request may be a SOAP request in an XML format.
  • the HTTP server 112S may be used to receive the requests for the Web Service.
  • the servlet 114S sends out an email to a mailbox for the expert user who uses the browser 102S to provide the service to the request .
  • the email includes a hyperlink to the Uniform Resource Locator (URL) address of the pages defined in JSP pages 116S.
  • the servlet 114S may also inform the expert user of the hyperlink and ask the expert user to access the JSP pages via other means, e.g., an automatic telephone call and other electronic communication means.
  • the expert user uses the browser 102S and the given hyperlink in the email to access the JSP pages 116S through the route from the HTTP server 112S and the servlet 114S.
  • the HTTP server 112 sends a HTTP request to the servlet 114S .
  • the servlet 114S dispatches the JSP pages 116S through the HTTP server 112S in the HTML format to the browser 102S.
  • the expert user fills requested information in the HTML pages and sends the completed HTML pages back to the interface module 110S .
  • the completed HTML pages are received by the HTTP server 112S and are next processed by the servlet 114S.
  • the servlet 114S converts the responses in the HTML format into the tree structure as a XML file.
  • the detailed description on the conversion function for converting data in HTML pages into tree- structured data for XML documents used in Web Services is described previously in connection with the servlet 114 in FIG. 1.
  • the servlet 114S sends the converted XML file to the HTTP server 112s which in turn sends the XML file as a SOAP message in XML to the requesting client 104A on the Web 101.
  • the response in the SOAP message is not different from a response in a regular Web Service response message. Therefore, the Web browser 102S acts like a Web Service server through the interface module 110S.
  • FIG. 7 further illustrates an exemplary sequence of operations for providing a Web Service using the system in FIG. 1.
  • the input from the user operating the browser 102S may be in a variety of forms.
  • the expert user may simply fill in one or more blank fields in a form on a Web page displayed by the Web browser 102S that is defined in the JSP pages 116S.
  • the servlet 114S converts the expert user's input in the filled form in the returned HTML message from the browser 102S into a proper XML document for a Web Service and directs the document to the HTTP server 112S.
  • the expert user may use the Web browser 102S to send a document as part of or the entirety of the user response to the Web Service request .
  • TST translation-solve-translation
  • a Web page in HTML at the Web browser and a XML document are two different computer representations of the tree structured data. More specifically, the web page in HTML is a user-friendly computer representation and provides a user interface to allow a person to interact with tree structured data by, e.g., entering an expert input for a particular request in a Web Service operation.
  • the XML document is a machine-friendly and versatile computer representation and allows computer software modules and computers to process the information contained within the tree structured data.
  • the Web Service clients and servers communicate with one another in XML but a XML document is cumbersome for a person to operate in part because the person must be trained in XML or sufficiently knowledgeable in XML in order to properly manipulate an XML document and in part because the format of the XML document by its design is not meant to interact with untrained humans.
  • the tree structured data in the XML document is mapped into a Web page in HTML to obtain the input from the expert person and the tree structured data with the expert input is then mapped back to the XML representation for use by the Web Service clients and servers .
  • Such TST mapping is applicable to any two different computer representations of tree structured data, e.g., between a machine-friendly representation such as XML and a user-friendly representation such as a Web page in HTML, between a first machine- friendly representation and a second, different machine-friendly representation, or between two different user friendly representations.
  • a user-friendly representation may be a graphic interface such as a Web page which may have still graphics or motion pictures or video clips, an audio user interface where audio instructions are provided to a user and the user responds by speaking voices, a graphic-audio user interface where both graphic and audio are used.
  • a tree structure may be represented as an object tree in Java (e.g., an object tree in Java Swing graphical user interface, , as a section of HTML, a section of the XML-based Wireless Markup Language (WML) used in wireless communications, a section of XML-based Scalable Vector Graphics (SVG) for describing two-dimensional graphics in XML, a graphical tree on a user interface device, etc.
  • Java e.g., an object tree in Java Swing graphical user interface, , as a section of HTML, a section of the XML-based Wireless Markup Language (WML) used in wireless communications, a section of XML-based Scalable Vector Graphics (SVG) for describing two-dimensional graphics in XML, a graphical tree on a user interface device, etc.
  • WML Wireless Markup Language
  • SVG Scalable Vector Graphics
  • the mapping or transformation between tree structures may also be described by using different representations and languages. For example, Java may be used to describe the mapping
  • the Extensible Stylesheet Language Transformations may be used to describe the mapping if the tree structures being mapped are described in some XML-based language. As illustrated in FIGS. 5A and 5B, the mapping may also be graphically represented by drawing lines between nodes in the graphical trees if the tree structures being mapped are represented as graphical trees on a user interface . [0086] A tree structure is different from an instance of a tree structure.
  • the following is a tree structure for a file "person”: Person Name First Name Last Name Address
  • the tree begins with a root "person” and has two nodes or branches "Name” and "Address.”
  • the "Name” further includes nodes or branches "First Name” and "Last Name.” Any value may be given to the nodes of this tree .
  • the tree structure is no longer an abstract structure and thus becomes an instance of the above tree: Person Name First Name (John) Last Name (Smith) Address (66 W. Palm Rd. Monrovia, CA 91016)
  • a mapping or transformation or translation uses tree structures to process instances of those tree structures.
  • FIG. 8A shows a set X of tree structures and a set Y of tree structures described in a computer language or representation LI.
  • a mapping M in a computer language or representation Tl is needed to map tree structures in X into those in Y in a desired way for a particular application.
  • One simple example for this mapping is mapping between a set X containing a tree structure "Person” and another set Y containing another tree structure "Employee”: X: Person Name First Name Last Name Address Y: Employee Name Address
  • the desired mapping is
  • FIG. 8B shows one implementation of the TST mapping for achieving the above desired mapping.
  • a different representation or language L2 may be used to describe tree structures in X and Y, and a different representation or language T2 may be used to describe mappings between tree structures .
  • L2 may be used to describe tree structures in X and Y
  • T2 may be used to describe mappings between tree structures .
  • the mapping M is translated from T2 into Tl .
  • FIGS . 5A and 5B are examples of such a graphical mapping.
  • the above mapping shown in FIG. 8B is used to find the mapping logic described in a specific way or in a specific language .
  • the TST mapping may also be used for mapping instances of tree structures regardless what the mapping logic is .
  • FIG. 9A illustrates this operation.
  • a set X has the following tree structure Person Name First Name Last Name Address Credit history and the set Y has a different tree structure as follows: Person Name First Name Last Name Address Loan Approved (Y/N) .
  • Person Name First Name Last Name Address Loan Approved (Y/N) .
  • Y/N Person Name First Name Last Name Address Loan Approved
  • For each instance of X such as Person Name First Name (John) Last Name (Smith) Address ⁇ 66 W. Palm Rd. Monrovia, CA 91016) Credit History (3 times of late payment, 50 credit cards, $20,000 balance), a corresponding decision on whether to approve a loan is to be made. This decision is an instance of Y.
  • the operation in FIG. 9A may be implemented in three operations shown in FIG. 9B.
  • a different representation or language L2 is chosen to describe instances of tree structures in X.
  • Each instance of X is then translated from LI to L2.
  • the desired instance for Y that corresponds to X is found.
  • the description of the desired instance for Y is translated from L2 into LI .
  • HTML is used for the representation L2.
  • an instance of X is translated from an XML document into a HTML page.
  • the HTML page is sent to a loan officer.
  • the above described techniques and their variations may be implemented as computer software instructions .
  • Such software instructions may be stored in an article with one or more machine-readable storage media or stored in one or more machine-readable storage devices connected to one or more computers. In operation, the instructions are executed by, e.g., one or more computer processors, to cause the machine to perform the described functions and operations .
  • the instructions are executed by, e.g., one or more computer processors, to cause the machine to perform the described functions and operations .
  • Only a few implementations are described. However, it is understood that variations and enhancements may be made.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Systems and techniques for using a web-service based business process to interact with a web browser (102A) as if the web browser were a web service server (104A) with or without a business process engine (120). Data fields in a HTML web page are mapped into tree-­structured data fields of a XML document so that a response from the web browser (102A) can be represented as an output of a web Service server (104B). In one exemplary implementation, an interface module with a HTTP server (112) is provided to convert data from the web browser (102A) into the business process engine (120) in an XML document from a web service server (104B) into a web page for the web browser (102A). Mechanisms for supporting the back button function in the web browser (102A) are described for interaction between the business process engine (120) and the Web browser (102A).

Description

WEB BROWSER AS WEB SERVICE SERVER
[0001] This application claims the priority benefits of the following U.S. patent applications: [0002] 1. U.S. Provisional Application No. 60/511,612 entitled "Web Browser as Web Service Server in Interaction with Business Process Engine" and filed on October 14, 2003;
[0003] 2. U.S. Patent Application No. entitled "Web
Browser as Web Service Server" and filed on October 7, 2004; [0004] 3. U.S. Patent Application No. entitled "Data
Conversion from HTML to XML in a Tree Structure" and filed on October 7, 2004;
[0005] 4. U.S. Patent Application No. entitled "Web
Browser as Web Service Server in Interaction with Business Process Engine" and filed on October 8, 2004;
[0006] 5. U.S. Patent Application No. entitled
"Mechanisms for Supporting Back Button Function of Web Browser as Web Service Server in Interaction with Business Process Engine" and filed on October 8, 2004; [0007] The disclosures of the above five applications are incorporated herein by reference as part of the specification of this application. Technical Field [0008] This application relates generally to computer systems and networks . Background [0009] Advances of computer-based information technologies have led to increasing cross communications and integrations amongst software applications, databases or data warehouses, computers, enterprise applications, and enterprise computer systems. Such communications and integrations may be implemented over various communication channels and links, including computer networks such as the Word Wide Web (the Web) or other communication mechanisms available on the Internet, and other computer communication networks.
[0010] Computer-based information technologies may be used for automation of various business processes. In general, various business operations of a business process may be defined by computer program instructions and some or all of such business operations may be automatically executed by one or more computers . The execution of certain business processes may require retrieval of data or information from other resources such as databases, and collaboration with one or more other computer business processes. Technologies and tools are needed for integrating and orchestrating a wide range of resources, trading partners and service providers to complete such a business transaction. [0011] Web Services have been developed to facilitate communications and integrations of different resources, applications and services using various Web technologies . Web Services can be used to define uniform interfaces based on, for example, the Extensible Markup Language (XML) which is a subset of the Standard Generalized Markup Language (SGML) promulgated by the International Standards Organization (ISO) . The XML provides a cross-platform approach to encoding of data and data format for both data and metadata and thus can significantly simplify the exchange of information among computer applications, computer systems, and enterprises. Web Services provide a framework for different applications to share business process logic and applications in addition to sharing of data. Web Services include a set of open standards that facilitate program-to-program interactions by specifying methods to describe, publish, discover and bind application interfaces. Web Services enable common means for discovery and invocation of services .
[0012] A Web Service may use an XML-based language, e.g., the Web Services Description Language (WSDL) , to define an interface for a Web application to be available on the Web. The WSDL provides provisions that describe the location of the Web Service and the operations or methods provided by the Web Service in the XML format. A Web Service further uses a transport protocol, e.g., the Simple Object Access Protocol (SOAP) , to define Web Service messages (SOAP messages) in an XML-based message format for communicating and interoperating with other Web Services.
[0013] XML-based Web Services may be implemented in different programming languages and can run on different computer operating systems . This is because an XML document uses plain ASCII text that can be understood and processed by different computer operating systems in different programming languages. In addition, a client accessing a Web Service is generally not required to have priori knowledge about the server for the Web Service. Thus, software may communicate and interact with other software via Web Services . This feature of Web Services allows for a Web Service user to access and integrate business processes, data, and functionalities provided by others via Web Services without re- creating the processes, data and functionalities. In this regard, Web Services can lead to potential new business opportunities that utilize various Web resources. Conventional Web Services may be registered, published, and discovered through, for example, a Universal Description and Discovery Integration (UDDI) Registry. The UDDI allows a user to learn about the functions of each registered Web Service and remotely invoke a desired Web service. [0014] In particular, Web Services provide an integration platform for implementing and integrating business processes in a distributed computing environment, e.g., executing various operations or processing tasks of a single business process in different software applications on different computers. Web Services can be used to achieve universal interoperability between applications by using Web standards and to allow flexible integration of heterogeneous systems in a variety of domains including business-to-consumer, business-to-business and enterprise application integration. As an example, a business process can be carried out within an enterprise or across multiple enterprises using the Web Service Platform. [0015] Various XML-based business execution languages have been developed or are emerging to provide a uniform and standard mechanism for defining, executing, and sharing business processes via Web Services . The Business Process Execution Language for Web Services (BPEL4WS or BPEL) is an example of such a language. More specifically, BPEL provides the formal specification of business processes and business interaction protocols and leverages existing Web Services defined in WSDL. Summary [0016] The systems and techniques described in this application provide, among others, mechanisms for operating a Web browser as a Web Service Server with and without a business process engine. [0017] In one implementation without a business process engine, a method for operating a Web browser as a Web Service server, is described. Pre-defined Web pages are dispatched to a Web browser used by a user for obtaining information from the user to respond to a Web Service request . The Web pages returned from the Web browser are received after obtaining the information from the user. The information obtained from the user is converted into a Web Service response file. The Web Service response file is then used to reply to the Web Service request . [0018] In another implementation without a business process engine, A Web Service server may include at least one computer which is configured to include a communication server in communication with a computer network, a servlet, and Web page templates that are predefined to obtain information from an expert user for providing a Web Service . The servlet is operable to dispatch the Web page templates to a Web browser in the computer network used by the expert user via the communication server in response to a Web Service request and to convert a message generated by the communication server in response to a received input from the Web browser made by the expert user into an Extensible Markup Language (XML) document. The servlet is also operable to send the XML document to the computer network via the communication server as a response to the Web Service request . [0019] An article is also described to include one or more machine-readable storage media that store machine-executable instructions. The stored instructions are operable to cause a machine to dispatch pre-defined Web pages to a Web browser used by a user for obtaining information from the user to respond to a Web Service request, process returned Web pages from the Web browser to convert a response by the user into a Web Service response file, and use the Web Service response file to reply to the Web Service request . [0020] In one exemplary implementation with a business processing engine, one or more machine-readable storage media may be used to store machine-executable instructions. Such instructions are operable to cause the system to execute processes of a business workflow by directly invoking a Web service through a Web service call to the Web service . During execution of a process of the business workflow, the instructions cause the system to invoke a Web browser as a Web Service server by converting information exchanged between the business workflow and the Web browser to allow for the business workflow to use a Web service call to invoke the Web browser. The Web page flow at the Web browser is controlled according to processing activities of the business workflow. [0021] In another exemplary system implementation with a business process engine, a system is described to include a business process engine and a Web server module. The business process engine has executable business processes and is operable to directly interact with a Web service server in executing the business processes. The executable business processes include a first set of processes that control a sequence of Web pages at a remote browser connected to interact with the business process engine. The Web server module is in communication with the remote browser and presents the remote browser to the business process engine as another Web service server. The Web server module converts data to the business process engine from the remote browser into a Web service format from a Web service server. In addition, the Web server module converts Web service data from the first set of processes in the business process engine to the remote browser into a format that can be transmitted to and can be processed by the remote browser. [0022] In yet another exemplary system implementation with a business process engine, a system is provided that has (1) a server in communication with a computer network to receive input from a Web browser in the network and to send output to the Web browser, (2) a servlet to receive a request that is generated by the server in response to a received input from the Web browser and convert the request into a document, (3) a business process engine, and (4) page templates that are predefined according to activities of the business process engine. The server has executable business processes and is operable to interact with a Web service in executing the business processes. The business process engine is operable to respond to information from the browser in the document converted by the servlet and to produce a Web service communication to the browser as if the browser were a Web service server. The business process engine sends the Web service communication to the servlet . The predefined page templates operate to convert a Web service communication from the business process engine into a Web page to the Web browser. The servlet receives and directs each Web service communication from the business process engine to a selected page template and the server directs each Web page converted by the page templates to the Web browser via the computer network. [0023] This application also describes at least one exemplary method for converting information to and from a Web browser to make the Web browser appear as a Web service server. A hypertext transfer protocol (HTTP) request from the Web browser is converted into an Extensible Markup Language (XML) document as a Web Service message. The converted XML document is directed to a software module for Web Services which processes the converted XML document as a message from a Web Service Server and produces an XML reply for the Web Service Server. The XML reply is converted into a Web page and the HTTP is used to transmit the Web page to the Web browser.
[0024] Another exemplary method described here provides steps for using a computer business process engine to interact with a Web browser as a Web service server. Processing operations of the business process engine are described in a computer programming language to allow for directly invoking a Web service in a Web service server and to exchange information in documents . A set of predefined Web page templates that correspond to activities of the business process engine is provided to interact with a Web browser and to control a page flow at the Web browser. Each Web page template is operable to convert information from the business process engine in the documents to the Web browser into a Web page to be displayed by the Web browser. A protocol is used to transmit the Web page to the Web browser. A Web service of the business process engine is used to invoke the Web browser as a Web service server and the data from the Web browser is converted into a document from a Web service server. The converted document is directed to the business process engine to be processed as a Web service reply.
[0025] A Web page is usually defined and described in the Hypertext Markup Language (HTML) and thus a data file for a Web page is different from a data file in XML. Therefore, according one aspect of this application, HTML naming conventions are applied to map data in a HTML Web page from a Web browser into tree- structured data fields of a XML document for a Web Service. This XML document is then used to reply to a Web Service request which initiates the HTML Web page from the Web browser to represent the Web browser as a Web service server. In addition, a graphic user interface may be provided to graphically represent the mapping between data fields in the HTML Web page and data fields in the tree-structured data fields of the XML document. Furthermore, two separate graphic panes may be provided in the graphic user interface to represent data fields of the HTML Web page and the tree-structured data fields of the XML document, respectively, and graphic icons may be provided for linking the two separate graphic panes . [0026] This conversion or mapping between data fields in the HTML Web page and data fields in the tree-structured data fields of the XML document facilitates the use of a Web browser as a Web Service Server with and without a business process engine. [0027] The mapping of tree structured data between different computer representations may be implemented. For example, a method for such mapping may include representing an instance of a first tree data structure in a first computer language, translating the instance of the first tree data structure into a corresponding instance of the first tree data structure in a second, different computer language, and for given the instance of the first tree data structure in the second language, finding an instance of a second tree data structure in the second computer language. This method further includes translating the found instance of the second tree data structure from the second computer language into the first computer language. In another implementation, a method may include translating a first tree data structure in a first computer language into a corresponding first tree data structure in a second, different computer language, translating a second tree data structure in a first computer language into a corresponding second tree data structure in a second, different computer language, determining a mapping from the first tree data structure in the second computer language to the second tree data structure in the second computer language, and translating the mapping from the second computer language into the first computer language. [0028] This application further describes mechanisms for operating a business process engine to interact with a Web browser where the Web browser operates as a Web Service Server and mechanisms for supporting back button function in the Web browser to undo user actions through the Web browser.
[0029] For example, a method is disclosed here for using a computer business process engine to interact with a Web browser as a Web Service server. Processing operations of a business process are described in a computer programming language to allow for directly invoking a Web service in a Web Service server. A set of predefined Web page templates that correspond to selected activities within the business process are provided to interact with a user via a Web browser and to control a page flow at the Web browser to obtain information from the user for use in the business process . A record of user actions on the Web browser is kept and one or more selected Web page templates are used to resend corresponding one or more selected Web pages to the Web browser when the user clicks the back button in the Web browser. The processing operations in the business process that are affected by the user's use of the back button on the browser are restarted again after the use of the back button. [0030] These and other examples of systems and methods are described in greater detail in the drawings, the detailed description, and the claims. Brief Description of the Drawings [0031] FIG. 1 shows an exemplary implementation of a system that operates a Web browser as a Web Service through a control of a business process engine. [0032] FIG. 2 shows one implementation for operating steps of the web module in FIG. 1.
[0033] FIG. 3 shows a simple example of a sequence of processing steps of a business process that can be implemented in the system of FIG. 1. [0034] FIGS. 4A and 4B show two exemplary methods for executing a business process in the system of FIG. 1 when a back button on the Web browser is used by the user.
[0035] FIGS. 5A and 5B illustrate an exemplary graphic user interface (GUI) for designing a business process for the system of FIG. 1.
[0036] FIG. 6 shows an exemplary implementation of a system that operates a Web browser as a Web Service without a business process engine . [0037] FIG. 7 shows one implementation for operating steps of the web module in FIG. 6. [0038] FIGS. 8A and 8B illustrate mapping of tree structures based on translation between two different computer languages. [0039] FIGS. 9A and 9B illustrate mapping of instances of tree structures based on translation between two different computer languages.
Detailed Description [0040] FIG. 1 illustrates an implementation of a system 50 having a Web interface or conversion module 110 (hereinafter, Web module 110) that enables a business process engine 120 to interact with a Web browser (e.g., 102A or 102B) in a communication network 101 (e.g., the Web on the Internet or other computer networks) as if the Web browser (e.g., 102A or 102B) were a Web Service Server. As described below, the business process engine 120 is programmed to directly interact with a Web Service provided by a Web Service server (104A or 104B) connected to the network 101 without an intermediary. The business process engine 120 may contact a Web Service registry such as a UDDI registry to find a suitable Web Service before directly interacting with the suitable Web Service. [0041] In various Web Service applications, a Web browser 102A or 102B is generally a client on the Web and is used by a user to invoke one or more Web applications provided by Web servers connected in the network 101. A Web Service on a Web Service server generally operates as a server on the Web to make a particular functionality available to others and can be invoked by others to deliver its functionality or functionalities. Therefore, in such applications, a Web browser usually does not behave like a Web Service and thus cannot be invoked by others in the network 101. [0042] The system 50 in FIG. 1, however, uses the specially- designed Web module 110 as an intermediary to convert information exchanged between the Web browser 102A or 102B and the business process engine 120 so that the business process engine 120 can interact with a Web browser like any other Web Services in the network 101. The Web module 110 may be designed to allow the business process engine 120 to control the page flow at the Web browser 102A or 102B in accordance with the business processing steps within the business process engine 120. As illustrated, a Web server 100 may be provided to implement the business process engine 120 and the Web module 110. The Web server 100 may be implemented in one or multiple computers. As an example, the business processing engine 120 and the Web module 110 may be software applications stored in one or more computer storage -ιo~ devices or media and are executable by the one or multiple computers to perform the operations defined in the business process engine 120.
[0043] Exemplary implementations of various modules or components in the system 50 in FIG. 1 are now described.
[0044] The business process engine 120 may be a computer software application that describes and defines a business process, a business transaction, or a business workflow that has a sequence of processing steps or subprocesses . One or more processing steps of the business process in the business process engine 120 use information from the Web browser (e.g., Web browser 102A or 102B) to complete one or more processing tasks within the business process. In the examples described in this application, the business process engine 120 is written in a suitable XML-based business execution language that defines, executes, and shares business processing logics and functionalities via Web Services. To an extent, such a suitable XML-based business execution language can be used to define relationships between different Web Services and to compose a new application that links, integrates, or correlates with other Web Services. The use of the XML technology in a business execution language allows for universal interoperability without restrictions by any particularities of various systems such as the programming languages, the computer operating systems, and the communication protocols. [0045] Examples of a suitable XML-based business process execution language for the business process engine 120 in FIG. 1 include but are not limited to: (1) Business Process Execution Language for Web Services (BPEL4WS. or BPEL) published at http://www- 106.ibm.com/developerworks/library/ws-bpel/, (2) Web Services Conversation Language (WSCL) published at http://www.w3. org/TR/wscllθ/ , (3) Web Service Choreography Interface (WSCI) published at http://www.w3.org/TR/wsci/, (4) Business Process Modeling Language (BPML) published at http://www.bpmi .org/bpml .esp, (5) Business Process Specification Schema (BPSS) defined by the electronic business Extensible Markup Language (ebXML) at http : //www. ebxml . org/specs/ebBPSS .pdf , (6) IBM's Web Services Flow Language (WSFL) published at http://www-3. ibm.com/software/solutions/Webservices/pdf/WSFL.pdf, and (7) Microsoft's XLANG published at http: //www.gotdotnet . com/team/xml_wsspecs/xlang-c/default .htm. The exemplary implementations in this application are described with a specific reference to BPEL as the XML-based business process execution language. The use of BPEL here, however, is only an example to illustrate various features and techniques described in this application and should not be construed in any way to limit the scope of the systems and methods described in this application. [0046] The sequence of processing steps or subprocesses in the business process engine 120 may be designed to correspond to operations for a business process. Examples of a business process include on-line stock quote services, on-line purchase services such as those provided by Aamzon.com, or a complex supply chain transaction. In the case of an on-line seller, typical processing steps may include receiving the customer order for a product, checking the inventory for the availability of the ordered product, processing the customer credit card payment for the ordered produce, requesting the shipment department to prepare the shipment of the product, and finally shipping the product to the customer.
[0047] Some of the processing steps may involve business processes or transactions that are external to the seller. For example, the seller may obtain products from one or multiple suppliers and hence may need to contact an appropriate supplier for the current pricing and availability of the particular product; many on-line sellers often use third-party credit checking services to process the credit card payments; and the shipping may also be contracted to a third party shipping company such as UPS or FedEx. Web Services and BPEL or other business process execution languages may be used to integrate third party services to the seller' s business process engine 120 in the system 50 shown in FIG. 1. For example, the seller's business process engine 120 may be programmed to directly call the supplier's Web Service (e.g., 104A) without an intermediary to obtain the information on the product and to confirm the order of the on-line buyer after receiving the supplier's confirmation on the product. The engine 120 may be programmed to search for a supplier's Web Service at a Web Service registry first before the direct calling through the Web. [0048] The business process engine 120 may also be programmed to integrate one or more backend applications 106 and one or more databases 108 in executing certain processing steps in addition to Web Services. For the on-line seller in the above example, the business process engine 120 may retrieve customer data from a customer database 108 upon receiving the customer order and take certain predetermined actions based on the received data for that particular customer. The customer database 108 may store data on customer's mailing address, past purchase records, etc. If the customer is a new customer, the business process engine 120 may act to create a new entry in the database 108 for that customer. The on-line seller may have an backend application 106 separate from the business process engine 120 to provide certain customer service functions to the business process engine 120. As an example, the seller's backend application 106 may provide billing functions to process and generate a customer bill for the customer and the business process engine 120 can deliver the generated customer bill to the customer. [0049] Notably, the Web module 110 in the system 50 in FIG. 1 is designed to utilize the capability of directly invoking and interacting with a Web Service in the business process engine 120 to invoke and interact with Web browsers (e.g., Web browsers 102A or 102B) in the network 101. For certain applications, the business process engine 120 may call a Web browser 102A as a Web Service and interact with the Web browser 102A to obtain information from the Web browser 102A in executing one or more processing steps of the business process. In this context, the Web browser 102A is invoked by the Web server 100 though the Web module 110. Accordingly, the Web server 100 with the business process engine 120 operates as a client to request a service or functionality from the Web browser 102A while the Web browser 102A operates as a server, a Web Service Server in particular, to respond to the request by providing the requested service or functionality. Different from standard Web Services provided by the Web Service servers 104A and 104B, the Web browser 102A is a "quasi" Web Service and operates as a Web Service to the Web server 100 only through the Web module 110. Web module 110 acts as the intermediary because, conventionally, a Web Service and a Web browser use different communication protocols in their communication messages. The Web module 110 in FIG. 1 is in part designed as a "middleware" or an adapter between a Web browser and the business process engine 120 to present the Web browser as a Web Service to the business process engine 120 and to present the business process engine 120 as a typical Web application on a Web server to the Web browser. [0050] The Web module 110 of the system 50 in FIG. 1 may be designed to expand the capabilities of the business process engine 120 from integration of Web Services, backend applications, databases, and other functionalities or resources outside the business process engine 120 to further include the integration of one or more Web browsers into the business process. The system 50 in FIG. 1, for example, may allow for a user to provide information via a Web browser to the business process engine 120 in execution of certain processing steps. For example, a user that is an expert in certain business or technology areas involved in the processing steps of the business process can be queried for a professional assessment or evaluation of a particular situation arising out of a processing step in order for the business process engine 120 to continue or complete the business process. Hence, through the Web module 110, a request from the business process engine 120 is sent to the Web browser (e.g., 102A) and is displayed on the Web browser 102A. The expert user at the Web browser 102A enters an input to the Web browser 102A and the input is sent back to the business process engine 120 through the Web module 110. [0051] The input from the user may be in a variety of forms. In one example, the user may simply fill in one or more blank fields in a form on a Web page displayed by the Web browser 102A that is defined and controlled by the business process engine 120. The Web module 110 converts the user input in the filled form into a proper XML document for a Web Service and directs the document to the business process engine 120 for further processing. In another example, the user may use the Web browser 102A to send a document as part of or the entirety of the user input to the business process engine 120.
[0052] FIG. 1 further illustrates a detailed exemplary implementation of the Web module 110 when the network 101 is the Web on the Internet. In this specific example, the module 110 includes a HTTP server 112 for directly communicating with one or more Web browsers (e.g., 102A and 102B) on the Web 101, a Java servlet 114 programmed as a front agent for the business process engine 120 to process all exchanges between a Web browser and the business engine 120, and a set of predefined template pages 116 that are defined in the JavaServer Page (JSP) to build HMTL Web pages according to activities defined in the business process engine 120. [0053] A Web application may be made available on the Web 101 either through a conventional Web server to allow a user to use a Web browser to invoke the Web application by a hyperlink and using the Web application by navigating through Web pages defined in the Web server. The Web pages can be described in the Hypertext Markup Language (HTML) and communicated via HTTP. Alternatively, the same Web application may be offered as a Web Service on the Web by using input and output messages in the XML documents defined in WSDL. The XML documents in WSDL are used to find, invoke, and bind the Web Service. [0054] However, the HTML documents and XML documents in Web Services are different. The business process engine 120 in BPEL in general cannot directly invoke and integrate a Web browser as part of its processing steps. Conversely, a Web browser cannot directly communicate with the business process engine 120 in BPEL. The Web module 110 in FIG. 1 uses the servlet 114 to remove this communication barrier through a conversion between the HTML documents and XML documents. This conversion allows for communication between the Web browser and the business process engine 120. [0055] In this regard, the servlet 114 is configured or programmed, as part of its functions, to provide the conversion from HTML documents generated by the Web browser into properly formatted XML documents for Web Services to be processed by the business process engine 120. In addition, the servlet 114 can be programmed as an intelligent agent to direct an XML document for Web Services from the business process engine 120 and to select a proper template page (e.g., JSP) among the predefined template pages 116 (e.g., JSP) for converting the document (e.g., the XML document into a HTML Web page) .
[0056] In one implementation, the conversion from XML documents into HTML Web pages may be carried out by the predefined JSP pages 116. The servlet 114 and the JSP pages 116 may be programmed to dynamically build HTML Web pages "on the fly" from the XML documents generated by the business processing engine 120. Each JSP template page is programmed to parse data fields in each XML document and to compose a properly formatted HTML Web page from the parsed data fields. In this context, each JSP template page controls the content or appearance of a Web page. The HTTP server 112 then packages each HTML page from the JSP template pages 116 in a HTTP container to transmit the Web page to the Web browser (e.g., Web browser 102A) via the communication network 101 (e.g., the Web) . [0057] The JSP template pages 116 are predefined by activities in the processing steps programmed in the business process engine 120. The activities in the processing steps programmed in the business process engine 116 determine and control the sequence of the page flow and the content for each of the Web pages output by the JSP template pages 116, and the Web pages completed by and returned from the user of the Web browser. The business process engine 120 ultimately controls the page flow and page content at the Web browser. To invoke a Web browser as a Web Service, the business process engine 120 is programmed to call a JSP template page via the servlet 114. The called JSP template page produces a corresponding HTML Web page to the Web browser to obtain an user's input . [0058] FIG. 2 shows an exemplary sequence of operations of the above specific implementation of the Web module 110 in FIG. 1. Referring now to both FIGS . 1 and 2 , a user input from the Web browser 102A is packaged according to a hypertext transfer protocol (HTTP) and is sent via the communication network 101 (e.g., the Web) to be received by the HTTP server 112. The HTTP server produces a HTTP request to the servlet 114 where the HTTP request contains the received user input entered into the Web browser by the user. The servlet 114 converts the data of the user input from the HTML Web page into a XML document containing the user input and sends the converted XML document in a connection map reply message (CMReply message) to the business process engine 120. The business process engine 120 processes the user input in the CMReply message and produces a response to the Web browser 102A by using a connection map request message (CMRequest message) to send the response in the XML document to the servlet 114. The servlet 114 processes the XML document to determine which Web page in the predefined page flow the XML document relates to and directs the XML document to the proper JSP template page in the JSP pages 116. The proper JSP template page operates on the XML document to compose a corresponding HTML Web page and sends it to the HTTP server 112. Finally, the HTTP server 112 transmits the HTML Web page to the Web browser 102A via the communication network 101. [0059] The Web module 110 supports a mechanism for converting information to and from a Web browser to make the Web browser appear as a Web service server to the business process engine 120. In one implementation, a hypertext transfer protocol (HTTP) request from the Web browser is converted into an Extensible Markup Language (XML) document as a Web Service message. The converted XML document is directed to a software module for Web Services which processes the converted XML document as a message from a Web Service Server and produces a XML reply for the Web Service Server. The XML reply is then converted into a Web page . The HTTP is used to transmit the Web page to the Web browser. [0060] In one implementation, the business process engine 120 may invoke a Web browser to request a user input for the first time by asking the user to activate a specific Web page through a hyperlink. The user may be informed of the specific Web page in various ways. For example, a telephone call to the user may be made either automatically or through an operator to give the hyperlink to the user. As another example, an electronic mail including the hyperlink may be sent to the user. This email function may be designed as part of the servlet 114 or as part of the business process engine 120. In some implementations, the request for the Web Service from the Web 101 to the Web Server 100 is received from the HTTP server 112. Upon receiving this request, the servlet 114 or the business processing engine generates and sends the email with the proper hyperlink to the expert person whose input is needed for responding to the request. The hyperlinked specific Web page is defined by one of the JSP page templates 116 as the first Web page for the user to interact with the business process engine 120. The user clicks on the hyperlink in the email or directly opens the hyperlink in the Web browser to begin the sequence of the page flow that is predefined by the logic of the business engine. [0061] XML documents defined by the WSDL arrange tags and data in a tree-like structure in order to interact with Web Service servers. For example, a simple XML document for a Web Service on a name of "Miles Davis" may be as follows: xml document: <root> <first-name>Miles</first-name><last-name>Davis</last-name> </root>
The tree structure for this document has two branches from a single root as follows: root first-name last-name
In contrast, the output data from a conventional HTML Web page entered at Web browser is a list of name-value pairs. Each pair of a name and the respective value correspond to one HTML input element. The name is the HTML element's name and the value reflects the user's input. For example, data in a HTML Web page may have the following flat list: <input name="root/first-name" type="text" value="Miles> </inpu >
Notably, the above flat list does not contain a tree structure of the XML files suitable for processing in a Web Service environment. As a result, the output from a HTML Web page cannot be properly processed by a Web Service to extract the data. In order to deduce the desired tree structure out of a flat list in a HTML Web page, naming conventions may be applied to each HTML element's name and value. For example, the following name-value pair ("root/first- name", "Miles") can be converted into the following tree structure under the naming conventions :
<root> <first-name>Miles</first-name> </root>
As another example, the pairs ("a/b", "a/b[l]=x") and ("a/b", "a/b[2]=y") can be converted to the following: <a> <b>x</b> <b>y</b> </a>
The servlet 114 is specifically programmed to parse or decode the output flat list from a conventional HTML Web page and to arrange or map the data in the flat list of the HTML Web page into the XML tree structure in a converted XML document for Web Services by following these naming conventions. The JSP page templates 116, on the other hand, encode the data in the XML tree structure into data in a form of the flat list for a HTML document in order to be processed by a receiving Web browser. [0062] As an example, consider a simple application where a Web browser is asked to enter the user's name and another person's name ("his name") and returns a Web page to the user displaying "Hello" to both entered names . Three JSP page templates are created for this process as further explained in FIGS. 5A and 5B. Each XML document to or from the business process engine 120 implementing this application as a business process has the following tree structure: output_show_ essage Output formO value (yourName, hisName, submitO)
Each JSP page template is programmed to use a naming convention for each HTML element in the input and output of the Web page used by the Web browser. For example, "his name" Web page may be described by the following HTML document :
<html> <head> </head> <form action="SFE" enctype="multipart/form-data" method="post" > Your Name <input name="output_show_Message/Output/formO/yourName" type="text" value="David" /> What's his name? <input name="output_show_Message/θutput/formθ/hisName" type="text" value="John" /> <input name="output_show_ essage/Output/form0/submit0" type="submit" value="Say Hi" /> </form> </body> </html>
In this example, the JSP page template encodes the name of "hisName" HTML input element in the following format: name="output_show_Message/θutput/formθ/hisName" .
Here, the name of the path "output_show_Message/Output/form0/" uses names of the root and branches in the XML tree in a sequence to reflect the XML tree structure. When the user submits a filled Web page through a Web browser back to the business process engine 120, the Web page outputs the name-value pair to the HTTP server 112. For example, the output may be as follows: name="output_show_Message/θutput/formθ/hisName" value="John"
Upon receiving this output from the Web browser, the servlet 114 parses the name part of the pair and translates it into the XML tree structure. The servlet 114 uses the "output_show_Message" as the root to begin building the tree and adding branches "Output" and "formO" as it parses through the name based on the naming convention used by the JSP page templates. At the very end of the name is the field "hisName." The servlet 114 creates a data field "hisName" to accept the value of "John" output by the Web browser. This tree structure in the XML document for the output from the Web browser is graphically shown in the lower left field in the GUI in FIG. 5B. [0063] The relevant section of a JSP page template for the "Say Hi" HTML page is shown the following: Hello <% String tempi = inputs .getValue ("Input/formO/yourName/text" , " [default text] ") ; if (tempi != "") { %><%= templ%> <% } %> and <% tempi = inputs .getValue ("Input/formO/hisName/text" , " [default text] ") ; if (tempi != "") { %><%= templ%> <% } %>
In this example, the JSP page template uses the above naming convention and defines the input of the "Say Hi" Web page in the following form: tempi = inputs .getValue ("Input /formO /hisName /text") [0064] name="output_show_Message/Output/formθ/hisName" type="text" value="John"
[0065] The servlet 114 operates to convert the output of the "His Name" HTML page into the following tree-structure XML document to the business process engine 120 as if the Web browser were a Web Service:
<output_sho _ essage> <Output> <form0> <yourName> David </yourName> <hisName> John </hisName> <submit0> Say Hi </submit0> </form0> </Outpu > </output_show_Message>
[0066] FIG. 2 further illustrates that the business process engine 120 may call a Web Service, a backend application, a database, or another Web browser (e.g., Web browser 102B) when the user input from the Web browser 102A is being processed and before the response to the Web browser 102A is generated by the business process engine 120. [0067] FIG. 3 shows an exemplary flow of steps in a simple business process where the same set of activities is required for processing each single page of the Web application. The request for service support in FIG. 3 represents a call to a Web Service, a backend application, a database, or another Web browser. At step 310, the business processing engine 120 in the system 50 of FIG. 1 initiates a call for Web Services to a Web browser (e.g., 102A in FIG. 1) to start the interaction between the Web browser 102A and certain processing steps within the business process engine 120. This interaction is predefined by a set of JSP pages 116 shown in FIG. 1. Upon completing the initial call to the Web browser 102A, the business process engine 120 sends out a Web page via the JSP pages 116 in FIG. 1 at step 320 to request for certain user's input 322. At this time, the business process engine 120 waits for the user's input 322 before continuing a processing step that requires the user's input 322. After the user at the Web browser 102A enters the user input 322 in the Web page and sends the page back via the HTTP server 112 and the servlet 114, the business process engine 120 proceeds to the next processing step by using the input 322 at step 330. This step may be invisible to the Web browser 102A. During this time, the business process engine 120 may request for service support by calling another external resource such as a Web Service, a backend application, a database, or input from another user at another Web browser by using a set of JSP pages that are specifically predefined for that particular service support and are generally different from the JSP pages 116 for the Web browser 102A. At step 340, the business process engine completes the needed processing steps and sends a new Web page 342 to the Web browser 102A via another one of the JSP pages 116. At step 350, the business process engine decides whether the above interaction with the Web browser 102A is to continue and if not, it terminates the interaction at step 360. [0068] In the above implementations of operating a Web browser as a Web Service server to a business process engine, various functions usually associated with Web browsers may be maintained. For example, Web browsers generally support "back" and "forward" buttons. The forward button allows a user to jump forward from the current Web page to a subsequent Web page that the user has visited. The back button allows the user to jump back to a previous page the user has visited prior to the current Web page . When a Web browser operates as a Web Service to a business process engine as described above, the operation of the "back" button in the Web browser represents a request from the user to undo one or more user inputs and one or more corresponding activities in the business process within the business process engine. The following sections describe mechanisms to support the back and forward buttons in executing a business process as examples . [0069] FIGS. 4A and 4B illustrate two different back button operations by the user of the Web browser 102A in a simple multiple-step business process in the business process engine 120 in FIG. 1. In FIG. 4A, the user clicks the back button at step 2 after the user enters a user input as requested by the business process engine .120 at step 1. At this time, the business process engine has yet to perform the processing in step 3 which causes a change at a support service called by step 3. The support service in step 3 may be a resource external to the business process engine such as a database, a backend application, a Web service, etc. Hence, no changes have been made outside the business process engine 120 by the processing from step 1 to step 2. In this situation, the business process engine may be programmed to resend the pages to the Web browser in response to the back button action as long as it keeps the states of the prior user Web pages . [0070] In FIG. 4B, however, the user action of pressing the back button on the Web browser corresponds in the process model to an asynchronous event received while the process is waiting for input at step 5. As a result of receiving this event, the process stops waiting on step 5 and jumps back to step 1. Depending on the particular Web application, it might be fine that previously executed operations, like the one in step 3, still remain valid. In that case, the business process would simply resume its activities from step 1 like the situation in FIG. 4A. In other Web applications, it may be necessary to invalidate previously executed operations. In that case, even before the business process goes back to execute a previous step, a fault may be generated to trigger a compensation action on previously executed operations (step 3 in this example) .
[0071] In both situations, the business process engine 120 in FIG. 1 may be configured or programmed to include a state keeping mechanism to keep state data on each action of the Web browser. This allows the business process engine 120 to know the past actions by the user and the states of the previous Web pages caused by the user actions . This state keeping mechanism may be implemented as a memory file to store the state data. [0072] Based on the above state keeping mechanism, the business process engine 120 may be programmed to have a continuation mechanism which restarts the processing steps affected by the back button at the Web browser as if the prior actions never take place. Hence, in the example shown in FIG. 2, the business process engine 120 makes a new call to the JSP template page associated with the Web page to which the back button is directed and continues from that step. The cancelled Web pages and the user actions have been saved by the state keeping mechanism. The continuation mechanism may be used to support back button actions for multiple Web pages as long as there is no need to undo changes made to a resource outside the business process engine 120. [0073] If, as shown in FIG. 4B, the result of the step 3 needs to be modified in order to support the back button action for going back from step 5 to step 1, the above continuation mechanism may no longer be sufficient to support the back button action. Under this situation, the business process engine 120 may need to activate or invoke a separate compensation mechanism to undo and compensate the changes in outside resources. Various business execution languages including BPEL support such a compensation mechanism. Therefore, the business process engine 120 may be programmed to include the compensation mechanism.
[0074] In implementing the system in FIG. 1, graphic user interfaces (GUIs) may be used to facilitate development of various components such as the components in the Web module 110 in FIG. 1. A developer's tool kit based on a graphic user interface (GUI) is now described. This GUI allows a developer to conveniently develop a system based on FIG. 1 for a specific application. The GUI provides graphic icons to represent different logic links, logic operations, and business processes for programming business processes or workflows . A developer can use this GUI tool kit to graphically design a business flow on the GUI with the graphic icons to represent the underlying business processing steps for the business processing engine 120. The GUI may also provide graphic icons for the developer to design a set of JSP template pages based on the activities of the business process engine 120. After the JSP pages are designed, the GUI represents the JSP pages as icons. The developer can proceed to design the business processing engine 120 on the GUI by dragging the JSP page icons and other predefined graphic icons to a design canvas on the GUI to compose the workflow for the business process engine 120. After completing the design, the developer can execute a compiling process on the GUI to check and generate the underlying codes for the business process according to a selected business execution language such as BPEL, WSCI, etc. The business process engine is ready to operate after the compiling process is completed. [0075] FIGS. 5A and 5B illustrate one example of such a GUI for a simple process where a Web browser is asked for the user's name and another person's name ("his name") and returns a Web page to the user displaying "Hello" to both entered names. This process has a sequence of three Web pages. The business process engine 120 in the system 50 of FIG. 1 can be programmed to control these three web pages in this example. The first page is a form "Yourname . show" for entering the user's name; the second page is a form "Hisname. show" for entering the other person's name; and the third page is a form "SayHi.show" for displaying "Hello" to two entered names in the first and second pages . A Home Link process ("Home. link") is generated for the business process engine 120 to call the Web browser. The business process engine 120 is then built by dragging the icons for the "Home. link", "Yourname. show, " "Hisname. show, " and "SayHi.show" into the GUI composing canvas and linking the icons according to the desired sequence flow. The lower part of the GUI graphically shows data flow between the Web pages . [0076] FIG. 5A shows the XML tree structure for the output of the page "YourName . show" converted by the servlet 114 from an output of the Web browser and the input to the next page "HisName. show" in form of a XML document produced by the business process engine in the lower part of the GUI . The data mapping between the two Web pages is also illustrated. FIG. 5B shows the XML tree structure for the output of the page "HisName . show" and the input to the next page "SayHi.show" and their mapping relations.
[0077] The above GUI may be implemented as a GUI called "business process manager" to allow a developer to define, test and run a business process engine. [0078] Most Web Service servers have been specially designed for Web Services . Web Services software is implemented in such servers to provide desired functions and servers in form of Web Services . Web browsers are generally used to access Web pages to send or receive information. The above techniques and systems can be used to operate a web browser as a Web Service server through a business engine . A user can use such a web browser through an interface or conversion module to respond to a Web Service request and to provide the requested service or functionality in a Web Service environment. Different from conventional or standard Web Services, such a Web browser is a "quasi" Web Service server in part because the interface and conversion module is used to make the Web Service possible through a Web browser.
[0079] Alternatively, a Web browser may be operated as a Web Service server in absence of a business process engine. FIGS. 6 and 7 illustrate one exemplary implementation of such a system. [0080] FIG. 6 illustrates an exemplary system with an interface module 110S that allows a Web browser 102S to operate as a Web Service Server. The combination of the browser 102S and the interface module 110S functions as a Web Browser Web Service server 103. The interface module 110S is designed to describe and publish the function or service of the browser 102S as a regular Web Service on the Web 101 and enable discovery and invocation of the browser 102S as a Web Service server. As an example, the interface module 110S may allow for a user who is an expert in certain business or technology areas to provide a professional assessment, evaluation of a particular situation, or other information requested in a Web Service request to the interface module 110S. Through the interface module 110S, the request is sent to the Web browser 102S and is displayed on the Web browser 102S. The expert user at the Web browser 102S enters an input to the Web browser 102S and the input is sent back to, e.g., a Web Service server 104A or a computer on the Web 101 that makes the initial Web Service request to the interface module 110S.
[0081] The interface module 110S includes a servlet 114S, a HTTP server 112S, and predefined JSP pages 116S. The HTTP server 112S provides the communication interface between the Web Browser WS server 103 with the Web 101 and part of the communications between the browser 102S and the interface module 116S. A request for the Web Service from the Web 101, e.g., the WS client 104A, is sent to and processed by the interface module 110S. This request may be a SOAP request in an XML format. The HTTP server 112S may be used to receive the requests for the Web Service. In order to respond to the request for service, the servlet 114S sends out an email to a mailbox for the expert user who uses the browser 102S to provide the service to the request . The email includes a hyperlink to the Uniform Resource Locator (URL) address of the pages defined in JSP pages 116S. The servlet 114S may also inform the expert user of the hyperlink and ask the expert user to access the JSP pages via other means, e.g., an automatic telephone call and other electronic communication means. The expert user uses the browser 102S and the given hyperlink in the email to access the JSP pages 116S through the route from the HTTP server 112S and the servlet 114S. In response to the expert person's access, the HTTP server 112 sends a HTTP request to the servlet 114S . The servlet 114S dispatches the JSP pages 116S through the HTTP server 112S in the HTML format to the browser 102S. The expert user fills requested information in the HTML pages and sends the completed HTML pages back to the interface module 110S . The completed HTML pages are received by the HTTP server 112S and are next processed by the servlet 114S.
The servlet 114S converts the responses in the HTML format into the tree structure as a XML file. The detailed description on the conversion function for converting data in HTML pages into tree- structured data for XML documents used in Web Services is described previously in connection with the servlet 114 in FIG. 1. Next, the servlet 114S sends the converted XML file to the HTTP server 112s which in turn sends the XML file as a SOAP message in XML to the requesting client 104A on the Web 101. To the client 104A, the response in the SOAP message is not different from a response in a regular Web Service response message. Therefore, the Web browser 102S acts like a Web Service server through the interface module 110S.
[0082] FIG. 7 further illustrates an exemplary sequence of operations for providing a Web Service using the system in FIG. 1. The input from the user operating the browser 102S may be in a variety of forms. In one example, the expert user may simply fill in one or more blank fields in a form on a Web page displayed by the Web browser 102S that is defined in the JSP pages 116S. The servlet 114S converts the expert user's input in the filled form in the returned HTML message from the browser 102S into a proper XML document for a Web Service and directs the document to the HTTP server 112S. In another example, the expert user may use the Web browser 102S to send a document as part of or the entirety of the user response to the Web Service request . [0083] The above described examples of transformation or mapping between the data in a Web page in HTML and a XML document for operating a Web browser as a Web Service server illustrate specific implementations of a translation-solve-translation (TST) mapping of tree structured data between different computer representations of the tree structured data such as different computer languages and different user interfaces. The TST mapping, as the name implies, translates the tree structured data from a computer representation (e.g., LI) to another representation (e.g., L2) , solves a particular problem in the tree structured data in L2 (e.g., manipulating a data field or value) , and translates the tree structured data back to the original computer representation LI for further processing or operations .
[0084] As an example, in operating a Web browser as a Web Service server described above, a Web page in HTML at the Web browser and a XML document are two different computer representations of the tree structured data. More specifically, the web page in HTML is a user-friendly computer representation and provides a user interface to allow a person to interact with tree structured data by, e.g., entering an expert input for a particular request in a Web Service operation. The XML document is a machine-friendly and versatile computer representation and allows computer software modules and computers to process the information contained within the tree structured data. In rendering Web Service operations, the Web Service clients and servers communicate with one another in XML but a XML document is cumbersome for a person to operate in part because the person must be trained in XML or sufficiently knowledgeable in XML in order to properly manipulate an XML document and in part because the format of the XML document by its design is not meant to interact with untrained humans. Hence, when an expert input is needed in a particular Web Service operation, the tree structured data in the XML document is mapped into a Web page in HTML to obtain the input from the expert person and the tree structured data with the expert input is then mapped back to the XML representation for use by the Web Service clients and servers . [0085] Such TST mapping is applicable to any two different computer representations of tree structured data, e.g., between a machine-friendly representation such as XML and a user-friendly representation such as a Web page in HTML, between a first machine- friendly representation and a second, different machine-friendly representation, or between two different user friendly representations. A user-friendly representation may be a graphic interface such as a Web page which may have still graphics or motion pictures or video clips, an audio user interface where audio instructions are provided to a user and the user responds by speaking voices, a graphic-audio user interface where both graphic and audio are used. As additional examples, a tree structure may be represented as an object tree in Java (e.g., an object tree in Java Swing graphical user interface, , as a section of HTML, a section of the XML-based Wireless Markup Language (WML) used in wireless communications, a section of XML-based Scalable Vector Graphics (SVG) for describing two-dimensional graphics in XML, a graphical tree on a user interface device, etc. The mapping or transformation between tree structures may also be described by using different representations and languages. For example, Java may be used to describe the mapping if the tree structures being mapped are described as object trees in Java. The Extensible Stylesheet Language Transformations (XSLT) may be used to describe the mapping if the tree structures being mapped are described in some XML-based language. As illustrated in FIGS. 5A and 5B, the mapping may also be graphically represented by drawing lines between nodes in the graphical trees if the tree structures being mapped are represented as graphical trees on a user interface . [0086] A tree structure is different from an instance of a tree structure. For example, the following is a tree structure for a file "person": Person Name First Name Last Name Address where the tree begins with a root "person" and has two nodes or branches "Name" and "Address." The "Name" further includes nodes or branches "First Name" and "Last Name." Any value may be given to the nodes of this tree . When values are given to this tree structure, the tree structure is no longer an abstract structure and thus becomes an instance of the above tree: Person Name First Name (John) Last Name (Smith) Address (66 W. Palm Rd. Monrovia, CA 91016) A mapping or transformation or translation uses tree structures to process instances of those tree structures.
[0087] The following sections describe two examples of the TST mapping for solving different processing problems to further illustrate applications of the TST mapping.
[0088] FIG. 8A shows a set X of tree structures and a set Y of tree structures described in a computer language or representation LI. A mapping M in a computer language or representation Tl is needed to map tree structures in X into those in Y in a desired way for a particular application. One simple example for this mapping is mapping between a set X containing a tree structure "Person" and another set Y containing another tree structure "Employee": X: Person Name First Name Last Name Address Y: Employee Name Address The desired mapping is
(Person/Name/First Name) + (Person/Name/Last Name) =>Emp1oyee/Name, and Person/Address = Employee/Address . [0089] FIG. 8B shows one implementation of the TST mapping for achieving the above desired mapping. A different representation or language L2 may be used to describe tree structures in X and Y, and a different representation or language T2 may be used to describe mappings between tree structures . We then translate the descriptions of tree structures in X and Y in LI into those in L2, and define a mapping between those tree structures in T2. After defining in T2 the mapping M between the tree structures in X and Y, the mapping M is translated from T2 into Tl . [0090] The TST mapping in FIG. 8B may be implemented by choosing graphical trees as the new representation L2. Hence, the tree structures in X and Y are represented as graphical trees on a user interface device, a desktop or portable, a handheld device, a cell phone, etc. Lines are then drawn between the nodes in the tree structures to define the desired mapping. The defined mapping (lines between the nodes) is used to generate the mapping in language Tl . FIGS . 5A and 5B are examples of such a graphical mapping. [0091] The above mapping shown in FIG. 8B is used to find the mapping logic described in a specific way or in a specific language . The TST mapping may also be used for mapping instances of tree structures regardless what the mapping logic is . In some applications where a set X of tree structures and a set Y of tree structures are given, there is a need to find an instance of Y with certain desired properties described in a language or representation LI for each instance of tree structures of X (instance of X in short) described in the same language LI. FIG. 9A illustrates this operation. [0092] For example, assume a set X has the following tree structure Person Name First Name Last Name Address Credit history and the set Y has a different tree structure as follows: Person Name First Name Last Name Address Loan Approved (Y/N) . For each instance of X such as Person Name First Name (John) Last Name (Smith) Address { 66 W. Palm Rd. Monrovia, CA 91016) Credit History (3 times of late payment, 50 credit cards, $20,000 balance), a corresponding decision on whether to approve a loan is to be made. This decision is an instance of Y.
[0093] Under the TST mapping, the operation in FIG. 9A may be implemented in three operations shown in FIG. 9B. First, a different representation or language L2 is chosen to describe instances of tree structures in X. Each instance of X is then translated from LI to L2. In the language L2, the desired instance for Y that corresponds to X is found. Next, the description of the desired instance for Y is translated from L2 into LI . [0094] For example, assume instances of X and Y are described using XML as the language LI, and HTML is used for the representation L2. Hence, under the TST mapping in FIG. 9B, an instance of X is translated from an XML document into a HTML page. The HTML page is sent to a loan officer. The officer evaluates the case, approves (or disapproves) the loan, and sends the result back. Finally, the result in HTML is translated into XML. [0095] In implementations, the above described techniques and their variations may be implemented as computer software instructions . Such software instructions may be stored in an article with one or more machine-readable storage media or stored in one or more machine-readable storage devices connected to one or more computers. In operation, the instructions are executed by, e.g., one or more computer processors, to cause the machine to perform the described functions and operations . [0096] Only a few implementations are described. However, it is understood that variations and enhancements may be made.

Claims

Claims
What is claimed is the techniques and systems as described and illustrated, including: 1. An article comprising one or more machine-readable storage media that store machine-executable instructions operable to cause a machine to: directly invoke a Web service through a Web service call to the Web service to execute at least a portion of processes in a business workflow; during execution of a process in the business workflow, invoke a Web browser as a Web service server by converting information exchanged between the business workflow and the Web browser to allow for the business workflow to use a Web service call to invoke the Web browser; and control a Web page flow at the Web browser according to processing activities of the business workflow.
2. The article as in claim 1, wherein the business workflow is described in the Business Process Execution Language for Web
Services .
3. The article as in claim 1, wherein the business workflow is described in the Web Services Conversation Language.
4. The article as in claim 1, wherein the business workflow is described in the Web Service Choreography Interface language.
5. The article as in claim 1, wherein the business workflow is described in the Business Process Modeling Language.
6. The article as in claim 1, wherein the business workflow is described in the Business Process Specification Schema (BPSS) defined by the electronic business Extensible Markup Language (ebXML) .
7. The article as in claim 1, wherein the business workflow is described in the Web Services Flow Language.
8. The article as in claim 1, wherein the business workflow is described in the XLANG language .
9. The article as in claim 1, wherein the one or more machine-readable storage media further store one or more machine- executable instructions operable to cause the machine to interact with a backend application and to execute a function provided by the backend application.
10. The article as in claim 1, wherein the one or more machine-readable storage media further store one or more machine- executable instructions operable to cause the machine to interact with a database and to retrieve data from the database .
11. The article as in claim 1, wherein the one or more machine-readable storage media further store one or more machine- executable instructions operable to cause the machine to interact with a predetermined Web service during execution of the business workflow.
12. The article as in claim 1, wherein the machine-executable instructions allow the machine to generate a plurality of Web page templates that are predefined according to the business workflow, and wherein the Web page templates operate to convert the Web service data generated in the business workflow for the Web browser into at least one Web page to be processed by the Web browser.
13. A method, comprising: describing processing operations of a business process engine in a computer programming language to allow for directly invoking a Web service in a Web service server and exchange of information in Extensible Markup Language (XML) documents; providing a set of predefined Web page templates that correspond to activities of the business process engine to interact with a Web browser and to control a page flow at the Web browser, wherein each Web page template is operable to convert information from the business process engine in XML documents to the Web browser into a hypertext markup language (HTML) Web page to be displayed by the Web browser; using the hypertext transfer protocol (HTTP) to transmit the HTML Web page to the Web browser; using the business process engine to invoke the Web browser as a Web service server; converting data from the Web browser into an XML document from a Web service server; and directing the converted XML document to the business process engine to be processed as a Web service reply.
14. The method as in claim 13 , further comprising using a Java servlet to convert data from the Web browser into an XML document and to select a predefined Web page template from the set of predefined Web page templates to convert information from the business process engine in an XML document into a HTML Web page.
15. The method as in claim 13 , wherein the predefined Web page templates are JavaServer Pages .
16. The method as in claim 13 , further comprising communicating information of a hyperlink to a first Web page defined by one of the Web page templates- to a user of the Web browser so that the user can communicate with the business process engine through the Web browser as a Web service server.
17. The method as in claim 14, wherein the information of the hyperlink is sent to the user via an electronic mail.
18. The method as in claim 13, further comprising interacting the business process engine with a backend application to use the backend application to execute a function needed in a business process within the business process engine.
19. The method as in claim 13, further comprising interacting the business process engine with a database to retrieve data from the database and to use the data in a business process within the business process engine.
20. The method as in claim 13, further comprising using the business process engine to call a predetermined Web service and using a function in the predetermined Web service in a business process within the business process engine.
21. A method, comprising: describing processing operations of a business process engine in a computer programming language to allow for directly invoking a Web service in a Web service server and to exchange information in documents; providing a set of predefined Web page templates that correspond to activities of the business process engine to interact with a Web browser and to control a page flow at the Web browser according to processing operations of the business process engine, wherein each Web page template is operable to convert information from the business process engine in the documents to the Web browser into a Web page to be displayed by the Web browser; using a protocol to transmit the Web page to the Web browser; using a Web service of the business process engine to invoke the Web browser as a Web service server; and converting data from the Web browser into a document from a Web service server and directing the converted document to the business process engine to be processed as a Web service reply.
22. The method as in claim 21, wherein the processing operations of the business process engine are described in the Business Process Execution Language for Web Services .
23. The method as in claim 21, wherein the processing operations of the business process engine are described in Web Services Conversation Language.
24. The method as in claim 21, wherein the processing operations of the business process engine are described in the Web Service Choreography Interface.
25. The method as in claim 21, wherein the processing operations of the business process engine are described in the Business Process Modeling Language.
26. The method as in claim 21, wherein the processing operations of the business process engine are described in Business Process Specification Schema (BPSS) defined by the electronic business Extensible Markup Language (ebXML) .
27. The method as in claim 21, wherein the processing operations of the business process engine are described in the Web Services Flow Language.
28. The method as in claim 21, wherein the processing operations of the business process engine are described in XLANG.
29. A method, comprising: converting a hypertext transfer protocol (HTTP) message from a Web browser into an Extensible Markup Language (XML) document as a Web Service message; directing the converted XML document to a software module for Web Services which processes the converted XML document as a message from a Web Service Server and produces an XML request for a service from the Web Service Server; converting the XML request into a Web page; and using the HTTP to transmit the Web page to the Web browser.
30. The method as in claim 29, further comprising communicating information of a hyperlink to a predetermined Web page to a user of the Web browser to allow the user to communicate with the business process engine via the Web browser as a Web service server.
31. The method as in claim 29, wherein the information of the hyperlink is sent to the user via an electronic mail.
32. The method as in claim 29, further comprising executing a business process that comprises a plurality of processing operations, using an input from the Web browser in executing at least one of the processing operations, and using a backend application to execute a function needed in executing one of the processing operations .
33. The method as in claim 29, further comprising executing a business process that comprises a plurality of processing operations, using an input from the Web browser in executing at least one of the processing operations, retrieving data from a database, and using the retrieved data in executing one of the processing operations.
34. The method as in claim 29, further comprising executing a business process that comprises a plurality of processing operations, using an input from the Web browser in executing at least one of the processing operations, and calling a predetermined Web service to use a function in the predetermined Web service in executing one of the processing operations.
35. An article comprising one or more machine-readable storage media that store machine-executable instructions operable to cause a machine to: dispatch pre-defined Web pages to a Web browser used by a user for obtaining information from the user to respond to a Web Service request; process returned Web pages from the Web browser to convert a response by the user into a Web Service response file; and use the Web Service response file to reply to the Web Service request .
36. An article as in claim 35, wherein the instructions further include a set of instructions to cause the machine to communicate with others via a hypertext transfer protocol (HTTP) .
37. An article as in claim 35, wherein the Web pages are generated by JavaServer pages .
38. An article as in claim 35, wherein the instructions further include a set of instructions to cause the machine to communicate a hyperlink to the Web pages to the expert user.
39. A method for operating a Web browser as a Web service server, comprising: dispatching pre-defined Web pages to a Web browser used by a user for obtaining information from the user to respond to a Web Service request; receiving the Web pages returned from the Web browser after obtaining the information from the user; converting the information obtained from the user into a Web Service response file; and using the Web Service response file to reply to the Web Service request.
40. A method as in claim 39, further comprising informing the user of a hyperlink to the Web pages to allow the user to access the Web pages by using the Web browser in a computer connected to a computer network.
41. A method as in claim 39, wherein the user is informed of the hyperlink by an electronic mail.
42. A method as in claim 39, further comprising using a communication server to provide communications with the Web browser and for receiving the Web Service request and sending the Web Service response file.
43. A method as in claim 42 , wherein the communication server is a hypertext transfer protocol (HTTP) server.
44. A method as in claim 39, wherein a Java servlet is used to convert data from the Web browser into the Web Service response file in XML, and wherein the Web pages are generated from predefined JavaServer pages .
45. A method, comprising: sending Web pages in a Hypertext Markup Language (HTML) to a Web browser to obtain information from a user of the Web browser,- receiving user data entered into the Web pages in HTML from the Web browser; using a naming convention in the received user data to decode the received user data into an Extensible Markup Language (XML) document having a tree-structure that holds the information in the received user data; and delivering the XML document to a Web Service client which requests for the information in the XML document .
46. A method as in claim 45, wherein a hypertext transfer protocol (HTTP) server is used for sending and receiving the Web pages .
47. A method as in claim 45, further comprising using logic in a business process engine to control a page flow of the Web pages sent to the Web browser.
48. A method as in claim 45, further comprising using a Java servlet and predefined JavaServe pages to control a page flow of the Web pages sent to the Web browser without a business process engine .
49. An article comprising one or more machine-readable storage media that store machine-executable instructions operable to cause a machine to dispatch pre-defined Web pages in a Hypertext Markup Language (HTML) to a Web browser used by a user for obtaining information from the user to respond to a Web Service request; and apply HTML naming conventions to process returned Web pages from the Web browser and to convert a response by the user in HTML into an Extensible Markup Language (XML) document having a tree- structure .
50. An article as in claim 49, wherein the instructions further include a set of instructions to cause the machine to deliver the XML document to reply to the Web Service request.
51. An article as in claim 49, wherein the instructions further include a set of instructions to cause the machine to use the hypertext transfer protocol (HTTP) to dispatch the pre-defined Web pages .
52. An article as in claim 49, wherein the instructions further include a set of instructions to cause the machine to generate a graphic user interface to graphically represent a mapping relationship between information in a HTML document and information in a tree-structured XML document.
53. An article as in claim 52, wherein the instructions further include a set of instructions to cause the machine to create two separate graphic panes in the graphic user interface to represent fields of the HTML document and fields of the XML document, respectively, and provide graphic icons for linking the two separate graphic panes.
54. A method, comprising: applying HTML naming conventions to map data in a HTML Web page from a Web browser into tree-structured data fields of a XML document for a Web Service; and using the XML document to reply to a Web Service request which initiates the HTML Web page from the Web browser to represent the Web browser as a Web service server.
55. A method as in claim 54, further comprising using a hypertext transfer protocol (HTTP) server to send Web pages to and receive Web pages from the Web browser.
56. A method as in claim 55, wherein a Java servlet is used for mapping the data.
57. A method as in claim 54, further comprising using a graphic user interface to graphically represent the mapping between data fields in the HTML Web page and data fields in the tree- structured data fields of the XML document .
58. A method as in claim 57, further comprising: providing two separate graphic panes in the graphic user interface to represent data fields of the HTML Web page and the tree-structured data fields of the XML document, respectively, and providing graphic icons for linking the two separate graphic panes .
59. A method, comprising: describing processing operations of a business process in a computer programming language to allow for directly invoking a Web service in a Web Service server; providing a set of predefined Web page templates that correspond to selected activities within the business process to interact with a user via a Web browser and to control a page flow at the Web browser to obtain information from the user for use in the business process; keeping a record of user actions on the Web browser; using one or more selected Web page templates to resend corresponding one or more selected Web pages to the Web browser when the user clicks the back button in the Web browser; and restarting processing operations in the business process that are affected by the user's use of the back button on the browser.
60. A method as in claim 59, further comprising saving data of different Web pages produced by the user.
61. A method as in claim 59, further comprising: checking validity of each processing operation in the business process preceding the user's use of the back button on the Web browser; and when a prior processing operation is invalid, generating a fault to indicate the invalidity.
62. A method as in claim 59, further comprising: invoking a compensation mechanism in the business process to undo a change made to an external source outside the business process when the user's use of the back button on the Web browser invalidates the change made; and after the change made to the external source is undone, performing corresponding processing operations in the business process that are affected by the user' s use of the back button on the browser.
63. A method as in claim 62, wherein the external source outside the business process comprises a database.
64. A method as in claim 59, further comprising using the Business Process Execution Language for Web Services to describe each processing operation in the business process.
65. A method as in claim 59, further comprising using a computer programming language other than the Business Process Execution Language for Web Services to define each business process .
66. A method as in claim 59, further comprising using the Web Services Conversation Language to define each processing operation in the business process.
67. A method as in claim 59, further comprising using the Web Service Choreography Interface language to define each processing operation in the business process .
68. A method as in claim 59, further comprising using the Business Process Modeling Language to define each processing operation in the business process.
69. A method as in claim 59, further comprising using the Business Process Specification Schema (BPSS) defined by electronic business Extensible Markup Language (ebXML) to define each processing operation in the business process .
70. A method as in claim 59, further comprising using the Web Services Flow Language to define each processing operation in the business process.
71. A method as in claim 59, further comprising using the XLANG language to define each processing operation in the business process .
72. An article comprising one or more machine-readable storage media that store machine-executable instructions operable to cause one or more computers to: directly invoke a Web service through a Web service call to the Web service to execute at least a portion of processes in a business workflow; during execution of a process in the business workflow, invoke a Web browser as a Web service server by converting information exchanged between the business workflow and the Web browser to allow for the business workflow to use a Web service call to invoke the Web browser; control a Web page flow at the Web browser according to processing activities of the business workflow; keep a record of user actions on the Web browser; resend one or more selected Web pages to the Web browser when the user clicks the back button in the Web browser; and restart processing operations in the business workflow that are affected by the user's use of the back button on the browser.
73. An article as in claim 72, wherein the machine-executable instructions further cause one or more computers to save data of different Web pages produced by the user.
74. An article as in claim 72, wherein the machine-executable instructions further cause one or more computers to check validity of each processing operation in the business process preceding the user' s use of the back button on the Web browser; and when a prior processing operation is invalid, generate a fault to indicate the invalidity.
75. An article as in claim 72, wherein the machine-executable instructions further cause one or more computers to undo a change made to an external source when the user' s use of the back button on the Web browser invalidates the change made; and after the change made the external source is undone, perform processing operations in the business process that are affected by the user's use of the back button on the browser.
76. A method, comprising: translating a first tree data structure in a first computer language into a corresponding first tree data structure in a second, different computer language; translating a second tree data structure in a first computer language into a corresponding second tree data structure in a second, different computer language; determining a mapping from the first tree data structure in the second computer language to the second tree data structure in the second computer language; and translating the mapping from the second computer language into the first computer language.
77. The method as in claim 76, further comprising using a graphical language for a user interface as the second computer language.
78, The method as in claim 77, further comprising using the graphic user interface to draw a line from one location in the first tree data structure to a corresponding location in the second tree data structure to define the mapping.
79. The method as in claim 76, wherein the first computer language is the XML-based Wireless Markup Language (WML) used in wireless communications.
80. The method as in claim 76, wherein the first computer language is the XML-based Scalable Vector Graphics (SVG) for describing two-dimensional graphics in XML.
81. The method as in claim 76, wherein the first computer language is the Java Swing graphical user interface.
Θ2. A method, comprising: representing an instance of a first tree data structure in a first computer language; translating the instance of the first tree data structure into a corresponding instance of the first tree data structure in a second, different computer language; given the instance of the first tree data structure in the second language, finding an instance of a second tree data structure in the second computer language; and
~4β- translating the found instance of the second tree data structure from the second computer language into the first computer language .
83. The method as in claim 82, wherein the first computer language is HTML and the second computer language is XML.
84. The method as in claim 82 , wherein the first computer language is XML and the second computer language is HTML.
85. The method as in claim 82, wherein the first computer language is the XML-based Wireless Markup Language (WML) used in wireless communications.
86. The method as in claim 82, wherein the first computer language is the XML-based Scalable Vector Graphics (SVG) for describing two-dimensional graphics in XML.
87. The method as in claim 82, wherein the first computer language is the Java Swing graphical user interface.
EP04795335A 2003-10-14 2004-10-14 Web browser as web service server Withdrawn EP1673701A4 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
US51161203P 2003-10-14 2003-10-14
US10/961,522 US20050198394A1 (en) 2003-10-14 2004-10-07 Data conversion from HTML to XML in a tree structure
US10/961,822 US20060031750A1 (en) 2003-10-14 2004-10-07 Web browser as web service server
US10/962,160 US7343554B2 (en) 2003-10-14 2004-10-08 Mechanisms for supporting back button function of web browser as web service server in interaction with business process engine
US10/962,182 US7506072B2 (en) 2003-10-14 2004-10-08 Web browser as web service server in interaction with business process engine
PCT/US2004/034155 WO2005038620A2 (en) 2003-10-14 2004-10-14 Web browser as web service server

Publications (2)

Publication Number Publication Date
EP1673701A2 true EP1673701A2 (en) 2006-06-28
EP1673701A4 EP1673701A4 (en) 2008-04-09

Family

ID=34468544

Family Applications (1)

Application Number Title Priority Date Filing Date
EP04795335A Withdrawn EP1673701A4 (en) 2003-10-14 2004-10-14 Web browser as web service server

Country Status (2)

Country Link
EP (1) EP1673701A4 (en)
WO (1) WO2005038620A2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893591B (en) * 2016-04-10 2019-04-02 广州金越软件技术有限公司 A kind of data sharing service intelligent arranging method
CN113467775A (en) * 2020-03-31 2021-10-01 北京沃东天骏信息技术有限公司 Method and device for generating page

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1100013A2 (en) * 1999-10-12 2001-05-16 International Business Machines Corporation Methods and systems for multi-modal browsing and implementation of a conversational markup language
EP1122652A1 (en) * 2000-02-03 2001-08-08 Mitsubishi Denki Kabushiki Kaisha Data Integration system
US20030046316A1 (en) * 2001-04-18 2003-03-06 Jaroslav Gergic Systems and methods for providing conversational computing via javaserver pages and javabeans
US20030093756A1 (en) * 2001-10-19 2003-05-15 Behzadi Azad E. Extensible mark-up language (XML) tracer for conversion of XML documents to hypertext markup language (HTML)
WO2003073308A1 (en) * 2002-02-22 2003-09-04 Bea Systems, Inc. Web services runtime architecture

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040103396A1 (en) * 2002-11-20 2004-05-27 Certagon Ltd. System for verification of enterprise software systems
US20050005259A1 (en) * 2003-03-14 2005-01-06 Infowave Software, Inc. System and method for communication and mapping of business objects between mobile client devices and a plurality of backend systems
US7114146B2 (en) * 2003-05-02 2006-09-26 International Business Machines Corporation System and method of dynamic service composition for business process outsourcing
US7925981B2 (en) * 2003-05-14 2011-04-12 Hewlett-Packard Development Company, L.P. Systems and methods for managing web services via a framework of interfaces

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1100013A2 (en) * 1999-10-12 2001-05-16 International Business Machines Corporation Methods and systems for multi-modal browsing and implementation of a conversational markup language
EP1122652A1 (en) * 2000-02-03 2001-08-08 Mitsubishi Denki Kabushiki Kaisha Data Integration system
US20030046316A1 (en) * 2001-04-18 2003-03-06 Jaroslav Gergic Systems and methods for providing conversational computing via javaserver pages and javabeans
US20030093756A1 (en) * 2001-10-19 2003-05-15 Behzadi Azad E. Extensible mark-up language (XML) tracer for conversion of XML documents to hypertext markup language (HTML)
WO2003073308A1 (en) * 2002-02-22 2003-09-04 Bea Systems, Inc. Web services runtime architecture

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of WO2005038620A2 *

Also Published As

Publication number Publication date
EP1673701A4 (en) 2008-04-09
WO2005038620A3 (en) 2005-06-30
WO2005038620A2 (en) 2005-04-28

Similar Documents

Publication Publication Date Title
US7506072B2 (en) Web browser as web service server in interaction with business process engine
US7343554B2 (en) Mechanisms for supporting back button function of web browser as web service server in interaction with business process engine
US20060031750A1 (en) Web browser as web service server
US6792605B1 (en) Method and apparatus for providing web based services using an XML Runtime model to store state session data
US7840934B2 (en) Method and system for integrating workflow management systems with business-to-business interaction standards
US7496687B2 (en) Enterprise application platform
US8335862B2 (en) Programmatic management of software resources in a content framework environment
US6985939B2 (en) Building distributed software services as aggregations of other services
US20050210456A1 (en) Dynamic agent with embedded web server and mark-up language support for e-commerce automation
Newcomer Understanding Web Services: XML, Wsdl, Soap, and UDDI
US9742614B2 (en) Data-type definition driven dynamic business component instantiation and execution framework
US7937500B2 (en) Dynamic, real-time integration of software resources through services of a content framework
US6981222B2 (en) End-to-end transaction processing and statusing system and method
US20050198394A1 (en) Data conversion from HTML to XML in a tree structure
US20060136489A1 (en) Mapping a semantic model of business collaboration to a web services meta model
Kao Developer's Guide to Building XML-based Web Services
Kim et al. RFID business aware framework for business process in the EPC network
Umar The emerging role of the Web for enterprise applications and ASPs
EP1673701A2 (en) Web browser as web service server
Dabous et al. Middleware technologies for b2b integration
Brambilla et al. Asynchronous web services communication patterns in business protocols
Ulmer Architectural solutions to agent-enabling e-commerce portals with pull/push abilities
Steger-Jensen et al. Review of B2B integration
Aldous et al. Web Tools for Supporting Mass Customization
Hu et al. Generic Web-Service Adaptation for SAP’s Business Suite UI Framework

Legal Events

Date Code Title Description
PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

17P Request for examination filed

Effective date: 20060424

AK Designated contracting states

Kind code of ref document: A2

Designated state(s): DE GB

DAX Request for extension of the european patent (deleted)
RBV Designated contracting states (corrected)

Designated state(s): DE GB

A4 Supplementary search report drawn up and despatched

Effective date: 20080306

RIC1 Information provided on ipc code assigned before grant

Ipc: G06F 17/30 20060101ALI20080229BHEP

Ipc: G06F 15/173 20060101AFI20060502BHEP

17Q First examination report despatched

Effective date: 20080804

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN

18D Application deemed to be withdrawn

Effective date: 20081215