1. Field of the Invention
The present invention relates to a method used in a service system and related communication device, and more particularly, to a method of reporting a result of execution of a workflow and related communication device.
2. Description of the Prior Art
Open Mobile Alliance (OMA) is founded to develop OMA specifications for mobile services to meet users' needs. Furthermore, the OMA specifications aim to facilitate providing of the mobile services which are interoperable across geographic areas (e.g. countries), operators, service providers, networks, operation systems and mobile devices. In detail, the mobile services conforming to the OMA specifications can be used by the users without being restricted to particular operators and service providers. The mobile services conforming to the OMA specifications are also bearer agnostic, i.e., the bearer that carries the mobile services can be a second generation (2G) mobile system such as Global System for Mobile Communications (GSM), Enhanced Data rates for GSM Evolution (EDGE) or General Packet Radio Service (GPRS), or a third generation (3G) and beyond mobile system such as Universal Mobile Telecommunications System (UMTS), Long Term Evolution (LTE) or LTE-Advanced (LTE-A). Further, the mobile services conforming to the OMA specifications can be executed on various operation systems such as Windows, Android or Linux operated on various mobile devices. Therefore, industries providing the mobile devices or the mobile services supporting the OMA specifications can benefit from a largely growing market enabled by interoperability of the mobile services. Besides, the users use the mobile devices or the mobile services supporting the OMA specifications can also have a better experience due to the interoperability of the mobile services.
In OMA Device Management (DM) working group, Software and Application Control Management Object (SACMO) is proposed to reduce an amount of transmissions between a SACMO client and a SACMO server. The SACMO aims to enable remote operations for software and application control in the SACMO client. The SACMO will provide the SACMO client capabilities of processing management actions such as a workflow of software and applications utilizing existing management objects. The workflow comprises a sequence of steps, wherein each step can be an operation, a process, a command or other type of resource. Further, a management object tree defined according to the SACMO will be used for setting up parameters and operational functions necessary for executing the workflow conditionally without indications from the SACMO server. Therefore, after finishing a step, the SACMO client can determine a next step according to a condition. In other words, the SACMO server sends the management object tree to the SACMO client for setting up the workflow. Then, the SACMO client executes the workflow according to the management object tree until the workflow is completed or a failure occurs.
However, when the failure occurs, the SACMO client only notifies the SACMO server that the failure occurs but does not notify the SACMO server where the failure is. It is difficult for the SACMO server to handle (e.g., find, solve and/or record) the failure, since the SACMO client executes multiple steps in the workflow according to the SACMO. Thus, how to report location of the failure is a topic to be addressed.
The present invention therefore provides a method and related communication device for reporting a result of execution of a workflow to solve the abovementioned problem.
A method of reporting a result of execution of a workflow of a software and application control management object (SACMO) management object tree for a SACMO client in a service system is disclosed. The method comprises determining a node of the SACMO management object tree according to the result of the execution of the workflow; generating a message comprising an address of the node of the SACMO management object tree; and transmitting the message to a SACMO server of the service system, for reporting the result to the SACMO server.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
In
Please refer to
Please refer to
Step 300: Start.
Step 302: Determine a node of the SACMO management object tree according to the result of the execution of the workflow.
Step 304: Generate a message comprising an address of the node of the SACMO management object tree.
Step 306: Transmit the message to the SACMO server, for reporting the result to the SACMO server.
Step 308: End.
According to the process 30, after the SACMO client executes the workflow, the SACMO client determines a node of the SACMO management object tree according to the result of the execution of the workflow. Then, the SACMO client generates a message comprising an address of the node of the SACMO management object tree, and transmits the message to the SACMO server, for reporting the result to the SACMO server. In other words, if the result of the execution indicates that the execution is unsuccessful (e.g., completed or interrupted with a failure), a node corresponding to the result is determined by the SACMO client. Then, an address of the node is included in the message as assistance information, to help the SACMO server to handle (e.g., find, solve and/or record) the result (i.e., erroneous result) and the failure.
Please note that, a spirit of the process 30 is that a SACMO client reports an address of a node according to a result of execution of a workflow, for reporting the result (e.g., a failure occurring during the execution), to help the SACMO server to handle the result (e.g., the failure). Realization of the process 30 is not limited. For example, the message mentioned above can be a generic alert if the workflow is executed asynchronously, and can be a status command if the workflow is executed synchronously.
Besides, a method for determining a node according to the result is not limited. Please refer to
Furthermore, the SACMO client can determine multiple nodes of the SACMO management object tree according to the result of the execution of the workflow. Then, addresses of the nodes are included in the message. For example, when multiple steps can not be executed successfully, i.e., failures occur when executing the steps, the SACMO client can include addresses of StepID nodes of the steps in the message. Alternatively, when multiple nodes (i.e., empty nodes) do not exist, the SACMO client can include addresses of nodes pointing to the empty nodes in the message. Further, it can be that some of the determined nodes are StepID nodes of steps at which failures occur, and the others of the determined nodes are nodes pointing to empty nodes. Addresses of two kinds of the determined nodes are included in the message. Therefore, the SACMO client can report multiple nodes according to the above illustration. Preferably, LocURI elements in Target elements of multiple Item elements can be used for reporting multiple nodes in the message.
Those skilled in the art should readily make combinations, modifications and/or alterations on the abovementioned examples. The abovementioned steps of the processes including suggested steps can be realized by means that could be a hardware, a firmware known as a combination of a hardware device and computer instructions and data that reside as read-only software on the hardware device, or an electronic system. Examples of hardware can include analog, digital and mixed circuits known as microcircuit, microchip, or silicon chip. Examples of the electronic system can include a system on chip (SOC), system in package (SiP), a computer on module (COM), and the communication device 20.
To sum up, the present invention provides a method for reporting a result of execution of a workflow. According to the present invention, a SACMO client reports an address of a node according to the result of the execution, for reporting the result (e.g., a failure occurring during the execution), to help the SACMO server to handle the result (e.g., the failure). Further, addresses of nodes can also be reported according to the present invention, after the nodes are determined by the SACMO client according to the result of the execution.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
This application claims the benefit of U.S. Provisional Application No. 61/498,626, filed on Jun. 20, 2011 and entitled “Method of reporting execution result in Software and Application Control Management Object”, the contents of which are incorporated herein in their entirety.
Number | Date | Country | |
---|---|---|---|
61498626 | Jun 2011 | US |