Aspects of the present disclosure generally relate to manufacturing intelligence. More particularly, aspects relate to systems and methods for consolidating event execution.
Manufacturing intelligence systems provide graphical representations of information models that are multidimensional data models to represent business logic and relationships between various unstructured source data items. Conventional systems process events in a sequential manner which may result in processing redundant time ranges when there is an overlap between the time ranges of more than one event. The sequential processing of events results in unnecessary processor utilization and a delay in processing event requests.
Aspects of the disclosure improve operation of computerized manufacturing intelligence systems by reducing extra and unnecessary utilization of processor resources and network bandwidth while handling every event request. Aspects of the disclosure further provide a server runtime environment capable of consolidating queued event items to minimize reprocessing of objects to extract, transform, and load data from source systems to a structured data store.
In an aspect, a computer-implemented method includes performing, by a scheduler process of a runtime environment, one or more system events in accordance with a periodic schedule. An on-demand process of the runtime environment performs one or more user-requested events in response to receiving one or more aperiodic requests for the user events from a user device. An event manager process of the runtime environment consolidates the performance of a plurality of the system events and the user-requested events into performance of a primary event. The runtime environment executes one or more model objects corresponding to process devices in a continuous process in response to the consolidated performance of the plurality of system events and user-requested events.
In another aspect, a server computing device comprises a processor and processor-executable instructions stored on a computer-readable storage medium of the server computing device. The processor-executable instructions include instructions that, when executed by the processor, implement a runtime environment including a scheduler process, an on-demand process, and an event manager process. The runtime environment is adapted to execute model objects corresponding to a process device within a continuous process. The scheduler process implements system events in accordance with a periodic schedule. The on-demand process implements aperiodic user events in response to receiving a request for the user events from a user device. The event manager consolidates implementation of the system events and the user events into implementation of a primary event and the runtime environment executes the model objects in response to the implementation of the primary event.
Other objects and features will be in part apparent and in part pointed out hereinafter.
Corresponding reference characters indicate corresponding parts throughout the drawings.
The data sources 102 are adapted to store data indicative of one or more values corresponding to devices of a continuous process (e.g., a plant). In an exemplary embodiment, objects (e.g., measures or dimensions) comprise data stored on data sources 102. The data sources 102 are further adapted to provide the stored data to the server computing device 104. In an embodiment, data sources 102 are connected to server computing device 104 via one or more plug-in components, such as data adapters (e.g., adapter services 114). The data sources 102 may each comprise a server computing device, an operational historian database, an object linking and embedding (OLE) database, a performance indicator (PI) historian database, and the like in accordance with an aspect of the disclosure. Exemplary data stored and provided by data sources 102 includes, but is not limited to, operations and performance data, operational historian data, OLE data, PI data, and the like.
The intelligence data services 110 are adapted to, when executed by processor 108, retrieve, relate, and aggregate data from data sources 102. In accordance with an aspect of the disclosure, a measure is a group of one or more calculations that share the same context. In an embodiment, a measure comprises calculations for each source system, time period, and/or each unique combination of dimension value. Exemplary measures include, but are not limited to, sales volume, margin contribution, schedule adherence, energy deviation, performance, quality, run rate, target run rate, utilization, and the like.
In accordance with another aspect of the disclosure, a dimension is a structure that provides context to measures. In an embodiment, each dimension stores related items of data. In another embodiment, a dimension stores contextual data. A dimension enables filtering, grouping, and labeling of measure data, in accordance with an aspect of the disclosure. Exemplary dimensions include, but are not limited to, customer, product, shift, line, machine, equipment, item, job, and the like.
In accordance with a further aspect of the disclosure, relating a measure to a dimension establishes a context. In an embodiment, a context link provides a context for time-slicing and time-slices obtained from time defining dimensions may have an associated context. In an embodiment in which runtime services 112 process a measure, runtime services 112 validate and ensure that only one process is executed during a particular time range.
The communications infrastructure 118 is capable of facilitating the exchange of data among various components of system 100, including data sources 102, server computing device 104, and client user devices 106. The communications infrastructure 118 in the embodiment of
In accordance with an aspect of the disclosure, an external system places an event request (e.g., ad-hoc request, aperiodic request, etc.) to execute a measure or a dimension by calling the event service process 202. In an exemplary embodiment, a client user device 106 transmits an event request to event service process 202 executing on server computing device 104 by calling an add method of the event service process 202. In an embodiment, the event request is referred to as a user-requested event. The event manager process 204, executing on runtime services 112 of server computing device 104, is adapted to interact with event service process 202 for adding events corresponding to event requests. In an embodiment, event manager process 204 processes event requests in a first in, first out (FIFO) order. In accordance with an aspect of the disclosure, supported events include a dimension refresh event, a measure refresh event, and a measure date range execution event.
In accordance with a further aspect of the disclosure, event manager process 204 consolidates system events (e.g., measure backfill process 210, scheduler process 208) and user-requested events. In an embodiment, event manager process 204 consolidates events based on various properties associated with the events such as object type, object identification numbers, target time ranges, and the like as further described herein. Beneficially, aspects of the disclosure automatically consolidate events and do not require users manually adjusting event time ranges for optimized event execution.
In an embodiment in which there are full or partial overlapping time periods for a plurality of events being processed, event manager process 204 utilizes a sequence of events mechanism to pick the event with the superset period that represents all the conflicting events so that a valid and consistent set of time slices are processed as per the model configuration. In an embodiment, aspects of the disclosure enable user-requested events to be raised in any frequency, order, or time as they occur. In an embodiment, event manager process 204 consolidates system events (e.g., Time Defining Dimension (TDD)) with other system and user events by designating primary and secondary events based on time ranges as further described herein. In another embodiment, event manager process 204 consolidates system events (e.g., TDD) with other system and user events by considering the current execution status of the objects to ensure that events which cannot participate in time range consolidation (e.g., system events generated by scheduler process 208) are processed without being affected by consolidation operations, as further described herein. In a further embodiment, event manager process 204 consolidates system events (e.g., TDD) with other system and user events by considering event time ranges that fully overlap, partially overlap, and/or are adjacent, as further described herein. In yet another embodiment, event manager process 204 consolidates system events (e.g., TDD) with other system and user events by creating a consolidated event that fully represents all of the events that it is consolidating without any loss of data.
Referring further to
A scheduler (e.g., scheduler process 208), a time-defining dimension (e.g., on-demand manager process 206), an event (e.g., event manager process 204), and/or a backfill (e.g., measure backfill process 210) executes one or more measures in accordance with aspects of the disclosure. In an embodiment, data is captured from data store 116 during an execution time period to avoid the overlapping execution on the runtime (e.g., runtime services 112).
In an embodiment, events process objects (e.g., measures or dimensions) at the same time objects are refreshed by a scheduler (e.g., scheduler process 208), which may cause redundant refreshing of objects. In accordance with an aspect of the disclosure, scheduler process 208 purges objects before they are executed. For example, purging objects avoids redundant refreshing of objects.
In another embodiment, scheduler process 208 purges any event requests that are in a pending status for the same object which is available under an events table (e.g., Model.EventQueue) when there is a refresh of scheduler process 208. The event objects may be dimension objects or measure objects. These objects that are running under scheduler process 208 (e.g., during a scheduler refresh) verifies that the object exists in the events. When the object exists, scheduler process 208 purges the event objects by updating a status of the object to reflect a “purged” identifier and deletes the records from the events table. In an embodiment, the events table is available in data store 116.
In accordance with an aspect of the disclosure, a trigger is available on the events table. In an embodiment, the trigger is disabled by default and enabled upon a command, such as insert, update, delete, and the like. When a user enables the trigger (e.g., via client user devices 106), it will insert the records into the events table. The trigger can also be enabled by making changes in a configuration file (e.g., EMIRuntimeConfigurator.xml, setting an EnableEventQueueHistory key to true). In another embodiment, a table (e.g., Model.EventQueue_History) is utilized to track the status of the objects.
Co-pending, co-owned U.S. patent application Ser. No. 15/136,138, entitled COORDINATING EVENT-DRIVEN OBJECT EXECUTION, filed on the same day as this application, discloses further aspects of the processes that comprise runtime services 112 and is incorporated herein in its entirety by reference.
Referring further to
At step 306, event manager process 204 determines whether the measure has a date range (e.g., a start date and an end date). In an embodiment, a date range comprises both a date and a time (e.g., a start time on a date and an end time on a date). One having ordinary skill in the art will understand that one or more embodiments may refer to the date range as a time range without departing from the scope of the disclosure. When event manager process 204 determines the measure has a date range, the procedure continues to step 308. At step 308, event manager process 204 determines whether the measure with a date range is executed by another process (e.g., on-demand manager process 206 and/or scheduler process 208 in execution object 214) in a time period that overlaps the date range of the measure. When event manager process 204 determines the measure is not executed by another process in an overlapping time period, the procedure continues to dequeue the event via a dequeuing process, as further described herein. When event manager process 204 determines, at step 308, the measure is executed by another process in an overlapping time period, the procedure processes the measure at a subsequent time period (e.g., it is not dequeued).
Returning to step 306, when event manager process 204 determines the measure does not have a date range, the procedure continues to step 310. At step 310, event manager process 204 determines whether the measure is executed by a scheduler (e.g., scheduler process 208 in execution object 214). When event manager process 204 determines the measure is not executed by the scheduler, the procedure continues to dequeue the event via a dequeuing process, as further described herein. When event manager 204 determines, at step 310, the measure is executed by the scheduler, the procedure processes the measure at a subsequent time period.
Referring to
Referring further to
Returning to step 502 of
A first situation in which an event queue measure item with a date range can be dequeued is if the measure has a source of Event and the same measure is not already running on execution object 214. Referring to
A second situation in which an event queue measure item with a date range can be dequeued is if the same measure having a source of Refresh or TDD is running on execution object 214 and there is no date range conflict. Returning to step 514 of
A third situation in which an event queue measure item with a date range can be dequeued is if the same measure has finished its measure backfill process. Referring to
A fourth situation in which an event queue measure item with a date range can be dequeued is if the same measure is actively running on measure backfill process 210 and the current plan (e.g., the currently executing time range of measure backfill process 210) has already filled the date range of the event queue measure item. Returning to step 522 of
A measure backfill GUI object 606 comprises one or more properties, such as a backfill start time (e.g., BackfillStartTimeUtc), a backfill end time (e.g., BackfillEndTimeUtc), a planned start time of a last execution (e.g., LastExecutionPlanStartTimeUtc), a planned end time of a last execution (e.g., LastExecutionPlanEndTimeUtc), and the like. In an embodiment, measure backfill GUI object 606 corresponds to measure backfill object 216 and the properties of measure backfill GUI object 606 comprise properties of measure backfill object 216. In another embodiment, measure backfill GUI object 606 comprises selector 604, which enables selection of properties of measure backfill GUI object 606 as described above.
Table 1 includes an exemplary refresh request dimension event queue item (e.g., Dimension A), refresh request measure event queue item (e.g., Measure X), and date range request measure event queue item (e.g., Measure Y) each having a time parameter associated therewith.
In the exemplary embodiment of Table 1, event manger process 204 sorts the Dimension A event queue items having timestamps of 14:24:00.000 and 14:26:00.000 as secondary event queue items because they can be consolidated with the Dimension A event queue item having a timestamp of 14:00:00.000 (i.e., the primary event queue item). In an embodiment, the timestamp comprises a time when each event queue item was added to the queue and does not change. The event queue items in Table 1 are grouped by item type (e.g., Dimension A, Measure X, Measure Y) and sorted by earliest time to determine the primary event queue item of each item type. After sorting the event queue items at step 704, the dequeuing process continues to identify which secondary event queue items can be consolidated with primary event queue items as further described herein.
At step 802 of
Returning to step 802 of
There are two levels of consolidating event queue items of the date range refresh type. The first level is based on a start time and an end time of the primary event queue item. The exemplary embodiment illustrated by
Returning to step 806 of
Referring again to
With continued reference to
Referring again to
Continuing the above example illustrated by
Table 2 includes three event queue items with date ranges for the same measure and in a pending status.
Because the second and third event queue items overlap with the first event queue item (e.g., the primary event queue item), the start time of the primary event queue item changes from 13:00 to 11:40 and the end time of the primary event queue item changes from 15:00 to 16:00 and it gets dequeued. The result set of calling the procedure (e.g., Model.usp_GetEventQueueItems) results in the set of Table 3.
The event queue history table illustrated in Table 4 (e.g., the trigger is enabled) shows the status of the second and third event queue items changed causing an insert into History (e.g., row 1 and 2) and then got deleted with the new status, showing that it was consolidated by the primary event queue item. In an embodiment, the time values also include the date.
Embodiments of the present disclosure may comprise a special purpose computer including a variety of computer hardware, as described in greater detail below.
Embodiments within the scope of the present disclosure also include computer-readable media for carrying or having computer-executable instructions or data structures stored thereon. Such computer-readable media can be any available media that can be accessed by a special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage, or other magnetic storage devices, or any other medium that can be used to carry or store desired program code means in the form of computer-executable instructions or data structures and that can be accessed by a general purpose or special purpose computer. When information is transferred or provided over a network or another communications connection (either hardwired, wireless, or a combination of hardwired or wireless) to a computer, the computer properly views the connection as a computer-readable medium. Thus, any such connection is properly termed a computer-readable medium. Combinations of the above should also be included within the scope of computer-readable media. Computer-executable instructions comprise, for example, instructions and data which cause a general purpose computer, special purpose computer, or special purpose processing device to perform a certain function or group of functions.
The following discussion is intended to provide a brief, general description of a suitable computing environment in which aspects of the disclosure may be implemented. Although not required, aspects of the disclosure will be described in the general context of computer-executable instructions, such as program modules, being executed by computers in network environments. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Computer-executable instructions, associated data structures, and program modules represent examples of the program code means for executing steps of the methods disclosed herein. The particular sequence of such executable instructions or associated data structures represent examples of corresponding acts for implementing the functions described in such steps.
Those skilled in the art will appreciate that aspects of the disclosure may be practiced in network computing environments with many types of computer system configurations, including personal computers, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, and the like. Aspects of the disclosure may also be practiced in distributed computing environments where tasks are performed by local and remote processing devices that are linked (either by hardwired links, wireless links, or by a combination of hardwired or wireless links) through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.
An exemplary system for implementing aspects of the disclosure includes a special purpose computing device in the form of a conventional computer, including a processing unit, a system memory, and a system bus that couples various system components including the system memory to the processing unit. The system bus may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. The system memory includes read only memory (ROM) and random access memory (RAM). A basic input/output system (BIOS), containing the basic routines that help transfer information between elements within the computer, such as during start-up, may be stored in ROM. Further, the computer may include any device (e.g., computer, laptop, tablet, PDA, cell phone, mobile phone, a smart television, and the like) that is capable of receiving or transmitting an IP address wirelessly to or from the internet.
The computer may also include a magnetic hard disk drive for reading from and writing to a magnetic hard disk, a magnetic disk drive for reading from or writing to a removable magnetic disk, and an optical disk drive for reading from or writing to removable optical disk such as a CD-ROM or other optical media. The magnetic hard disk drive, magnetic disk drive, and optical disk drive are connected to the system bus by a hard disk drive interface, a magnetic disk drive-interface, and an optical drive interface, respectively. The drives and their associated computer-readable media provide nonvolatile storage of computer-executable instructions, data structures, program modules, and other data for the computer. Although the exemplary environment described herein employs a magnetic hard disk, a removable magnetic disk, and a removable optical disk, other types of computer readable media for storing data can be used, including magnetic cassettes, flash memory cards, digital video disks, Bernoulli cartridges, RAMs, ROMs, solid state drives (SSDs), and the like.
The computer typically includes a variety of computer readable media. Computer readable media can be any available media that can be accessed by the computer and includes both volatile and nonvolatile media, removable and non-removable media. By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer storage media include both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media are non-transitory and include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, SSDs, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired non-transitory information, which can accessed by the computer. Alternatively, communication media typically embody computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
Program code means comprising one or more program modules may be stored on the hard disk, magnetic disk, optical disk, ROM, and/or RAM, including an operating system, one or more application programs, other program modules, and program data. A user may enter commands and information into the computer through a keyboard, pointing device, or other input device, such as a microphone, joy stick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to the processing unit through a serial port interface coupled to the system bus. Alternatively, the input devices may be connected by other interfaces, such as a parallel port, a game port, or a universal serial bus (USB). A monitor or another display device is also connected to the system bus via an interface, such as video adapter 48. In addition to the monitor, personal computers typically include other peripheral output devices (not shown), such as speakers and printers.
One or more aspects of the disclosure may be embodied in computer-executable instructions (i.e., software), routines, or functions stored in system memory or non-volatile memory as application programs, program modules, and/or program data. The software may alternatively be stored remotely, such as on a remote computer with remote application programs. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types when executed by a processor in a computer or other device. The computer executable instructions may be stored on one or more tangible, non-transitory computer readable media (e.g., hard disk, optical disk, removable storage media, solid state memory, RAM, etc.) and executed by one or more processors or other devices. As will be appreciated by one of skill in the art, the functionality of the program modules may be combined or distributed as desired in various embodiments. In addition, the functionality may be embodied in whole or in part in firmware or hardware equivalents such as integrated circuits, application specific integrated circuits, field programmable gate arrays (FPGA), and the like.
The computer may operate in a networked environment using logical connections to one or more remote computers. The remote computers may each be another personal computer, a tablet, a PDA, a server, a router, a network PC, a peer device, or other common network node, and typically include many or all of the elements described above relative to the computer. The logical connections include a local area network (LAN) and a wide area network (WAN) that are presented here by way of example and not limitation. Such networking environments are commonplace in office-wide or enterprise-wide computer networks, intranets and the Internet.
When used in a LAN networking environment, the computer is connected to the local network through a network interface or adapter. When used in a WAN networking environment, the computer may include a modem, a wireless link, or other means for establishing communications over the wide area network, such as the Internet. The modem, which may be internal or external, is connected to the system bus via the serial port interface. In a networked environment, program modules depicted relative to the computer, or portions thereof, may be stored in the remote memory storage device. It will be appreciated that the network connections shown are exemplary and other means of establishing communications over wide area network may be used.
Preferably, computer-executable instructions are stored in a memory, such as the hard disk drive, and executed by the computer. Advantageously, the computer processor has the capability to perform all operations (e.g., execute computer-executable instructions) in real-time.
The order of execution or performance of the operations in embodiments illustrated and described herein is not essential, unless otherwise specified. That is, the operations may be performed in any order, unless otherwise specified, and embodiments may include additional or fewer operations than those disclosed herein. For example, it is contemplated that executing or performing a particular operation before, contemporaneously with, or after another operation is within the scope of aspects of the disclosure.
Embodiments may be implemented with computer-executable instructions. The computer-executable instructions may be organized into one or more computer-executable components or modules. Aspects of the disclosure may be implemented with any number and organization of such components or modules. For example, aspects of the disclosure are not limited to the specific computer-executable instructions or the specific components or modules illustrated in the figures and described herein. Other embodiments may include different computer-executable instructions or components having more or less functionality than illustrated and described herein.
When introducing elements of aspects of the disclosure or the embodiments thereof, the articles “a”, “an”, “the” and “said” are intended to mean that there are one or more of the elements. The terms “comprising”, “including”, and “having” are intended to be inclusive and mean that there may be additional elements other than the listed elements.
Having described aspects of the disclosure in detail, it will be apparent that modifications and variations are possible without departing from the scope of aspects of the disclosure as defined in the appended claims. As various changes could be made in the above constructions, products, and methods without departing from the scope of aspects of the disclosure, it is intended that all matter contained in the above description and shown in the accompanying drawings shall be interpreted as illustrative and not in a limiting sense.
Number | Name | Date | Kind |
---|---|---|---|
20060235786 | DiSalvo | Oct 2006 | A1 |
20070067373 | Higgins | Mar 2007 | A1 |
20100082129 | McGreevy | Apr 2010 | A1 |
20110185362 | Webber | Jul 2011 | A1 |
20120023499 | Biran | Jan 2012 | A1 |
20130055276 | Park | Feb 2013 | A1 |
20160011911 | Rangaraju | Jan 2016 | A1 |
20160027037 | Cai | Jan 2016 | A1 |
Number | Date | Country | |
---|---|---|---|
20170310557 A1 | Oct 2017 | US |