CN115756636A - Process instance configuration method, device, electronic equipment, medium and program product - Google Patents

Process instance configuration method, device, electronic equipment, medium and program product Download PDF

Info

Publication number
CN115756636A
CN115756636A CN202211414450.6A CN202211414450A CN115756636A CN 115756636 A CN115756636 A CN 115756636A CN 202211414450 A CN202211414450 A CN 202211414450A CN 115756636 A CN115756636 A CN 115756636A
Authority
CN
China
Prior art keywords
instance
array
delay time
identifier
process instance
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.)
Pending
Application number
CN202211414450.6A
Other languages
Chinese (zh)
Inventor
甄玉磊
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
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
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202211414450.6A priority Critical patent/CN115756636A/en
Publication of CN115756636A publication Critical patent/CN115756636A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the disclosure discloses a process instance configuration method, a device, an electronic device, a medium and a program product. One embodiment of the method comprises: generating a delay time length set aiming at each process identification of each process instance corresponding to the target item, wherein each delay time length in the delay time length set is different; in response to determining that the array length of the stored process identification array is smaller than the number of the process instances included in each process instance, storing each process identification to the process identification array according to the delay time length set so as to update the process identification array; and for each process instance in each process instance, configuring the index information of the process instance according to the position of the process identifier of the process instance in the updated process identifier array. The embodiment relates to a computer process, can distinguish process instances under the condition of not setting an instance environment and dynamically generating a plurality of instances, and avoids mutual coverage among the plurality of process instances.

Description

