CN107861749A - The flow arranging system and its implementation of a kind of TU task unit based on configuration - Google Patents

The flow arranging system and its implementation of a kind of TU task unit based on configuration Download PDF

Info

Publication number
CN107861749A
CN107861749A CN201711052417.2A CN201711052417A CN107861749A CN 107861749 A CN107861749 A CN 107861749A CN 201711052417 A CN201711052417 A CN 201711052417A CN 107861749 A CN107861749 A CN 107861749A
Authority
CN
China
Prior art keywords
task
flow
version
unit
base unit
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.)
Granted
Application number
CN201711052417.2A
Other languages
Chinese (zh)
Other versions
CN107861749B (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.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud 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 G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201711052417.2A priority Critical patent/CN107861749B/en
Publication of CN107861749A publication Critical patent/CN107861749A/en
Application granted granted Critical
Publication of CN107861749B publication Critical patent/CN107861749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/54Link editing before load time

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a kind of flow arranging system of TU task unit based on configuration and its implementation.The system of the present invention is made up of TU task unit (HC TASK) component, flow orchestration module and task (TASK) finger daemon configured.TU task unit (HC TASK) component of configuration, including form the task base unit and version generator of the TU task unit (HC TASK) of configuration.Task base unit is the minimum constituent element of TU task unit (HC TASK) component of configuration.Flow orchestration module provides version management and flow layout function, and layout can be combined to single or multiple tasks centered on task base unit, with reference to version management, forms the flow with controllable version.Task (TASK) finger daemon provides the TU task unit included to multiple layout flows and carries out the detection service for having sequence task.Task is carried out flow layout by the present invention, and is subject to Version Control, is had the characteristics that favorable expandability, applied widely, can be effectively applied in multiple business type system.

Description

The flow arranging system and its implementation of a kind of TU task unit based on configuration
Technical field
The present invention relates to Computer Applied Technology field, the flow layout of more particularly to a kind of TU task unit based on configuration System and its implementation.
Background technology
With the development of Computer Applied Technology, the interactive mode between operation system is more intended to variation.Along with industry The complication of business and uncertain factor, frequently business demand change request operation system have extraordinary compatibility and healthy and strong Property.Interaction between traditional business system, when the change that a side occurs has otherness with former agreement, generally require another root Cooperation change is carried out according to new agreement.And the interactive mode of this formula, generally change all only have the other Version Control of code level, Once change failure or change revocation are, it is necessary to spend substantial amounts of expense to carry out version rollback.At this time with greater need for a kind of flexible High and applied widely method is spent, version change conveniently and efficiently can be carried out to business function, and changing range is controllable.
The content of the invention
Present invention solves the technical problem that be for the system of service link be present, deposited in some or multiple tasks node In change request, the expense of change, prevention is withdrawn and scope control etc. has the problem of non-controllable risk, there is provided one The flow arranging system of TU task unit of the kind based on configuration.
Another technical problem that the present invention solves is to provide a kind of flow arranging system of the TU task unit based on configuration Implementation method.
The technical scheme that the present invention solves one of above-mentioned technical problem is:
Described system is made up of HC-TASK components, flow orchestration module and TASK finger daemons, and is provided and opened accordingly Hair and integrated interface;
Described HC-TASK components, including form HC-TASK task base unit and version generator;Task basis Unit, it is the minimum constituent element of HC-TASK components;Version generator provides version number's generation service;HC-TASK, which is housed, to be appointed The version information of business;
Flow orchestration module is managed collectively TU task unit, and layout is carried out to task base unit according to business demand;Task Unit, which can freely arrange in pairs or groups, generates the flow link with version information;
TASK finger daemons, there is provided the TU task unit included to multiple layout flows carries out the detection service for having sequence task.
Described HC-TASK is the TU task unit of configuration, can carry out configuration assembling by HC-TASK components.
Described task base unit includes five kinds of task ID, task type, version number, timestamp and state elements;
Described version generator is during maintenance task base unit, the base unit by system to same task ID Locked, according to the sequencing of timestamp, the version number of latest edition is added up, and generate new version number.
Described flow orchestration module, it is responsible for generating head node and tail node to task base unit, and according to business need Ask and layout is carried out to task base unit;Individual task flow can correspond to one or more task base units, each task With the Form generation flow link of " head node+task ID+version+tail node ";
Flow orchestration module provides CRUD access interfaces, for inquiring about, in maintenance process link and switching flow link TASK versions.
The present invention solve above-mentioned technical problem two technical scheme be:
Described method includes newly-built task base unit and safeguards existing task base unit;
The step of newly-built base unit is:
The first step, select TASK generating modes:Newly-built initialization version HC-TASK base units;
Second step, system automatically generate sole task ID;
3rd step, add task type and timestamp;
4th step, HC-TASK base units are preserved, and fill initialization version number and state;
5th step, log recording;
The step of safeguarding existing task base unit be:
The first step, select TASK generating modes:The existing version TASK of selection;
Second step, it is multiplexed existing version TASK task ID;
3rd step, addition task type, timestamp and init state;
4th step, HC-TASK base units are preserved, temporary unique identifier TEMP_KEY is generated according to timestamp;
5th step, calls version generator, and transmission tasks ID obtains version number as parameter call service;
6th step, HC-TASK base units are updated according to temporary unique identifier TEMP_KEY, carry out version filling;
7th step, log recording.
Version generator provides the flow serviced:
The first step, version generator service are in listening state;
Second step, version generator receive service request, and inspection task ID authenticities;
3rd step, task retrieval is carried out to effective task ID, and version is carried out to all task base units under the ID This locking;Abnormal information is directly returned to invalid task ID;
4th step, it is compared according to the timestamp of task base unit and version number, the version number of latest edition is entered Row is accumulative;
5th step, new version number is generated, and version unblock is carried out to all task base units under the ID;
6th step, log recording, complete.
The management process of flow orchestration module is:
The first step, newly-built flow of task, generation flow of task ID;
Second step, select one or more task base units;
3rd step, carries out link assembling to the task base unit of selection, assembled relation include serial between task or Person's concurrency relation;
4th step, parse link, and according to the serial or parallel relation of task automatically generate each task head node and Tail node;
5th step, each task is stored in ordered list according to the form of " head node+task ID+version+tail node " It is interior, and using ordered list as value, with key-value pair<K,V>Mode associate flow ID;
6th step, preserve ordered list and flow of task;
7th step, flow of task is added to TASK finger daemon queues;
8th step, log recording, complete.
The workflow of TASK finger daemons is:
The first step, finger daemon are in listening state;
Second step, finger daemon is by the flow of task in first in first out processing queue;
3rd step, ordered list corresponding to flow of task is extracted, and Detection task performs state in order:When same task When ID TASK is in execution, suspend current task link, and queue is acted on behalf added to iterative task;Otherwise perform as predecessor Business, and task status is set in execution;
4th step, after the completion of tasks carrying, detection iterative task acts on behalf the pending item for whether having same task ID in queue, right It carries out wake operation, and it is completion status to mark same task;
5th step, log recording, complete.
The present invention is decomposed for the system of service link be present by being refined to business function point, is converted to HC-TASK and is appointed Business base unit;The map refinement function point in the form of task base unit.Version generator provides version number's generation service, HC-TASK houses the version information of task;Flow orchestration module is managed collectively TU task unit, and TU task unit can freely arrange in pairs or groups life Into the flow link with version information.Version switching conveniently and efficiently can be carried out to the function point of refinement, ensure the steady of system It is fixed, prevent non-controllable risk.TASK finger daemons have ensured the state between multitask flow by being supervised to flow of task It is shared.Each assembly module is combined closely, and flow layout is formed into the maintainable flow link of dynamic, ensure that the flexible of system Property and autgmentability.
Brief description of the drawings
The present invention is further described below in conjunction with the accompanying drawings:
Fig. 1 is the overall construction drawing of the present invention;
Fig. 2 is the sequence chart that version generator of the present invention provides service;
Fig. 3 is the activity diagram of service orchestration module of the present invention.
Embodiment
For the system of service link be present in the present invention, when change request be present in some or multiple tasks node, change Expense, withdraw prevention and scope control etc. has the problem of non-controllable risk, there is provided a kind of appointing based on configuration The flow arranging system of business unit.By the way that to business function point ZOOM analysis, flow of task layout, it is conveniently and efficiently right to realize Business function carries out version change.
Fig. 1 illustrates the overall construction drawing of the present invention, by HC-TASK components, flow orchestration module and TASK finger daemons Composition.
HC-TASK:It is the TU task unit of configuration, configuration assembling can be carried out by HC-TASK components.
HC-TASK components:Task base unit and version generator including forming HC-TASK.
Task base unit, it is the minimum constituent element of HC-TASK components, includes task ID, task type, version Number, five kinds of elements of timestamp and state;The combination of task ID and version number is the unique mark of base unit, ensures base unit Uniqueness.Version generator, there is provided the service of version filling is carried out to the base unit of same task ID.In maintenance task base During plinth unit, the base unit of same task ID is locked by system, according to the sequencing of timestamp, to newest The version number of version is added up, and generates new version number;Flow orchestration module, it is responsible for generating head knot to task base unit Point and tail node, and layout is carried out to task base unit according to business demand.Individual task flow can correspond to one or more Task base unit, each task is with the Form generation flow link of " head node+task ID+version+tail node ";Work as presence During the task of dual serial, higher level's task tail node corresponds to the head node of subordinate's task;When existing, two or more are parallel Task when, be considered as that priority is identical, the tail node of head node corresponding higher level's task simultaneously;TASK finger daemons, there is provided to more The TU task unit that individual layout flow includes carries out the detection service for having sequence task.Each HC-TASK included in flow link All there is version information.
In addition, flow orchestration module provides CRUD access interfaces, for inquiring about, maintenance process link and switching flow chain TASK versions in road.
Fig. 2 illustrates the sequence chart that version generator provides service, and Fig. 3 illustrates the activity diagram of service orchestration module, had What is closed realizes that step difference is as follows.
Version generator provides the flow serviced:
The first step, version generator service are in listening state;
Second step, version generator receive service request, and inspection task ID authenticities;
3rd step, task retrieval is carried out to effective task ID, and version is carried out to all task base units under the ID This locking;Abnormal information is directly returned to invalid task ID;
4th step, it is compared according to the timestamp of task base unit and version number, the version number of latest edition is entered Row is accumulative;
5th step, new version number is generated, and version unblock is carried out to all task base units under the ID;
6th step, log recording, complete.
The management process of service orchestration module is:
The first step, newly-built flow of task, generation flow of task ID;
Second step, select one or more task base units;
3rd step, carries out link assembling to the task base unit of selection, assembled relation include serial between task or Person's concurrency relation;
4th step, parse link, and according to the serial or parallel relation of task automatically generate each task head node and Tail node;
5th step, each task is stored in ordered list according to the form of " head node+task ID+version+tail node " It is interior, and using ordered list as value, with key-value pair<K,V>Mode associate flow ID;
6th step, preserve ordered list and flow of task;
7th step, flow of task is added to TASK finger daemon queues;
8th step, log recording, complete.
Business function point is refined and carries out layout by the present invention, has the characteristics that favorable expandability, applied widely, can be effective Ground is applied in multiple business type system.

Claims (10)

  1. A kind of 1. flow arranging system of the TU task unit based on configuration, it is characterised in that:Described system is by HC-TASK groups Part, flow orchestration module and TASK finger daemons composition, and corresponding exploitation and integrated interface are provided;
    Described HC-TASK components, including form HC-TASK task base unit and version generator;Task base unit, It is the minimum constituent element of HC-TASK components;Version generator provides version number's generation service;HC-TASK houses task Version information;
    Flow orchestration module is managed collectively TU task unit, and layout is carried out to task base unit according to business demand;TU task unit Can freely be arranged in pairs or groups flow link of the generation with version information;
    TASK finger daemons, there is provided the TU task unit included to multiple layout flows carries out the detection service for having sequence task.
  2. 2. the flow arranging system of TU task unit according to claim 1, it is characterised in that:Described HC-TASK is to match somebody with somebody The TU task unit put, configuration assembling can be carried out by HC-TASK components.
  3. 3. the flow arranging system of TU task unit according to claim 1, it is characterised in that:Described task base unit Include five kinds of task ID, task type, version number, timestamp and state elements.
  4. 4. the flow arranging system of TU task unit according to claim 1, it is characterised in that:Described version generator exists During maintenance task base unit, the base unit of same task ID is locked by system, according to the priority of timestamp Sequentially, the version number of latest edition is added up, and generates new version number.
  5. 5. the flow arranging system of TU task unit according to claim 1, it is characterised in that:Described flow layout mould Block, it is responsible for generating task base unit head node and tail node, and layout is carried out to task base unit according to business demand; Individual task flow can correspond to one or more task base units, and each task is with " head node+task ID+version+periproct The Form generation flow link of point ";
    Flow orchestration module provides CRUD access interfaces, for inquiring about, in maintenance process link and switching flow link TASK versions.
  6. 6. a kind of implementation method of the flow arranging system of the TU task unit based on configuration described in any one of claim 1-5, It is characterized in that:Described method includes newly-built task base unit and safeguards existing task base unit;
    The step of newly-built base unit is:
    The first step, select TASK generating modes:Newly-built initialization version HC-TASK base units;
    Second step, system automatically generate sole task ID;
    3rd step, add task type and timestamp;
    4th step, HC-TASK base units are preserved, and fill initialization version number and state;
    5th step, log recording;
    The step of safeguarding existing task base unit be:
    The first step, select TASK generating modes:The existing version TASK of selection;
    Second step, it is multiplexed existing version TASK task ID;
    3rd step, addition task type, timestamp and init state;
    4th step, HC-TASK base units are preserved, temporary unique identifier TEMP_KEY is generated according to timestamp;
    5th step, calls version generator, and transmission tasks ID obtains version number as parameter call service;
    6th step, HC-TASK base units are updated according to temporary unique identifier TEMP_KEY, carry out version filling;
    7th step, log recording.
  7. 7. implementation method according to claim 6, it is characterised in that:
    Version generator provides the flow serviced:
    The first step, version generator service are in listening state;
    Second step, version generator receive service request, and inspection task ID authenticities;
    3rd step, task retrieval is carried out to effective task ID, and version is carried out to all task base units under the ID and added Lock;Abnormal information is directly returned to invalid task ID;
    4th step, it is compared according to the timestamp of task base unit and version number, the version number of latest edition is tired out Meter;
    5th step, new version number is generated, and version unblock is carried out to all task base units under the ID;
    6th step, log recording, complete.
  8. 8. implementation method according to claim 6, it is characterised in that:
    The management process of flow orchestration module is:
    The first step, newly-built flow of task, generation flow of task ID;
    Second step, select one or more task base units;
    3rd step, carries out link assembling to the task base unit of selection, and assembled relation includes serial between task or simultaneously Row relation;
    4th step, link is parsed, and the head node and periproct of each task are automatically generated according to the serial or parallel relation of task Point;
    5th step, each task is stored in ordered list according to the form of " head node+task ID+version+tail node ", and Using ordered list as value, with key-value pair<K, V>Mode associate flow ID;
    6th step, preserve ordered list and flow of task;
    7th step, flow of task is added to TASK finger daemon queues;
    8th step, log recording, complete.
  9. 9. implementation method according to claim 7, it is characterised in that:
    The management process of flow orchestration module is:
    The first step, newly-built flow of task, generation flow of task ID;
    Second step, select one or more task base units;
    3rd step, carries out link assembling to the task base unit of selection, and assembled relation includes serial between task or simultaneously Row relation;
    4th step, link is parsed, and the head node and periproct of each task are automatically generated according to the serial or parallel relation of task Point;
    5th step, each task is stored in ordered list according to the form of " head node+task ID+version+tail node ", and Using ordered list as value, with key-value pair<K, V>Mode associate flow ID;
    6th step, preserve ordered list and flow of task;
    7th step, flow of task is added to TASK finger daemon queues;
    8th step, log recording, complete.
  10. 10. according to the implementation method described in any one of claim 6 to 9, it is characterised in that:
    The workflow of TASK finger daemons is:
    The first step, finger daemon are in listening state;
    Second step, finger daemon is by the flow of task in first in first out processing queue;
    3rd step, ordered list corresponding to flow of task is extracted, and Detection task performs state in order:When same task ID When TASK is in execution, suspend current task link, and queue is acted on behalf added to iterative task;Otherwise current task is performed, And during task status is set to perform;
    4th step, after the completion of tasks carrying, detection iterative task acts on behalf the pending item for whether having same task ID in queue, and it is entered Row wake operation, and it is completion status to mark same task;
    5th step, log recording, complete.
CN201711052417.2A 2017-10-30 2017-10-30 Process arrangement system based on configured task unit and implementation method thereof Active CN107861749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711052417.2A CN107861749B (en) 2017-10-30 2017-10-30 Process arrangement system based on configured task unit and implementation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711052417.2A CN107861749B (en) 2017-10-30 2017-10-30 Process arrangement system based on configured task unit and implementation method thereof

Publications (2)

Publication Number Publication Date
CN107861749A true CN107861749A (en) 2018-03-30
CN107861749B CN107861749B (en) 2021-07-30

Family

ID=61696460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711052417.2A Active CN107861749B (en) 2017-10-30 2017-10-30 Process arrangement system based on configured task unit and implementation method thereof

Country Status (1)

Country Link
CN (1) CN107861749B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408232A (en) * 2018-10-17 2019-03-01 山东易通发展集团有限公司 A kind of modularization bus calling execution system based on transaction flow
CN111833030A (en) * 2020-09-16 2020-10-27 四川鱼鳞图信息技术股份有限公司 Data submission method and system of land information management system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751255A (en) * 2009-12-30 2010-06-23 山东中创软件工程股份有限公司 Method and device for realizing service organization by workflow middleware conforming to XPDL specification
US20140108489A1 (en) * 2012-10-15 2014-04-17 Et International, Inc. Flowlet-based processing
CN107092489A (en) * 2017-04-13 2017-08-25 中国联合网络通信集团有限公司 The processing method and system issued based on application version

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751255A (en) * 2009-12-30 2010-06-23 山东中创软件工程股份有限公司 Method and device for realizing service organization by workflow middleware conforming to XPDL specification
US20140108489A1 (en) * 2012-10-15 2014-04-17 Et International, Inc. Flowlet-based processing
CN107092489A (en) * 2017-04-13 2017-08-25 中国联合网络通信集团有限公司 The processing method and system issued based on application version

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408232A (en) * 2018-10-17 2019-03-01 山东易通发展集团有限公司 A kind of modularization bus calling execution system based on transaction flow
CN111833030A (en) * 2020-09-16 2020-10-27 四川鱼鳞图信息技术股份有限公司 Data submission method and system of land information management system

Also Published As

Publication number Publication date
CN107861749B (en) 2021-07-30

Similar Documents

Publication Publication Date Title
CA3111422C (en) User interface for automated flows within a cloud based developmental platform
US9852035B2 (en) High availability dynamic restart priority calculator
Zhou et al. Delta debugging microservice systems
US20100280863A1 (en) Automated Model Generation For Computer Based Business Process
US9052972B2 (en) Determining the processing order of a plurality of events
US20080244611A1 (en) Product, method and system for improved computer data processing capacity planning using dependency relationships from a configuration management database
US10747573B2 (en) Virtualized execution across distributed nodes
BR112019025269A2 (en) microprocessor including a corporate model
CN108243012B (en) Charging application processing system, method and device in OCS (online charging System)
US11171825B2 (en) Context-based resource allocation with extended user concepts
JP2007316905A (en) Computer system and method for monitoring application program
GB2513528A (en) Method and system for backup management of software environments in a distributed network environment
CN111381972A (en) Distributed task scheduling method, device and system
CN110427258A (en) Scheduling of resource control method and device based on cloud platform
US9424083B2 (en) Managing metadata for a distributed processing system with manager agents and worker agents
US11941413B2 (en) Managed control plane service
CN110569113A (en) Method and system for scheduling distributed tasks and computer readable storage medium
Harzenetter et al. Automated generation of management workflows for applications based on deployment models
CN107861749A (en) The flow arranging system and its implementation of a kind of TU task unit based on configuration
US20060015841A1 (en) Control on demand data center service configurations
CN108776618A (en) Distributed workflow management method and device
US10127024B2 (en) Managing reuse of assets in a workflow management system
Pottier et al. Btrscript: a safe management system for virtualized data center
Kravtsov et al. Service-based Resource Brokering for Grid-Based Data Mining.
US8560544B2 (en) Clustering of analytic functions

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
CB02 Change of applicant information

Address after: 523808 19th floor, Cloud Computing Center, Chinese Academy of Sciences, No.1 Kehui Road, Songshanhu high tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant after: G-CLOUD TECHNOLOGY Co.,Ltd.

Address before: 523808 No. 14 Building, Songke Garden, Songshan Lake Science and Technology Industrial Park, Dongguan City, Guangdong Province

Applicant before: G-CLOUD TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant