CN110347494B - Context information management method, device, system and computer readable storage medium - Google Patents

Context information management method, device, system and computer readable storage medium Download PDF

Info

Publication number
CN110347494B
CN110347494B CN201910644413.6A CN201910644413A CN110347494B CN 110347494 B CN110347494 B CN 110347494B CN 201910644413 A CN201910644413 A CN 201910644413A CN 110347494 B CN110347494 B CN 110347494B
Authority
CN
China
Prior art keywords
information
context information
context
target
modification
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.)
Active
Application number
CN201910644413.6A
Other languages
Chinese (zh)
Other versions
CN110347494A (en
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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910644413.6A priority Critical patent/CN110347494B/en
Publication of CN110347494A publication Critical patent/CN110347494A/en
Priority to PCT/CN2020/102320 priority patent/WO2021008576A1/en
Application granted granted Critical
Publication of CN110347494B publication Critical patent/CN110347494B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • G06F9/522Barrier synchronisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of financial science and technology, and discloses a method, a device and a system for managing contextual information and a computer readable storage medium. The method is applied to a context information management system, the system comprises a context information management end and a plurality of task execution ends, the task execution ends comprise a first task execution end and a second task execution end, and the method comprises the following steps: when receiving a context information modification instruction sent by a first task execution end, a context information management end acquires target context modification information and modifies corresponding first target context information in a preset database according to the target context modification information; and when a first target context information acquisition request sent by the second task execution end is received, acquiring the modified first target context information, and returning to the second task execution end. The method and the device can solve the problem that the context information cannot be shared across task execution nodes in the prior art.

Description

Context information management method, device, system and computer readable storage medium
Technical Field
The present invention relates to the field of financial technology (Fintech), and in particular, to a method, apparatus, system and computer readable storage medium for managing contextual information.
Background
With the development of computer technology, more and more technologies (big data, distributed, blockchain, artificial intelligence, etc.) are applied in the financial field, and the traditional financial industry is gradually changing to the financial technology (Fintech), but due to the requirements of security and real-time performance of the financial industry, higher requirements are also put forward on the technologies.
In the technical field of big data of financial science and technology, complicated business data processing scenes, in particular to offline batch calculation and report processing processes, complicated dependency relations in a data processing flow are not solved. In order to solve the problem of dependency relationship among multiple tasks, a distributed visualization workflow task scheduling system is generally used at present, for example, oozie (a task scheduling framework), azkaban (a batch workflow task scheduler with a source being opened by Linkedin), airflow (a programmable, scheduled and monitored workflow platform), and the like, and each task is associated according to the dependency relationship among the tasks in a DAG (Directed Acyclic Graph ) manner, so as to perform distributed scheduling execution.
However, these task scheduling systems focus on solving the problems of execution dependency, concurrent execution, timing execution, and the like, and cannot uniformly manage context information (including user parameters, user variables, and the like). Specifically, because the workflow nodes are in distributed execution, global variable setting is not supported in one workflow, so that variable parameters cannot be transferred across the execution nodes to realize sharing of context information. Therefore, the prior art has the problem that the context information cannot be shared across task execution nodes.
Disclosure of Invention
The invention mainly aims to provide a method, a device, a system and a computer readable storage medium for managing context information, which aim to solve the problem that the context information cannot be shared across task execution nodes in the prior art.
In order to achieve the above object, the present invention provides a context information management method applied to a context information management system, the context information management system including a context information management end and a plurality of task execution ends, the task execution ends including a first task execution end and a second task execution end, the context information management method including:
when receiving a context information modification instruction sent by the first task execution end, the context information management end obtains target context modification information according to the context information modification instruction, and modifies corresponding first target context information in a preset database according to the target context modification information;
when a first target context information acquisition request sent by the second task execution end is received, acquiring modified first target context information from the preset database according to the first target context information acquisition request, and returning to the second task execution end.
Optionally, before the step of obtaining the target context modification information according to the context modification instruction and modifying the corresponding first target context information in the preset database according to the target context modification information, the method further includes:
detecting whether a modification operation corresponding to the first target context information exists currently;
if the modification operation corresponding to the first target context information exists currently, locking the modification operation, and releasing the lock of the modification operation after the locking is completed, so as to obtain the modified first target context information;
acquiring target context modification information according to the context information modification instruction, and modifying the modified first target context information according to the target context modification information;
if there is no modification operation corresponding to the first target context information, executing the steps of: and acquiring target context modification information according to the context information modification instruction, and modifying corresponding first target context information in a preset database according to the target context modification information.
Optionally, the context information management further includes:
when receiving a context information setting request triggered by a user, displaying a corresponding context information setting interface according to the context information setting request;
receiving a context information setting instruction triggered by a user based on the context information setting interface, acquiring target context setting information according to the context information setting instruction, setting and storing corresponding second target context information in a preset database according to the target context setting information.
Optionally, the method for managing context information further includes:
when a context information acquisition request sent by the task execution end is received, acquiring execution node information and target context acquisition information carried in the context information acquisition request;
detecting whether the target context acquisition information has a corresponding priority;
if the target context acquisition information has the corresponding priority, acquiring corresponding third target context information from the preset database according to the execution node information, the target acquisition context information type and a preset priority matching rule, and returning to the task execution end;
And if the target context acquisition information does not have the corresponding priority, acquiring corresponding fourth target context information from the preset database according to the execution node information and the target acquisition context information type, and returning to the task execution end.
Optionally, the first target context information includes user variable information, and the second target context information includes one or more of user variable information, user parameter information, component configuration parameter information, and user resource file information.
In addition, in order to achieve the above object, the present invention also provides a context information management apparatus comprising:
the first modification module is used for acquiring target context modification information according to the context information modification instruction when the context information management end receives the context information modification instruction sent by the first task execution end, and modifying corresponding first target context information in a preset database according to the target context modification information;
the first acquisition module is used for acquiring modified first target context information from the preset database according to the first target context information acquisition request when the first target context information acquisition request sent by the second task execution end is received, and returning the modified first target context information to the second task execution end.
Optionally, the context information management device further includes:
the first detection module is used for detecting whether a modification operation corresponding to the first target context information exists currently;
the locking processing module is used for carrying out locking processing on the modification operation if the modification operation corresponding to the first target context information exists currently, and carrying out lock release processing on the modification operation after the locking processing after the modification operation is completed to obtain modified first target context information;
the second modification module is used for acquiring target context modification information according to the context information modification instruction and modifying the modified first target context information according to the target context modification information;
the first modification module is specifically configured to obtain, if there is no modification operation corresponding to the first target context information currently, target context modification information according to the context information modification instruction, and modify, according to the target context modification information, the first target context information corresponding to the first target context information in a preset database.
Optionally, the context information management device further includes:
The interface display module is used for displaying a corresponding context information setting interface according to the context information setting request when receiving the context information setting request triggered by a user;
the information setting module is used for receiving a context information setting instruction triggered by a user based on the context information setting interface, acquiring target context setting information according to the context information setting instruction, setting and storing corresponding second target context information in a preset database according to the target context setting information.
In addition, in order to achieve the above object, the present invention also provides a context information management system, which includes a context information management end and a plurality of task execution ends, and further includes a memory, a processor, and a context information management program stored on the memory and executable on the processor, wherein the context information management program when executed by the processor implements the steps of the context information management method as described above.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a context information management program which, when executed by a processor, implements the steps of the context information management method as described above.
The invention provides a method, a device, a system and a computer readable storage medium for managing context information, wherein the method is applied to a context information management system, the system comprises a context information management end and a plurality of task execution ends, the task execution ends comprise a first task execution end and a second task execution end, and the method comprises the following steps: when receiving a context information modification instruction sent by a first task execution end, a context information management end acquires target context modification information according to the context information modification instruction, and modifies corresponding first target context information in a preset database according to the target context modification information; and when receiving a first target context information acquisition request sent by the second task execution end, acquiring modified first target context information from a preset database according to the first target context information acquisition request, and returning to the second task execution end. Through the method, the context information management system is constructed, the context information management end in the system receives the modification of the global variable by the first task execution end, and when the second task execution end requests to acquire the global variable, the modified global variable is returned to the second task execution end, so that the setting of the global variable can be supported, the variable parameters are transmitted across the execution nodes, and the sharing of the context information is realized. Meanwhile, the invention can realize unified management of the context information.
Drawings
FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a context information management method according to the present invention;
fig. 3 is a schematic functional block diagram of a first embodiment of a context information management device according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention.
The terminal in the embodiment of the invention is a context information management terminal, and can be a smart phone, a PC (Personal Computer ), a tablet personal computer, a portable computer and other terminal equipment.
As shown in fig. 1, the context information management end may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., wi-Fi interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the context information management side structure shown in FIG. 1 is not limiting of the context information management side and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a context information management program may be included in a memory 1005, which is one type of computer storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client and communicating data with the client; and the processor 1001 may be configured to call a context information management program stored in the memory 1005 and perform the following operations:
when receiving a context information modification instruction sent by the first task execution end, the context information management end obtains target context modification information according to the context information modification instruction, and modifies corresponding first target context information in a preset database according to the target context modification information;
when a first target context information acquisition request sent by the second task execution end is received, acquiring modified first target context information from the preset database according to the first target context information acquisition request, and returning to the second task execution end.
Further, the processor 1001 may call a context information management program stored in the memory 1005, and further perform the following operations:
detecting whether a modification operation corresponding to the first target context information exists currently;
if the modification operation corresponding to the first target context information exists currently, locking the modification operation, and releasing the lock of the modification operation after the locking is completed, so as to obtain the modified first target context information;
acquiring target context modification information according to the context information modification instruction, and modifying the modified first target context information according to the target context modification information;
and if no modification operation corresponding to the first target context information exists currently, acquiring target context modification information according to the context information modification instruction, and modifying the corresponding first target context information in a preset database according to the target context modification information.
Further, the processor 1001 may call a context information management program stored in the memory 1005, and further perform the following operations:
When receiving a context information setting request triggered by a user, displaying a corresponding context information setting interface according to the context information setting request;
receiving a context information setting instruction triggered by a user based on the context information setting interface, acquiring target context setting information according to the context information setting instruction, setting and storing corresponding second target context information in a preset database according to the target context setting information.
Further, the processor 1001 may call a context information management program stored in the memory 1005, and further perform the following operations:
when a context information acquisition request sent by the task execution end is received, acquiring execution node information and target context acquisition information carried in the context information acquisition request;
detecting whether the target context acquisition information has a corresponding priority;
if the target context acquisition information has the corresponding priority, acquiring corresponding third target context information from the preset database according to the execution node information, the target acquisition context information type and a preset priority matching rule, and returning to the task execution end;
And if the target context acquisition information does not have the corresponding priority, acquiring corresponding fourth target context information from the preset database according to the execution node information and the target acquisition context information type, and returning to the task execution end.
Further, the first target context information includes user variable information, and the second target context information includes one or more of user variable information, user parameter information, component configuration parameter information, and user resource file information.
Based on the above hardware structure, various embodiments of the context information management method of the present invention are presented.
The invention provides a context information management method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a context information management method according to the present invention.
In this embodiment, the context information management method is applied to a context information management system, where the context information management system includes a context information management end and a plurality of task execution ends, where the task execution ends include a first task execution end and a second task execution end, and the context information management method includes:
step S10, when receiving a context information modification instruction sent by the first task execution end, the context information management end obtains target context modification information according to the context information modification instruction, and modifies corresponding first target context information in a preset database according to the target context modification information;
In this embodiment, the context information management method is applied to a context information management system, where the context information management system includes a context information management end and a plurality of task execution ends, where the task execution ends include a first task execution end and a second task execution end, where the task execution end is a terminal corresponding to a task execution node in a workflow, the first task execution end refers to a terminal that initiates a context information modification instruction in the task execution end, and the second task execution end refers to other task execution ends in the task execution end except the first task execution end, where it can be understood that the first task execution end and the second task execution end are opposite and not fixed. The Context information management method of the present embodiment is implemented by a Context information management end, where a Context Server (Context service) is installed in the Context information management end, and the Context information management end is mutually connected with each task execution node (task execution end) through the Context Server. The Context Server is a component service, and consists of user variables, user parameters (system parameters, time parameters, custom parameters and the like), component configuration parameters and user resource files, provides a unified and standardized Context environment for users, provides standard client access, provides a unified management interface for maintenance, and can complete variable replacement, global variable setting, component configuration parameter setting and resource file downloading by only calling the interface without paying attention to specific implementation details in the service. When the method is applied to the scene of the distributed workflow, each task execution end can acquire Context information (comprising user variables, user parameters, component configuration parameters and user resource files) through the Context Server, and global variables can be modified through the task execution end. It should be noted that the Context Server may also be applicable to other business scenarios, such as IDE (Integrated Development Environment ), visual analysis, machine learning, etc. In addition, the context information management end can be further provided with a task scheduling management system, and the task scheduling management system is used for generating a corresponding DAG graph according to the task scheduling request when receiving the task scheduling request, and performing distributed task scheduling and distribution according to the dependence relationship of the DAG.
In this embodiment, after each task execution node receives the task that is distributed upside down, the task execution end may replace variables and parameters used in the node task, and download resource files required for node operation to the process workspace directory, so as to execute the task. Of course, in the task execution process, the global variable can be modified and returned to the Context Server in the Context information management end for management, and the Context information management end can provide access for other task execution ends. Specifically, when receiving a context information modification instruction sent by a first task execution end, the context information management end obtains target context modification information according to the context information modification instruction, and modifies corresponding first target context information in a preset database according to the target context modification information. The target context modification information comprises a variable type and a target modification value, and when the target context modification information is modified, the first target context information is determined according to the variable type, and then data corresponding to the first target context information in a preset database is modified into the target modification value. In addition, since the task execution end can only modify the global variable, the corresponding first target context information includes user variable information, that is, the type of the first target context information corresponds to the user variable.
Step S20, when a first target context information acquisition request sent by the second task execution end is received, acquiring modified first target context information from the preset database according to the first target context information acquisition request, and returning to the second task execution end.
When executing a task, the other task execution node first pulls the required Context information from the Context Server in the Context information management end, and at this time, triggers a corresponding Context information acquisition request, in this embodiment, a global variable modification scenario is aimed at, so the Context information acquisition request sent by the second task execution end is taken as a first target Context information acquisition request for illustration. Specifically, when receiving a first target context information acquisition request sent by a second task execution end, the context information management end acquires modified first target context information from a preset database according to the first target context information acquisition request, and returns the modified first target context information to the second task execution end.
It should be noted that, in this embodiment, the global variable is modified, which is applicable to the case where no priority is set. In a specific embodiment, if the context server provides priority setting for the user variable and the user parameter, when receiving a first target context information acquisition request sent by the second task execution end, first execution node information carried in the first target context information acquisition request needs to be acquired first, and then whether an application/service level variable and a component service level variable exist or not is matched first according to the first execution node information, the first target context information and a preset priority matching rule, if not, modified first target context information is acquired from a preset database, and the second task execution end is returned. If the matching result exists, corresponding return is carried out according to the matching result. The specific implementation is similar to the third embodiment described below, and reference may be made to the third embodiment described below, which is not repeated here.
The embodiment of the invention provides a context information management method, which is applied to a context information management system, wherein the system comprises a context information management end and a plurality of task execution ends, the task execution ends comprise a first task execution end and a second task execution end, and the method comprises the following steps: when receiving a context information modification instruction sent by a first task execution end, a context information management end acquires target context modification information according to the context information modification instruction, and modifies corresponding first target context information in a preset database according to the target context modification information; and when receiving a first target context information acquisition request sent by the second task execution end, acquiring modified first target context information from a preset database according to the first target context information acquisition request, and returning to the second task execution end. By the method, the context information management system is constructed in the embodiment of the invention, the context information management end in the context information management system receives the modification of the global variable by the first task execution end, and when the second task execution end requests to acquire the global variable, the modified global variable is returned to the second task execution end, so that the global variable setting can be supported, the variable parameter is transmitted across the execution nodes, and the sharing of the context information is realized. Meanwhile, the invention can realize unified management of the context information.
Further, based on the first embodiment shown in fig. 2, a second embodiment of the context information management method of the present invention is proposed.
In this embodiment, before the step of "obtaining the target context modification information according to the context modification instruction and modifying the corresponding first target context information in the preset database according to the target context modification information", the context information management method further includes:
step A, detecting whether a modification operation corresponding to the first target context information exists currently;
in this embodiment, in order to avoid that when several task execution ends modify the same context information at the same time, there may be a case where modification operations are performed on current values corresponding to the context information at the same time, which results in inconsistent modified context information. For example, if the current value of the context information is 5, if one task execution end is to perform +1 operation and the other task execution end is to perform +2 operation, the values obtained after modification by the two task execution ends are 6 and 7 respectively. At this time, a lock mechanism can be adopted to lock the modification operation, and after the modification operation is completed, the lock is released, so that the occurrence of the above situation can be avoided, and the consistency in the distributed execution process is ensured. Specifically, when receiving the context information modification instruction sent by the first task execution end, it may be detected whether there is a modification operation corresponding to the first target context information at present, that is, whether there is a modification operation for modifying the same global variable.
If there is currently a modification operation corresponding to the first target context information, executing step B: locking the modification operation, and releasing the lock of the modification operation after the modification operation is completed to obtain modified first target context information;
step C, acquiring target context modification information according to the context information modification instruction, and modifying the modified first target context information according to the target context modification information;
if there is a modification operation corresponding to the first target context information currently, locking the modification operation first, after locking, the modification operation corresponding to the context information modification instruction can be avoided being executed simultaneously, that is, simultaneous modification can be avoided, and then after the modification operation is completed, locking release processing is performed on the modification operation after locking, so as to obtain modified first target context information. At this time, the target context modification information may be obtained according to the context modification instruction, and the modified first target context information may be modified according to the target context modification information. For example, in the above example, if the current value of the first target context information is 5, at this time, a modification operation of +1 is being executed, and the first task execution end sends a modification instruction of +2, at this time, the modification operation of +1 is subjected to locking processing, and then the lock is released after the modification is completed, at this time, the modified value is 6, and further, at the time of executing the modification operation of +2, the modified value is 8. The methods of locking and releasing are consistent with those of the prior art, and will not be described herein.
If there is no modification operation corresponding to the first target context information, executing the steps of: and acquiring target context modification information according to the context information modification instruction, and modifying corresponding first target context information in a preset database according to the target context modification information.
If there is no modification operation corresponding to the first target context information, the target context modification information is directly obtained according to the context information modification instruction without using a lock mechanism, and the corresponding first target context information in the preset database is modified according to the target context modification information, so that the subsequent steps are further continuously executed, and the specific execution process can refer to the first embodiment and is not described herein.
In the prior art, the context information needs to be repeatedly set in many places, for example, after a certain workflow is set, other workflows and other system components need to be set, and unified control management is lacking. The problem that the context information cannot be uniformly managed in the prior art exists. In particular, in a management platform of a financial institution such as a bank, the context information cannot be uniformly managed. In this regard, based on the above-described first and second embodiments, a third embodiment of the context information management method of the present invention is proposed.
In this embodiment, the context information management method further includes:
step D, when a context information setting request triggered by a user is received, displaying a corresponding context information setting interface according to the context information setting request;
in this embodiment, the context information management end implements unified control management on the context information through the context server, and may provide a corresponding context information setting interface, so that a user may set user variables, user parameters, component configuration parameters, and user resource files in a unified manner. Specifically, a user may select a context information setting option through corresponding software or App (Application) of the context information management end, so as to trigger a context information setting request, at this time, when the context information management end receives the context information setting request triggered by the user, the context information management end displays a corresponding context information setting interface according to the context information setting request, where the context information setting interface includes several option modules of a user variable, a user parameter, a component configuration parameter and a user resource file, the user may select any module to set, and each module is further set with multiple parameters, each parameter also corresponds to a use range, a replacement priority, a personalized setting, a different language replacement, and the like.
And E, receiving a context information setting instruction triggered by a user based on the context information setting interface, acquiring target context setting information according to the context information setting instruction, setting and storing corresponding second target context information in a preset database according to the target context setting information.
The context information management end receives a context information setting instruction triggered by a user based on the context information setting interface, acquires target context setting information according to the context information setting instruction, and sets and stores corresponding second target context information in a preset database according to the target context setting information. Since the context information setting interface provides settings for one or more of user variables, user parameters, component configuration parameters, and user resource files, the corresponding second target context information may include one or more of user variable information, user parameter information, component configuration parameter information, and user resource file information.
In this embodiment, the context information management end provides the context information setting interface through the context server, so that the user can set the user variable, the user parameter, the component configuration parameter and the user resource file uniformly, and the task execution end can obtain the required context information through the context server uniformly when executing the task, so that the invention can realize unified and centralized management of the context information, so that the context information of financial institutions such as banks can be managed centrally and uniformly, and the development efficiency of various services (such as loan service, deposit service and financial product development service) of the financial institutions such as banks is improved.
Further, after step E, the context information management method further includes:
step F, when receiving a context information acquisition request sent by the task execution end, acquiring execution node information and target context acquisition information carried in the context information acquisition request;
in this embodiment, since context server is more personalized and refined in management of context information, priority setting is provided for user variables and user parameters, where priority includes user level, component service level, application/service level, user variable management inside context server, user parameter management may include own global variable (corresponding to user level), component service variable (corresponding to component service level), and application/service level variable (corresponding to application/service level), and corresponding, when receiving a context information acquisition request, information about which level variable needs to be considered to be returned. Specifically, when a context information acquisition request sent by a task execution end is received, execution node information and target context acquisition information carried in the context information acquisition request are acquired. The execution node information includes the belonging component service information and the belonging application/business information, and for example, the component service may include task scheduling (wtss), workflow service (jobsterver), and the like.
G, detecting whether the target context acquisition information has a corresponding priority;
after the execution node information and the target context acquisition information are acquired, whether the target context acquisition information has a corresponding priority is detected. Specifically, since only the user variable and the user parameter have the corresponding priority, whether the corresponding priority exists or not can be detected by detecting whether the target context acquisition information is the user variable and the user parameter.
If the target context acquisition information has the corresponding priority, executing step H: acquiring corresponding third target context information from the preset database according to the execution node information, the target acquisition context information type and a preset priority matching rule, and returning to the task execution end;
if the corresponding priority exists in the target context acquisition information, acquiring corresponding third target context information from a preset database according to the execution node information, the type of the target acquisition context information and a preset priority matching rule, and returning to the task execution end. The preset priority matching rule may be preset, optionally, may be set to feedback according to the order of the application/service level, the component service level, and the user level, that is, if the type of the acquired context information is matched to the application/service level variable according to the information of the executing node and the target acquired context information, the application/service level variable is preferentially fed back; if the component service level variable is not matched with the application/service level variable, detecting whether the component service level variable can be matched with the application/service level variable, and if the component service level variable is matched with the application/service level variable, feeding back the component service level variable; if the component service level variables are not yet matched, feeding back global variables. Of course, the preset priority matching rule may be set according to practical situations, and is only used as an example and not particularly limited herein.
If the target context acquisition information does not have the corresponding priority, executing the step I: and acquiring corresponding fourth target context information from the preset database according to the execution node information and the target acquisition context information type, and returning to the task execution end.
If the fact that the corresponding priority does not exist in the target context acquisition information is detected, the priority is not needed to be considered, corresponding fourth target context information is directly acquired from a preset database according to the execution node information and the target acquisition context information type, and the fourth target context information is returned to the task execution end.
Of course, it should be noted that, in the specific embodiment, if other refined setting management is performed on the component configuration parameters and the user resource file, other corresponding detection needs to be performed, for example, if a scope (i.e. an executing node condition allowing downloading) is set for context information such as the user resource file, whether executing node information is in the scope or not needs to be detected, i.e. whether the executing node condition allowing downloading is rechecked, if so, corresponding target context information is obtained, and the task executing terminal is returned; if the user is not in conformity with the task execution node, corresponding prompt information is generated and returned to the task execution end, so that the user corresponding to the task execution node is improved, and no downloading permission is generated.
The invention also provides a context information management device.
Referring to fig. 3, fig. 3 is a schematic functional block diagram of a first embodiment of a context information management device according to the present invention.
As shown in fig. 3, the context information management apparatus includes:
the first modification module 10 is configured to, when receiving a context information modification instruction sent by the first task execution end, obtain target context modification information according to the context information modification instruction, and modify corresponding first target context information in a preset database according to the target context modification information;
the first obtaining module 20 is configured to obtain, when receiving a first target context information obtaining request sent by the second task execution end, modified first target context information from the preset database according to the first target context information obtaining request, and return the modified first target context information to the second task execution end.
Further, the context information management apparatus further includes:
the first detection module is used for detecting whether a modification operation corresponding to the first target context information exists currently;
the locking processing module is used for carrying out locking processing on the modification operation if the modification operation corresponding to the first target context information exists currently, and carrying out lock release processing on the modification operation after the locking processing after the modification operation is completed to obtain modified first target context information;
The second modification module is used for acquiring target context modification information according to the context information modification instruction and modifying the modified first target context information according to the target context modification information;
the first modification module is specifically configured to obtain, if there is no modification operation corresponding to the first target context information currently, target context modification information according to the context information modification instruction, and modify, according to the target context modification information, the first target context information corresponding to the first target context information in a preset database.
Further, the context information management apparatus further includes:
the interface display module is used for displaying a corresponding context information setting interface according to the context information setting request when receiving the context information setting request triggered by a user;
the information setting module is used for receiving a context information setting instruction triggered by a user based on the context information setting interface, acquiring target context setting information according to the context information setting instruction, setting and storing corresponding second target context information in a preset database according to the target context setting information.
Further, the context information management apparatus further includes:
the information acquisition module acquires the execution node information and the target context acquisition information carried in the context information acquisition request when receiving the context information acquisition request sent by the task execution terminal;
the second detection module is used for detecting whether the target context acquisition information has a corresponding priority;
the second acquisition module is used for acquiring corresponding third target context information from the preset database according to the execution node information, the target acquisition context information type and a preset priority matching rule if the target context acquisition information has the corresponding priority, and returning the third target context information to the task execution end;
and the third acquisition module is used for acquiring corresponding fourth target context information from the preset database according to the execution node information and the target acquisition context information type if the target context acquisition information does not have the corresponding priority, and returning to the task execution end.
Further, the first target context information includes user variable information, and the second target context information includes one or more of user variable information, user parameter information, component configuration parameter information, and user resource file information.
The function implementation of each module in the context information management device corresponds to each step in the context information management method embodiment, and the function and implementation process of each module are not described in detail herein.
The present invention also provides a computer-readable storage medium having stored thereon a context information management program which, when executed by a processor, implements the steps of the context information management method according to any of the above embodiments.
The specific embodiments of the computer readable storage medium of the present invention are substantially the same as the above-described embodiments of the context information management method, and are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. The utility model provides a context information management method, characterized in that is applied to context information management system, context information management system includes context information management end and a plurality of task execution end, the task execution end includes first task execution end and second task execution end, the context information management method includes:
when receiving a context information modification instruction sent by the first task execution end, the context information management end obtains target context modification information according to the context information modification instruction, and modifies corresponding first target context information in a preset database according to the target context modification information, wherein the context information comprises the following parameters: the method comprises the steps that a user variable, a user parameter, a component configuration parameter and a user resource file are used, and target context modification information comprises a variable type and a target modification value, wherein the variable type is used for determining first target context information to be modified;
when a first acquisition request sent by the second task execution end is received, acquiring modified first target context information from the preset database according to the first acquisition request, and returning to the second task execution end;
When a second acquisition request sent by the task execution end is received, acquiring execution node information and target context acquisition information carried in the second acquisition request, wherein the target context acquisition information is the user variable and the user parameter, or the target context acquisition information is information except the user variable and the user parameter, the execution node information comprises component service information and application/business information, and component services corresponding to the component service information comprise task scheduling and workflow services; the method comprises the steps of,
detecting whether the target context acquisition information has a corresponding priority, including: detecting whether the target context acquisition information is the user variable and the user parameter;
if the target context acquisition information has the corresponding priority, the method includes: and if the target context acquisition information is detected to be the user variable and the user parameter, acquiring corresponding third target context information from the preset database according to the execution node information and a preset priority matching rule, and returning to the task execution end, wherein the method comprises the following steps: according to the matching of the execution node information to an application/service level, preferentially feeding back the context information corresponding to the service to which the application/service level belongs; the preset priority matching rule is to feed back according to the sequence of the application/service level, the component service level and the user level;
If the target context acquisition information does not have the corresponding priority, the method comprises the following steps: and if the target context acquisition information is detected to be information except the user variable and the user parameter, acquiring corresponding fourth target context information from the preset database according to the execution node information, and returning to the task execution end, wherein the method comprises the following steps: and acquiring and feeding back the context information corresponding to the service of the component service level from the preset database, and acquiring and feeding back the context information corresponding to the service of the application/service level.
2. The method for managing context information according to claim 1, wherein before the step of obtaining target context modification information according to the context information modification instruction and modifying corresponding first target context information in a preset database according to the target context modification information, the method further comprises:
detecting whether a modification operation corresponding to the first target context information exists currently;
if the modification operation corresponding to the first target context information exists currently, locking the modification operation, and releasing the lock of the modification operation after the locking is completed, so as to obtain the modified first target context information;
Acquiring target context modification information according to the context information modification instruction, and modifying the modified first target context information according to the target context modification information;
if there is no modification operation corresponding to the first target context information, executing the steps of: and acquiring target context modification information according to the context information modification instruction, and modifying corresponding first target context information in a preset database according to the target context modification information.
3. The context information management method according to claim 1 or 2, wherein the context information management further comprises:
when receiving a context information setting request triggered by a user, displaying a corresponding context information setting interface according to the context information setting request;
receiving a context information setting instruction triggered by a user based on the context information setting interface, acquiring target context setting information according to the context information setting instruction, setting and storing corresponding second target context information in a preset database according to the target context setting information.
4. A context information management apparatus, characterized in that the context information management apparatus comprises:
The first modification module is used for acquiring target context modification information according to the context modification instruction when the context information management end receives the context information modification instruction sent by the first task execution end, and modifying corresponding first target context information in a preset database according to the target context modification information, wherein the context information comprises the following parameters: the method comprises the steps that a user variable, a user parameter, a component configuration parameter and a user resource file are used, and target context modification information comprises a variable type and a target modification value, wherein the variable type is used for determining first target context information to be modified;
the first acquisition module is used for acquiring modified first target context information from the preset database according to the first acquisition request when receiving the first acquisition request sent by the second task execution end, and returning the modified first target context information to the second task execution end;
the information acquisition module is used for acquiring execution node information and target context acquisition information carried in a second acquisition request when the second acquisition request sent by the task execution end is received, wherein the target context acquisition information is the user variable and the user parameter, or the target context acquisition information is information except the user variable and the user parameter, the execution node information comprises component service information and application/business information, and component services corresponding to the component service information comprise task scheduling and workflow services;
The second detection module is configured to detect whether the target context acquisition information has a corresponding priority, and includes: detecting whether the target context acquisition information is the user variable and the user parameter;
the second obtaining module is configured to, if the target context obtaining information has a corresponding priority, include: and if the target context acquisition information is detected to be the user variable and the user parameter, acquiring corresponding third target context information from the preset database according to the execution node information and a preset priority matching rule, and returning to the task execution end, wherein the method comprises the following steps: according to the matching of the execution node information to an application/service level, preferentially feeding back the context information corresponding to the service to which the application/service level belongs; the preset priority matching rule is to feed back according to the sequence of the application/service level, the component service level and the user level;
the third obtaining module is configured to, if the target context obtaining information does not have a corresponding priority, include: and if the target context acquisition information is detected to be information except the user variable and the user parameter, acquiring corresponding fourth target context information from the preset database according to the execution node information, and returning to the task execution end, wherein the method comprises the following steps: and acquiring and feeding back the context information corresponding to the service of the component service level from the preset database, and acquiring and feeding back the context information corresponding to the service of the application/service level.
5. The context information management apparatus according to claim 4, wherein said context information management apparatus further comprises:
the first detection module is used for detecting whether a modification operation corresponding to the first target context information exists currently;
the locking processing module is used for carrying out locking processing on the modification operation if the modification operation corresponding to the first target context information exists currently, and carrying out lock release processing on the modification operation after the locking processing after the modification operation is completed to obtain modified first target context information;
the second modification module is used for acquiring target context modification information according to the context information modification instruction and modifying the modified first target context information according to the target context modification information;
the first modification module is specifically configured to obtain, if there is no modification operation corresponding to the first target context information currently, target context modification information according to the context information modification instruction, and modify, according to the target context modification information, the first target context information corresponding to the first target context information in a preset database.
6. The context information management apparatus according to claim 4 or 5, wherein the context information management apparatus further comprises:
the interface display module is used for displaying a corresponding context information setting interface according to the context information setting request when receiving the context information setting request triggered by a user;
the information setting module is used for receiving a context information setting instruction triggered by a user based on the context information setting interface, acquiring target context setting information according to the context information setting instruction, setting and storing corresponding second target context information in a preset database according to the target context setting information.
7. A context information management system comprising a context information management side and a plurality of task execution sides, further comprising a memory, a processor and a context information management program stored on the memory and executable on the processor, the context information management program when executed by the processor implementing the steps of the context information management method according to any of claims 1 to 3.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a context information management program which, when executed by a processor, implements the steps of the context information management method according to any one of claims 1 to 3.
CN201910644413.6A 2019-07-17 2019-07-17 Context information management method, device, system and computer readable storage medium Active CN110347494B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910644413.6A CN110347494B (en) 2019-07-17 2019-07-17 Context information management method, device, system and computer readable storage medium
PCT/CN2020/102320 WO2021008576A1 (en) 2019-07-17 2020-07-16 Context information management method, device, and system, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910644413.6A CN110347494B (en) 2019-07-17 2019-07-17 Context information management method, device, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110347494A CN110347494A (en) 2019-10-18
CN110347494B true CN110347494B (en) 2023-11-17

Family

ID=68175637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910644413.6A Active CN110347494B (en) 2019-07-17 2019-07-17 Context information management method, device, system and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN110347494B (en)
WO (1) WO2021008576A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347494B (en) * 2019-07-17 2023-11-17 深圳前海微众银行股份有限公司 Context information management method, device, system and computer readable storage medium
CN111414152B (en) * 2020-03-25 2023-04-21 北京字节跳动网络技术有限公司 Method, system, readable medium and electronic device for realizing business logic
CN112367363A (en) * 2020-10-23 2021-02-12 深圳前海微众银行股份有限公司 Information sharing method, device, server and storage medium
CN112925997B (en) * 2021-02-25 2023-02-03 平安普惠企业管理有限公司 Task dependency graph display method suitable for Azkaban and related equipment
CN113722068A (en) * 2021-08-31 2021-11-30 平安普惠企业管理有限公司 Batch task processing method, device and equipment based on Azkaban and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106663032A (en) * 2014-08-29 2017-05-10 微软技术许可有限责任公司 Cross device task continuity
CN108322530A (en) * 2018-01-29 2018-07-24 广东欧珀移动通信有限公司 Transmission method, device, gateway and the storage medium of context information

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110264483A1 (en) * 2010-04-27 2011-10-27 Hamid Reza Motahari Nezhad Dynamic collaborative adaptation of a business activity in a business activity management system
US20130041790A1 (en) * 2011-08-12 2013-02-14 Sivakumar Murugesan Method and system for transferring an application state
US9119156B2 (en) * 2012-07-13 2015-08-25 Microsoft Technology Licensing, Llc Energy-efficient transmission of content over a wireless connection
CN104360898B (en) * 2014-10-30 2018-01-23 北京京东尚科信息技术有限公司 The method and apparatus of operation task
CN110347494B (en) * 2019-07-17 2023-11-17 深圳前海微众银行股份有限公司 Context information management method, device, system and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106663032A (en) * 2014-08-29 2017-05-10 微软技术许可有限责任公司 Cross device task continuity
CN108322530A (en) * 2018-01-29 2018-07-24 广东欧珀移动通信有限公司 Transmission method, device, gateway and the storage medium of context information

Also Published As

Publication number Publication date
CN110347494A (en) 2019-10-18
WO2021008576A1 (en) 2021-01-21

Similar Documents

Publication Publication Date Title
CN110347494B (en) Context information management method, device, system and computer readable storage medium
CN110310034B (en) Service arrangement and business flow processing method and device applied to SaaS
US20190138961A1 (en) System and method for project management using artificial intelligence
US9990230B1 (en) Scheduling a notebook execution
EP3982256B1 (en) Cloud-based decision management platform
US8332813B2 (en) Service re-factoring method and system
US8875120B2 (en) Methods and apparatus for providing software bug-fix notifications for networked computing systems
CN109636309B (en) Task processing method and device, electronic equipment and storage medium
US8914804B2 (en) Handling queues associated with web services of business processes
US9246914B2 (en) Method and apparatus for processing biometric information using distributed computation
US10901573B2 (en) Generating predictive action buttons within a graphical user interface
CN108492005B (en) Project data processing method and device, computer equipment and storage medium
US20110238760A1 (en) Systems and methods for identifying contacts as users of a multi-tenant database and application system
JP2017123140A (en) Method and apparatus for updating object data in object storage system
CN108510081A (en) machine learning method and platform
US11474842B2 (en) Integration application creator design
Sanchez et al. An approach based on feature models and quality criteria for adapting component-based systems
Kiss et al. A cloud-agnostic queuing system to support the implementation of deadline-based application execution policies
CN114924851A (en) Training task scheduling method and device, electronic equipment and storage medium
KR102205686B1 (en) Method and apparatus for ranking candiate character and method and device for inputting character
Affonso et al. A reference architecture to support the development of mobile applications based on self-adaptive services
Tamura et al. Reliability computing and management considering the network traffic for a cloud computing
US9323509B2 (en) Method and system for automated process distribution
KR102418961B1 (en) System and method of security management based on artificial intelligence
CN116166514A (en) Multi-channel data linkage processing method, device, computer equipment and storage 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
GR01 Patent grant
GR01 Patent grant