Process instance configuration method, device, electronic equipment, medium and program product
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a process instance configuration method, apparatus, electronic device, medium, and program product.
Background
When a project is deployed at the service end, multiple instances may be generated, and multiple processes may be started to run the project. Process instances can now be distinguished by a configuration instance environment.
However, the inventors have found that when process instances are distinguished in the above manner, there are often technical problems as follows: the method for distinguishing the process instances by configuring the instance environments cannot distinguish the process instances under the condition that the instance environments are not set, and the process instances cannot be distinguished due to the fact that corresponding environment variables cannot be set when the multiple instances are dynamically generated, and mutual coverage among the multiple process instances is caused.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art in this country.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose process instance configuration methods, apparatuses, electronic devices, computer readable media and program products to solve one or more of the technical problems noted in the background section above.
In a first aspect, some embodiments of the present disclosure provide a process instance configuration method, including: generating a delay time length set aiming at each process identifier of each process instance corresponding to a target item, wherein the delay time length in the delay time length set corresponds to the process identifier in each process identifier, and the delay time lengths in the delay time length set are different; in response to determining that the array length of the stored process identifier array is smaller than the number of the process instances included in each process instance, storing each process identifier to the process identifier array according to the delay time length set so as to update the process identifier array; and for each process instance in the process instances, configuring the index information of the process instance according to the position of the process identifier of the process instance in the updated process identifier array.
Optionally, before generating the delay time length set for each process identifier of each process instance corresponding to the target item, the method further includes: and responding to the starting of the target item, and acquiring each process identifier of each process instance corresponding to the target item.
Optionally, the generating a delay duration set for each process identifier of each process instance corresponding to the target item includes: and generating a target number of random durations as a delay duration set within a preset delay duration range, wherein the target number is the number of process instances included in each process instance, and the target number of random durations are different.
Optionally, the configuring the index information of the process instance includes: acquiring target protocol address information; determining the sequence number of the position of the process identifier of the process instance in the updated process identifier array as a target sequence number; and configuring the index information of the process instance according to the target protocol address information and the target sequence number.
Optionally, before the above responding to the determination that the array length of the stored process identifier array is smaller than the number of process instances included in each of the process instances, and storing each of the process identifiers in the process identifier array according to the delay time length set, so as to update the process identifier array, the method further includes: and clearing the process identification array in response to detecting that the array length of the stored process identification array is equal to the number of the process instances included in each process instance.
Optionally, the method further comprises: and in response to detecting that the process identification array is changed and the process identification array is empty, reconfiguring the index information of each current process instance of the target item.
Optionally, the configuring, for each process instance in the process instances, the index information of the process instance according to the position of the process identifier of the process instance in the updated process identifier array includes: and responding to the delay time corresponding to the preset delay time length when the current time is, and configuring the index information of the process instance for each process instance in the process instances according to the position of the process identifier of the process instance in the updated process identifier array.
In a second aspect, some embodiments of the present disclosure provide a process instance configuration apparatus, the apparatus comprising: the generating unit is configured to generate a delay time length set aiming at each process identifier of each process instance corresponding to a target item, wherein the delay time lengths in the delay time length set correspond to the process identifiers in each process identifier, and the delay time lengths in the delay time length set are different; the storage unit is configured to respond to the fact that the array length of the stored process identification array is smaller than the number of the process instances included by each process instance, store each process identification to the process identification array according to the delay time length set, and update the process identification array; and the configuration unit is configured to configure the index information of the process instance according to the position of the process identifier of the process instance in the updated process identifier array for each process instance in the process instances.
Optionally, before the generating unit, the apparatus further comprises: and the acquisition unit is configured to respond to the starting of the target item and acquire the process identifications of the process instances corresponding to the target item.
Optionally, the generating unit is further configured to: and generating a target number of random durations as a delay duration set within a preset delay duration range, wherein the target number is the number of process instances included in each process instance, and the target number of random durations are different.
Optionally, the configuration unit is further configured to: acquiring target protocol address information; determining the sequence number of the position of the process identifier of the process instance in the updated process identifier array as a target sequence number; and configuring the index information of the process instance according to the target protocol address information and the target sequence number.
Optionally, before the storing unit, the apparatus further comprises: and the clearing unit is configured to clear the process identification array in response to detecting that the array length of the stored process identification array is equal to the number of the process instances included in each process instance.
Optionally, the apparatus further comprises: and the reconfiguration unit is configured to respond to the detection that the process identification array is changed and the process identification array is empty, and reconfigure the index information of each current process instance of the target item.
Optionally, the configuration unit is further configured to: and responding to the delay time corresponding to the preset delay time length when the current time is, and configuring the index information of the process instance for each process instance in the process instances according to the position of the process identifier of the process instance in the updated process identifier array.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device, on which one or more programs are stored, which when executed by one or more processors cause the one or more processors to implement the method described in any implementation of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
In a fifth aspect, some embodiments of the present disclosure provide a computer program product comprising a computer program that, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following beneficial effects: by the process instance configuration method of some embodiments of the disclosure, process instances can be distinguished under the condition that an instance environment is not set and a plurality of instances are dynamically generated, and mutual coverage among the plurality of process instances is avoided. Specifically, the reason for the mutual coverage among multiple process instances is that: the method for distinguishing the process instances by configuring the instance environments cannot distinguish the process instances under the condition that the instance environments are not set, and the process instances cannot be distinguished due to the fact that corresponding environment variables cannot be set when the multiple instances are dynamically generated, and mutual coverage among the multiple process instances is caused. Based on this, in the process instance configuration method according to some embodiments of the present disclosure, first, a delay time length set is generated for each process identifier of each process instance corresponding to the target item. And the delay time length in the delay time length set corresponds to the process identifier in each process identifier. Each of the delay time lengths in the set of delay time lengths is different. Thus, different delay durations may be generated for different process identifications. And then, in response to determining that the array length of the stored process identification array is smaller than the number of the process instances included in each process instance, storing each process identification to the process identification array according to the delay time length set so as to update the process identification array. Therefore, the process identifications of the process instances can be stored to the process identification array at different times. And finally, configuring the index information of the process instance according to the position of the process identifier of the process instance in the updated process identifier array for each process instance in the process instances. Therefore, the index of each process instance can be configured according to the unique position of each process identifier in the process identifier array. And because the instance environment is not configured, the process instance is distinguished under the condition that the instance environment is not set. And because the delay time lengths corresponding to different process identifications are different, each process identification can be stored in the process identification array at different time, so that the index information of the process instance can be configured according to the unique position of the process identification in the process identification array, each process instance can be distinguished according to the index information of each process instance, and the process instances are prevented from being covered with each other. Therefore, the process instances can be distinguished under the condition that the instance environment is not set and the multiple instances are dynamically generated, and the mutual coverage among the multiple process instances is avoided.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is an architectural diagram of an exemplary system in which some embodiments of the present disclosure may be applied;
FIG. 2 is a schematic diagram of one application scenario of a process instance configuration method, according to some embodiments of the present disclosure;
FIG. 3 is a flow diagram of some embodiments of a process instance configuration method according to the present disclosure;
FIG. 4 is a flow diagram of still other embodiments of a process instance configuration method according to the present disclosure;
FIG. 5 is a block diagram of some embodiments of a process instance configuration apparatus according to the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and the embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will appreciate that references to "one or more" are intended to be exemplary and not limiting unless the context clearly indicates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 of a process instance configuration method or process instance configuration apparatus to which some embodiments of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 is the medium used to provide communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 101, 102, 103 to interact with a server 105 over a network 104 to receive or send messages or the like. Various communication client applications, such as a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like, may be installed on the terminal devices 101, 102, and 103.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen and supporting information display, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for information displayed on the terminal devices 101, 102, 103. The background server can analyze and process the received data such as the request and feed back the processing result to the terminal equipment.
It should be noted that the process instance configuration method provided by the embodiment of the present disclosure is executed by the server 105. Accordingly, the process instance configuration means may be provided in the server 105.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules, for example, to provide distributed services, or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
Fig. 2 is a schematic diagram of an application scenario of the text generation method of some embodiments of the present disclosure.
In the application scenario of fig. 2, first, the computing device 201 may generate a delay time length set 205 for each process identifier 204 of each process instance 203 corresponding to the target item 202. Each Process identifier 204 can include (1500, 1470, 1300, 1320), wherein each Process identifier is a Process Identification (PID). The set of delay durations 205 may include (230, 145, 556, 732), where each delay duration may be in units of milliseconds. The delay durations in the delay duration set 205 correspond to the process identifiers 204. Specifically, the delay period 230 corresponds to the process identifier 1500, and the delay period 145 corresponds to the process identifier 1470. Delay duration 556 corresponds to process identification 1300. The delay duration 732 corresponds to the process identification 1320. The delay time lengths in the set of delay time lengths 205 are different. Then, in response to determining that the array length of the stored process identifier array 206 is smaller than the number of process instances included in each of the process instances 203, the computing device 201 may store each of the process identifiers 204 in the process identifier array 206 according to the delay time length set 205 to update the process identifier array 206. Finally, for each process instance in the process instances 202, the computing device 201 may configure the index information of the process instance according to the position of the process identifier of the process instance in the updated process identifier array 206. Specifically, the time for the computing device 201 to determine that the array length of the stored process identification array 206 is smaller than the number of process instances included in each of the process instances 203 may be T. After 145 milliseconds of T time, the computing device 201 may store the process identification 1470 to the process identification array 206. After 230 milliseconds of T time, the computing device 201 may store the process identification 1500 to the process identification array 206. After 556 milliseconds of T time, the computing device 201 may store the process identification 1300 to the process identification array 206. After 732 milliseconds of T time, computing device 201 may store process identification 1320 to process identification array 206. The updated process identification array 206 may be [1470, 1500, 1300, 1320]. Then the index information 207 of each configured process instance 203 can be (2, 1,3, 4), wherein each index information can represent the index number of the process instance. The index information for the process instance with process identification 1470 is 1. The index information for the process instance of process identification 1500 is 2. The index information for the process instance identified as 1300 is 3. The index information for the process instance identified by process number 1320 is 4.
The computing device 201 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster consisting of multiple servers, or as a single server. When the computing device is embodied as software, it may be installed in the hardware devices enumerated above. It may be implemented, for example, as multiple software or software modules for providing distributed services, or as a single software or software module. And is not particularly limited herein.
It should be understood that the number of computing devices in FIG. 2 is merely illustrative. There may be any number of computing devices, as implementation needs dictate.
With continued reference to FIG. 3, a flow 300 is shown in accordance with some embodiments of a process instance configuration method of the present disclosure. The process instance configuration method comprises the following steps:
step 301, generating a delay time length set for each process identifier of each process instance corresponding to the target item.
In some embodiments, an execution subject of the process instance configuration method (e.g., the server shown in fig. 1) may generate the delay duration set for each process identifier of each process instance corresponding to the target item. And the delay time length in the delay time length set corresponds to the process identifier in each process identifier. The corresponding relationship between the delay time length in the delay time length set and the process identifier in each process identifier is one-to-one correspondence. Each of the delay time lengths in the set of delay time lengths is different. The target item may be a current item. The above items may be understood as items of an application, which may include back-end items and/or front-end items. The process instance described above may be an instance for running through an allocated process. The process id in the process ids can be used to uniquely identify the process. For example, the Process Identification may be a Process Identification (PID). In practice, first, the execution main body may determine the number of process instances included in each process instance as the number of process instances. Then, the execution subject may generate, as the delay duration, a number of the process instances that is less than or equal to a preset duration threshold, to obtain a delay duration set. The preset duration threshold may be a preset duration threshold. The delay duration may be in units of milliseconds.
In some optional implementations of some embodiments, the execution subject may generate a target number of random durations as the set of delay durations within a preset range of delay durations. The target number may be the number of process instances included in each process instance. The target number of random durations may differ. The preset delay time period range may be a range for defining the size of the generated delay time period. For example, the preset delay time period range may be [100 msec, 1000 msec ]. Thus, each distinct delay time length within the preset delay time length range can be generated by setting the range.
Optionally, before step 301, the executing main body may further obtain, in response to determining that the target item is started, process identifiers of process instances corresponding to the target item. In practice, the execution subject may obtain each process identifier of each process instance by calling a process identifier obtaining method. The process identifier obtaining method may be a method that is preset and is used for obtaining the process identifier of each process instance. Therefore, the process identifications of the process instances can be automatically acquired when the project is started.
Optionally, before step 302, the executing agent may delete each process identifier in the process identifier array in response to detecting that the array length of the stored process identifier array is equal to the number of process instances included in each process instance. In practice, the execution subject may directly clear the process identification array. And deleting each process identifier in the process identifier array. It should be noted that when the array length of the process identifier array is equal to the number of the process instances, the process identifiers that characterize the process instances may have the process identifier array, and the restarted process instance exists in the current process instance. For the restarted process instance, the process identifier of the restarted process instance is also a redetermined identifier, and the process instances need to be distinguished again. Therefore, the process identification array is emptied, and can be used for storing new process identifications when the index information of each process instance is reconfigured again.
Step 302, in response to determining that the array length of the stored process identifier array is smaller than the number of the process instances included in each process instance, storing each process identifier into the process identifier array according to the delay time length set, so as to update the process identifier array.
In some embodiments, the execution subject may store, in response to determining that the array length of the stored process identifier array is smaller than the number of process instances included in each of the process instances, each of the process identifiers in the process identifier array according to the delay time length set, so as to update the process identifier array. The process identifier array may be an array for storing process identifiers of process instances. The process identification array may be stored in the target file. And when the process identification is not stored in the process identification array, the process identification array is a null array. The target file may be a file in the target project that may be used to store a process identification array. In practice, for each process id in the process ids, the executing entity may perform the following steps:
first, determining a delay time corresponding to the process identifier in the delay time set as a target delay time.
And step two, responding to the delay time corresponding to the target delay time length determined as the current time, and storing the process identification to a process identification array. The delay time may be a time after the target time by the target delay time length. The target time may be a time for determining that the array length of the stored process identification array is smaller than the number of process instances included in each process instance. Specifically, the process identifier may be stored in the process identifier array in a manner of sequentially adding elements to the end of the array.
Step 303, for each process instance in each process instance, configuring the index information of the process instance according to the position of the process identifier of the process instance in the updated process identifier array.
In some embodiments, for each process instance in the process instances, the execution main body may configure the index information of the process instance according to a position of the process identifier of the process instance in the updated process identifier array. The index information may be index-related information that can uniquely identify a process instance. In practice, first, the execution main body may determine a sequence number corresponding to a position of the process identifier of the process instance in the updated process identifier array. Then, the sequence number may be determined as the index information of the process instance, so as to configure the index information of the process instance.
In some optional implementation manners of some embodiments, the execution main body may configure, in response to a delay time corresponding to a preset delay duration when the current time is, for each process instance, the index information of the process instance according to a position of the process identifier of the process instance in the updated process identifier array. The preset delay time may be a preset time. The preset delay time may be greater than a maximum delay time in the delay time set. The preset delay time may be greater than an upper limit of the preset delay time range. The delay time corresponding to the preset delay time may be the time of the preset delay time after each process identifier is stored in the process identifier array. For example, the time after each process id is stored in the process id array is T1. The preset delay time period may be 1 second. The delay time corresponding to the preset delay time may be 1 second after T1. Therefore, the index information of each process instance can be configured after the preset delay time, so that each process identifier is stored in the process identifier array.
Optionally, the execution main body may further reconfigure index information of each current process instance of the target item in response to detecting that the process identifier array changes and that the process identifier array is empty. In practice, the execution subject may monitor a target file storing the process identification array to detect a change in the process identification array. In practice, the executing agent may re-execute steps 301 to 303 according to the current process instances and the process identifiers of the process instances. Therefore, the index information of each process instance can be automatically reconfigured after the process identification array is emptied, namely, after the process instance is restarted.
The above embodiments of the present disclosure have the following advantages: by the process instance configuration method of some embodiments of the disclosure, process instances can be distinguished under the condition that an instance environment is not set and a plurality of instances are dynamically generated, and mutual coverage among the plurality of process instances is avoided. Specifically, the reason for the mutual coverage among multiple process instances is that: the method for distinguishing the process instances by configuring the instance environments cannot distinguish the process instances under the condition that the instance environments are not set, and the process instances cannot be distinguished due to the fact that corresponding environment variables cannot be set when the multiple instances are dynamically generated, and mutual coverage among the multiple process instances is caused. Based on this, in the process instance configuration method according to some embodiments of the present disclosure, first, a delay time length set is generated for each process identifier of each process instance corresponding to the target item. And the delay time length in the delay time length set corresponds to the process identifier in each process identifier. The respective delay periods in the set of delay periods are different. Thus, different delay durations may be generated for different process identifications. And then, in response to determining that the array length of the stored process identification array is smaller than the number of the process instances included in each process instance, storing each process identification to the process identification array according to the delay time length set so as to update the process identification array. Therefore, the process identifications of the process instances can be stored to the process identification array at different times. And finally, configuring the index information of the process instance according to the position of the process identifier of the process instance in the updated process identifier array for each process instance in the process instances. Therefore, the index of each process instance can be configured according to the unique position of each process identifier in the process identifier array. And because the instance environment is not configured, the process instance is distinguished under the condition that the instance environment is not set. And because the delay time lengths corresponding to different process identifications are different, each process identification can be stored in the process identification array at different time, so that the index information of the process instance can be configured according to the unique position of the process identification in the process identification array, each process instance can be distinguished according to the index information of each process instance, and the process instances are prevented from being covered with each other. Therefore, the process instances can be distinguished under the condition that the instance environment is not set and the multiple instances are dynamically generated, and the mutual coverage among the multiple process instances is avoided.
With further reference to FIG. 4, a flow 400 of further embodiments of a process instance configuration method is illustrated. The process 400 of the process instance configuration method includes the following steps:
step 401, generating a delay duration set for each process identifier of each process instance corresponding to the target item.
Step 402, in response to determining that the array length of the stored process identifier array is smaller than the number of process instances included in each process instance, storing each process identifier to the process identifier array according to the delay time length set, so as to update the process identifier array.
In some embodiments, the specific implementation and technical effects of steps 401 to 402 may refer to steps 301 to 302 in those embodiments corresponding to fig. 3, and are not described herein again.
Step 403, acquiring the address information of the target protocol.
In some embodiments, the executing agent of the process instance configuration method (e.g., the server shown in FIG. 1) may obtain the target protocol address information. The target protocol address information may be protocol address information of the execution subject. For example, the destination protocol address information may be an IP address.
Step 404, determine the sequence number of the position of the process identifier of the process instance in the updated process identifier array as the target sequence number.
In some embodiments, the execution subject may determine, as the target sequence number, a sequence number of a position of the process identifier of the process instance in the updated process identifier array. The sequence numbers may characterize the order in which the positions are arranged.
Step 405, according to the target protocol address information and the target sequence number, configuring the index information of the process instance.
In some embodiments, the execution body may configure the index information of the process instance according to the target protocol address information and the target sequence number. In practice, the execution body may combine the target protocol address information and the target sequence number into index information. Here, the manner of combination may be concatenation.
As can be seen from fig. 4, compared with the description of some embodiments corresponding to fig. 3, the process 400 of the process instance configuration method in some embodiments corresponding to fig. 4 embodies extended steps of configuring the index information of the process instance according to the target protocol address information. Therefore, the solutions described in the embodiments can implement the differentiation of process instances between different devices through the protocol address information of each device and the process identifier of each process instance, so as to avoid that all process instances run on one device.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a process instance configuration apparatus, which correspond to those of the method embodiments shown in fig. 3, and which may be applied in various electronic devices.
As shown in fig. 5, the process instance configuration apparatus 500 of some embodiments comprises: a generation unit 501, a storage unit 502 and a configuration unit 503. The generating unit 501 is configured to generate a delay time length set for each process identifier of each process instance corresponding to the target item, where the delay time lengths in the delay time length set correspond to the process identifiers in the process identifiers, and the delay time lengths in the delay time length set are different; the storage unit 502 is configured to, in response to determining that the array length of the stored process identifier array is smaller than the number of process instances included in each process instance, store each process identifier into the process identifier array according to the delay time length set to update the process identifier array; the configuration unit 503 is configured to configure, for each process instance in the process instances, index information of the process instance according to a position of the process identifier of the process instance in the updated process identifier array.
Optionally, before the generating unit 501, the process instance configuring apparatus 500 may further include: and an acquiring unit (not shown in the figure) configured to acquire, in response to determining that the target item is started, respective process identifications of respective process instances corresponding to the target item.
Optionally, the generating unit 501 may be further configured to: and generating a target number of random durations as a delay duration set within a preset delay duration range, wherein the target number is the number of process instances included in each process instance, and the target number of random durations are different.
Optionally, the configuration unit 503 may be further configured to: acquiring target protocol address information; determining the sequence number of the position of the process identifier of the process instance in the updated process identifier array as a target sequence number; and configuring the index information of the process instance according to the target protocol address information and the target sequence number.
Optionally, before the storage unit 502, the process instance configuration apparatus 500 may further include: and the clearing unit (not shown in the figure) is configured to clear the process identification array in response to detecting that the array length of the stored process identification array is equal to the number of the process instances included in each process instance.
Optionally, the process instance configuring apparatus 500 may further include: and a reconfiguration unit (not shown in the figure) configured to, in response to detecting that the process identification array changes and the process identification array is empty, reconfigure the index information of each current process instance of the target item.
Optionally, the configuration unit 503 may be further configured to: and responding to the delay time corresponding to the preset delay time length when the current time is, and configuring the index information of the process instance for each process instance in the process instances according to the position of the process identifier of the process instance in the updated process identifier array.
It will be understood that the units described in the apparatus 500 correspond to the various steps in the method described with reference to fig. 3. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
Referring now to fig. 6, shown is a schematic block diagram of an electronic device 600 (e.g., a server in fig. 1) suitable for use in implementing some embodiments of the present disclosure. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 may include a processing means 601 (e.g., a central processing unit, a graphics processor, etc.) that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: generating a delay time length set aiming at each process identifier of each process instance corresponding to a target item, wherein the delay time length in the delay time length set corresponds to the process identifier in each process identifier, and the delay time lengths in the delay time length set are different; in response to determining that the array length of the stored process identifier array is smaller than the number of the process instances included in each process instance, storing each process identifier to the process identifier array according to the delay time length set so as to update the process identifier array; and for each process instance in the process instances, configuring the index information of the process instance according to the position of the process identifier of the process instance in the updated process identifier array.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, which may be described as: a processor includes a generation unit, a storage unit, and a configuration unit. The names of these units do not form a limitation on the unit itself in some cases, for example, the generating unit may also be described as a "unit that generates a set of delay durations for each process identifier of each process instance corresponding to the target item".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), complex Programmable Logic Devices (CPLDs), and the like.
Some embodiments of the present disclosure also provide a computer program product comprising a computer program that, when executed by a processor, implements any of the process instance configuration methods described above.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combinations of the above-mentioned features, and other embodiments in which the above-mentioned features or their equivalents are combined arbitrarily without departing from the spirit of the invention are also encompassed. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (11)

1. A process instance configuration method, comprising:
generating a delay time length set aiming at each process identification of each process instance corresponding to a target item, wherein the delay time lengths in the delay time length set correspond to the process identifications in each process identification, and the delay time lengths in the delay time length set are different;
in response to determining that the array length of the stored process identification array is smaller than the number of the process instances included in each process instance, storing each process identification to the process identification array according to the delay time length set so as to update the process identification array;
and for each process instance in each process instance, configuring the index information of the process instance according to the position of the process identifier of the process instance in the updated process identifier array.
2. The method of claim 1, wherein before generating the set of delay durations for the respective process identifications of the respective process instances corresponding to the target item, the method further comprises:
and responding to the starting of the target project, and acquiring process identifications of process instances corresponding to the target project.
3. The method of claim 1, wherein generating a set of delay durations for each process identifier of each process instance corresponding to a target item comprises:
generating a target number of random durations as a delay duration set within a preset delay duration range, wherein the target number is the number of process instances included in each process instance, and the target number of random durations are different.
4. The method of claim 1, wherein the configuring the index information of the process instance comprises:
acquiring target protocol address information;
determining the sequence number of the position of the process identifier of the process instance in the updated process identifier array as a target sequence number;
and configuring the index information of the process instance according to the target protocol address information and the target sequence number.
5. The method of claim 1, wherein prior to said storing each process identification to a process identification array for updating the process identification array in accordance with the set of delay durations in response to determining that an array length of the stored process identification array is less than a number of process instances included by the each process instance, the method further comprises:
and clearing the process identification array in response to detecting that the array length of the stored process identification array is equal to the number of process instances included in each process instance.
6. The method of claim 5, wherein the method further comprises:
and in response to detecting that the process identification array is changed and the process identification array is empty, reconfiguring the index information of each current process instance of the target item.
7. The method according to one of claims 1 to 6, wherein the configuring, for each of the process instances, the index information of the process instance according to the position of the process identifier of the process instance in the updated process identifier array comprises:
and responding to the delay time corresponding to the preset delay time as the current time, and configuring the index information of the process instance for each process instance in the process instances according to the position of the process identifier of the process instance in the updated process identifier array.
8. A process instance configuration apparatus, comprising:
a generating unit, configured to generate a delay duration set for each process identifier of each process instance corresponding to a target item, where delay durations in the delay duration set correspond to process identifiers in the process identifiers, and the delay durations in the delay duration set are different;
the storage unit is configured to respond to the fact that the array length of the stored process identification array is smaller than the number of the process instances included by each process instance, store each process identification to the process identification array according to the delay time length set, and update the process identification array;
and the configuration unit is configured to configure the index information of the process instance according to the position of the process identifier of the process instance in the updated process identifier array for each process instance in the process instances.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
11. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
CN202211414450.6A 2022-11-11 2022-11-11 Process instance configuration method, device, electronic equipment, medium and program product Pending CN115756636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211414450.6A CN115756636A (en) 2022-11-11 2022-11-11 Process instance configuration method, device, electronic equipment, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211414450.6A CN115756636A (en) 2022-11-11 2022-11-11 Process instance configuration method, device, electronic equipment, medium and program product

Publications (1)

Publication Number Publication Date
CN115756636A true CN115756636A (en) 2023-03-07

Family

ID=85369787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211414450.6A Pending CN115756636A (en) 2022-11-11 2022-11-11 Process instance configuration method, device, electronic equipment, medium and program product

Country Status (1)

Country Link
CN (1) CN115756636A (en)

Similar Documents

Publication Publication Date Title
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN111679990B (en) Test data generation method and device, readable medium and electronic equipment
US20210200806A1 (en) Method and apparatus for parallel processing of information
CN112416632B (en) Event communication method and device, electronic equipment and computer readable medium
CN113722055A (en) Data processing method and device, electronic equipment and computer readable medium
CN111857720A (en) Method and device for generating user interface state information, electronic equipment and medium
CN108764866B (en) Method and equipment for allocating resources and drawing resources
CN111324470B (en) Method and device for generating information
CN112732302A (en) Configuration updating method and device of application program and electronic equipment
CN112256372A (en) Information processing method and device and electronic equipment
CN113535371A (en) Method and device for multithreading asynchronous loading of resources
CN112507676B (en) Method and device for generating energy report, electronic equipment and computer readable medium
CN115756636A (en) Process instance configuration method, device, electronic equipment, medium and program product
CN114398035A (en) Method, apparatus, device and computer readable medium for providing service using component
CN114785770A (en) Mirror layer file sending method and device, electronic equipment and computer readable medium
CN114035861A (en) Cluster configuration method and device, electronic equipment and computer readable medium
CN113553206A (en) Data event execution method and device, electronic equipment and computer readable medium
CN113127550A (en) Information processing method, information processing device, electronic equipment and storage medium
CN111314457B (en) Method and device for setting virtual private cloud
CN113472565B (en) Method, apparatus, device and computer readable medium for expanding server function
CN110633324B (en) Method, apparatus, electronic device and computer readable medium for synchronizing data
CN112311833B (en) Data updating method and device
CN114697206B (en) Method, device, equipment and computer readable medium for managing nodes of Internet of things
CN113765694A (en) Log information display method and device, electronic equipment and computer readable medium
CN114398437A (en) User information processing method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination