CN116089363A - Data processing method, device, electronic equipment and storage medium - Google Patents

Data processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116089363A
CN116089363A CN202310370924.XA CN202310370924A CN116089363A CN 116089363 A CN116089363 A CN 116089363A CN 202310370924 A CN202310370924 A CN 202310370924A CN 116089363 A CN116089363 A CN 116089363A
Authority
CN
China
Prior art keywords
shift
file
task
watermark
original
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
CN202310370924.XA
Other languages
Chinese (zh)
Other versions
CN116089363B (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.)
LCFC Hefei Electronics Technology Co Ltd
Original Assignee
LCFC Hefei Electronics 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 LCFC Hefei Electronics Technology Co Ltd filed Critical LCFC Hefei Electronics Technology Co Ltd
Priority to CN202310370924.XA priority Critical patent/CN116089363B/en
Publication of CN116089363A publication Critical patent/CN116089363A/en
Application granted granted Critical
Publication of CN116089363B publication Critical patent/CN116089363B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/16Program or content traceability, e.g. by watermarking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present disclosure provides a data processing method, a device, an electronic apparatus, and a storage medium, where the method is applied to a shift server, the shift server includes a task management module and a shift execution module, and the method includes: the task management module responds to receiving a first file transfer request, and confirms a first original file corresponding to the first file transfer request and sends the first original file to the transfer execution module; the shift execution module acquires the first original file, shifts the first original file into at least one shift file, and sends the at least one shift file to the task management module; the task management module sends the at least one shift file.

Description

Data processing method, device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of file transfer, and in particular relates to a data processing method, a data processing device, electronic equipment and a storage medium.
Background
The electronic engineer reads design data from the schematic diagram, and in order to convert the design data into production data, a plurality of documents (such as txt and PDF) must be manually converted and exported in the process, and the PDF needs to be manually encrypted and watermarked, so that the electronic engineer has the advantages of complex operation, low efficiency, easy error, poor standardization and low safety.
Disclosure of Invention
The present disclosure provides a data processing method, apparatus, electronic device, and storage medium, so as to at least solve the above technical problems in the prior art.
According to a first aspect of the present disclosure, there is provided a data processing method applied to a shift server, the shift server including a task management module and a shift execution module, the method including:
the task management module responds to receiving a first file transfer request, and confirms a first original file corresponding to the first file transfer request and sends the first original file to the transfer execution module;
the shift execution module acquires the first original file, shifts the first original file into at least one shift file, and sends the at least one shift file to the task management module;
the task management module sends the at least one shift file.
According to a second aspect of the present disclosure, there is provided a data processing apparatus for application to a shift server, the apparatus comprising:
the task management module is used for responding to the received first file transfer request, confirming a first original file corresponding to the first file transfer request and sending the first original file to the transfer execution module; transmitting at least one shift file;
And the shift execution module is used for acquiring the first original file, shifting the first original file into at least one shift file and sending the at least one shift file to the task management module.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the methods described in the present disclosure.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of the present disclosure.
According to the data processing method, a task management module responds to a first file transfer request, a first original file corresponding to the first file transfer request is confirmed, and the first original file is sent to a transfer execution module; the shift execution module acquires the first original file, shifts the first original file into at least one shift file, and sends the at least one shift file to the task management module; the task management module sends the at least one shift file; therefore, the automatic data conversion and automatic feedback can be realized, and the labor cost is saved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings, in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
FIG. 1 illustrates an alternative flow diagram of a data processing method provided by an embodiment of the present disclosure;
FIG. 2 shows another alternative flow diagram of a data processing method provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram showing a processing progress of a shift task in a task list according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating an alternative flow of a shift execution module for shifting gears according to an embodiment of the present disclosure;
FIG. 5 is a diagram showing parameters related to a first original file according to an embodiment of the present disclosure;
FIG. 6 illustrates a schematic view of a post-shift file page provided by the present disclosure;
FIG. 7 is a schematic diagram of a shift execution module according to an embodiment of the present disclosure displaying related shift information;
FIG. 8 shows a further alternative flow diagram of a data processing method provided by an embodiment of the present disclosure;
FIG. 9 shows a further alternative flow diagram of a data processing method provided by an embodiment of the present disclosure;
FIG. 10 is a schematic diagram showing an alternative configuration of a data processing apparatus provided by an embodiment of the present disclosure;
fig. 11 shows a schematic diagram of a composition structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, features and advantages of the present disclosure more comprehensible, the technical solutions in the embodiments of the present disclosure will be clearly described in conjunction with the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, but not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person skilled in the art would obtain without making any inventive effort are within the scope of protection of this disclosure.
In the related art, for transferring a schematic diagram to a file in another format, it is generally required to download the schematic diagram to a local computer in a product life cycle management (Product Lifecycle Management, PLM) system; opening a schematic diagram in ECAD software, and using a command to derive a txt file and a PDF file; encrypting the PDF file by using encryption software; watermarking the PDF file by using watermarking software; and archiving txt files and PDF files into a windbell system.
The operations are all manually executed, so that the operations are complicated for users and need to be repeatedly processed in different software; corresponding software licenses need to be purchased, and the utilization rate is low; different watermark patterns are required to be set according to different page sizes, so that the efficiency is low; the variety of formats caused by different manual processing results in poor normalization of output files; and the security of manual encryption is low.
Aiming at the problems in the related art, the disclosure provides a data processing method, which can realize automatic shift, automatic watermark adding and encryption of an original file based on a shift server, thereby saving labor cost and improving the utilization rate of a software license, the normalization of the watermark and the security.
Fig. 1 shows an alternative flowchart of a data processing method according to an embodiment of the present disclosure, and will be described according to the steps.
In step S101, the task management module, in response to receiving the first file transfer request, confirms a first original file corresponding to the first file transfer request, and sends the first original file to the transfer execution module.
In some embodiments, a task management module receives a first file transfer request sent by a PLM system and a task priority corresponding to the first file transfer request, and creates a transfer task in a task queue based on the first file transfer request; sequencing the shift tasks in the task queue based on the task priority corresponding to the first shift request, wherein the shift task with high task priority is arranged before the shift task with low task priority, and the shift task with high task priority is executed before the shift task with low task priority; or ordering the shift tasks in the task queue based on the time of creating the shift tasks.
In some alternative embodiments, the task management module may receive a file transfer request based on an interface of a transfer server where the task management module is located, and store the file transfer request in a message cache; the task management module can periodically confirm whether a file transfer request exists in the message cache, if so, create a corresponding transfer task in a task queue based on the file transfer request, and delete the corresponding file transfer request in the message cache.
In some embodiments, after creating the shift task in the task queue, the task management module creates a corresponding temporary folder based on the file shift request or the corresponding shift task, obtains a corresponding original file from the PLM system, and stores the original file in the temporary folder. Optionally, the folder name of the temporary folder may include at least one of a schematic diagram number corresponding to the original file, a version number of the schematic diagram, a date of receiving the file transfer request, and a date of creating the temporary folder.
In some embodiments, the task management module sends the original file corresponding to the shift task with the highest task priority or the first created shift task to the shift execution module based on the order of shift tasks in the task queue. That is, the shift task module may confirm the executed shift task based on the priority of the shift task or the time sequence of creating the shift task.
Step S102, the shift execution module obtains the first original file, shifts the first original file into at least one shift file, and sends the at least one shift file to the task management module.
In some optional embodiments, before the shift execution module obtains the first original file and shifts the first original file into at least one shift file, it may further confirm whether the temporary folder corresponding to the first created shift task includes at least one shift file corresponding to the original file, if yes, it is considered that the shift task is completed, and the at least one shift file is sent to the task management module; and if not, shifting the original file.
In some embodiments, the shift execution module encapsulates the ECAD tool, the encryption program, and the watermarking program as an underlying tool, shifts the first original document into at least one shift document based on the underlying tool after obtaining the first original document, and sends the at least one shift document to the task management module.
Step S103, the task management module sends the at least one shift file.
In some embodiments, the task management module receives at least one file of the file transfer, stores the file in a first temporary folder, packages the file in the first temporary folder except the first original file, and sends the file to the PLM system.
Therefore, by the data processing method provided by the embodiment of the disclosure, an automatic data conversion and automatic feedback system can be realized, and labor cost is saved; in addition, after the original file is updated, the file of transferring file can be adaptively and automatically updated, and the accuracy of data is ensured.
Fig. 2 shows another alternative flow diagram of a data processing method according to an embodiment of the disclosure, which will be described according to the steps.
In step S201, the task management module receives a first file transfer request.
In some embodiments, the task management module receives a first file transfer request sent by a PLM system and a task priority corresponding to the first file transfer request; creating a shift task in a task queue based on the first file shift request; sequencing the shift tasks in the task queue based on the task priority corresponding to the first shift request, wherein the shift task with high task priority is arranged before the shift task with low task priority, and the shift task with high task priority is executed before the shift task with low task priority; or ordering the shift tasks in the task queue based on the time of creating the shift tasks. The first file transfer request may be sent to the PLM system from outside the PLM system, and forwarded to the task management module by the PLM system, or may be sent to the task management module by the PLM system after an original file stored in the PLM system is updated.
In some alternative embodiments, the PLM system may invoke a file transfer server interface to send the first file transfer request, and the message cache of the task management module stores the first file transfer request.
In some embodiments, after receiving the first file transfer request, the task management module stores the first file transfer request in a message cache, and obtains the first file transfer request through a transfer server interface.
In some embodiments, the task management module periodically confirms whether a file transfer request is cached in the message cache, if so, creates a corresponding temporary folder based on the first file transfer request, obtains a corresponding first original file from the PLM system, stores the first original file in the first temporary folder, and creates a first transfer task in a task list based on the first file transfer request.
Optionally, the folder name of the temporary folder may include at least one of a schematic diagram number corresponding to the original file, a version number of the schematic diagram, a date of receiving the file transfer request, and a date of creating the temporary folder.
In step S202, the task management module sends a first original file corresponding to the first file transfer request to the transfer execution module based on the first transfer request.
In some embodiments, the task management module periodically confirms whether an unprocessed shift task exists in the task list, if so, confirms the processing times of the shift task with the highest task priority or the first creation, if the processing times are greater than or equal to a first threshold, clears a temporary folder corresponding to the shift task with the highest task priority or the first creation, sends error reporting information to the PLM system, and updates the task in the task list (e.g., deletes the shift task with the first creation); or if the processing times of the shift task with the highest task priority or the first created shift task are smaller than the first threshold, confirming whether the temporary folder corresponding to the shift task with the highest task priority or the first created shift task comprises a corresponding original file, and if not, ending the shift task with the highest task priority or the first created shift task; in some embodiments, it is assumed that the first shift task is a shift task with a highest task priority or a first created task in the task list, and if the task management module periodically confirms that an unprocessed first shift task exists in the task list and the number of processing times of the first shift task is smaller than a first threshold, a first original file exists in a first temporary folder corresponding to the first shift task, then the first original file is sent to a shift execution module.
Fig. 3 shows a schematic diagram of a processing progress of a shift task in a task list according to an embodiment of the present disclosure.
In some embodiments, the task management module may also display the progress of processing the tasks in the task list.
As shown in fig. 3, all the shift tasks in the task list may be displayed, and the receiving time (such as the time of receiving the shift request) of the shift task, the response time (the time of creating the shift task), whether the shift task has been processed, the temporary folder corresponding to the shift task or the path of the original file corresponding to the shift task may be displayed.
In step S203, the shift execution module obtains the first original file, shifts the first original file into at least one shift file, and sends the at least one shift file to the task management module.
In some embodiments, the shift execution module confirms whether the first temporary folder corresponding to the first shift task includes at least one corresponding shift file, if so, confirms that the first created shift task is completed, and sends the at least one shift file to the PLM system; and if not, shifting the first original file in the first temporary folder.
Fig. 4 is a schematic diagram of an alternative flow of a gear shifting performed by the gear shifting execution module according to an embodiment of the present disclosure.
In some embodiments, the shift execution module shifts the first original file in the first temporary folder, as shown in fig. 4, including the following steps:
step S2031, shift preparation.
In some embodiments, the shift execution module confirms whether the shift server starts the ECAD tool, and if so, connects a port number of the ECAD tool, calls an ECAD service (OpenDesign) (a first service port) and opens the first original file.
Optionally, if the gear shifting service does not start the ECAD tool, starting the ECAD tool; and when the port number of the ECAD tool is connected, if the port number is overtime or no response occurs, ending the first shift task and generating an error log.
Step S2032, the first original file is transferred to a second transferred file in the first format.
In some embodiments, the first format may be an ". Txt" format. Correspondingly, the second shift file is a TXT file.
In some embodiments, the shift execution module may read bomPropHeader, bomFileHeader in the bom.xml configuration file, call ECAD service (CreateBom) to extract data in the first original file according to a predetermined format to generate a TXT file (second shift file), and store the second shift file in the first temporary folder.
Step S2033, the first original file is transferred to the first transferred file in the second format.
In some embodiments, the second format may be a ". Pdf" format. Correspondingly, the first transfer file is a PDF file.
In some embodiments, the shift execution module may call an ECAD service (CreateUserPDF) to generate a PDF file (first shift file) based on the first original file, and store the first shift file in a first temporary folder.
Step S2034, the encryption process is performed on the first shift file.
In some embodiments, the shift execution module invokes an encryption program to generate a password of a configurable number of bits and encrypts the first shift file; and generating a password file based on the password with the configurable number of bits.
Step S2035, watermarking the first transfer file.
Fig. 5 shows a schematic diagram of relevant parameters of a first original file in an embodiment of the disclosure.
In some embodiments, the shift execution module confirms watermark parameters of the first shift file based on the shift configuration file; adding a watermark in the first shift file based on the watermark parameter; wherein the watermark parameters include: watermark spacing, watermark margin, watermark angle, watermark font style, watermark font color, watermark transparency, watermark text content, watermark number, and watermark position. The shift configuration file comprises a watermark interval K, a margin default D (width) of a first watermark, H (high), a watermark angle alpha, a watermark font style, a watermark font color, transparency, watermark text content, a word width, a ratio t of a character interval to a character height, a size value of a page of a first original file, and a length L and a width W.
In specific implementation, the shift execution module acquires related parameters of a first original file set by a shift configuration file; such as watermark spacing K, margin default D (wide), H (high), watermark angle α, watermark font style, watermark font color, transparency, watermark text content, and word width and character spacing to character height ratio t. And the shift execution module acquires the size value of the page of the first original file, wherein the length is L, and the width is W.
In some embodiments, the shift execution module confirms the number N of watermarks of each page in the first shift file based on the watermark space K, the page length L, and the margin D of the first watermark, specifically:
N=(L-D)/K
if N is a non-integer, N may be rounded up or rounded down.
In some embodiments, the shift execution module confirms the position of the watermark in each page of the first shift file based on the number N of watermarks, the page length L, and the margin H of the first watermark, optionally in combination with the watermark spacing K and the margin D of the first watermark.
In implementation, if N is less than or equal to 1, that is, there are only 1 watermark in a page, the horizontal direction of the position is x1=l/2, and the vertical direction is y1=h.
Or, in practical implementation, if N is greater than 1, that is, the page includes 2 or more watermarks, the horizontal direction of the position is xn=d+k× (N-1), and the vertical direction is yn=h.
In some embodiments, the shift execution module confirms the text height h of the watermark. Specifically, the shift execution module confirms the word number n included in the text of the watermark, and confirms the word width and the character spacing W of the watermark based on the watermark angle alpha, the margin H of the first watermark, the page width W and the text word number n of the watermark. Specific:
w=((W-H)/tanα)/n
in some embodiments, the shift execution module confirms the character height h of the watermark based on the word width and character spacing w and the ratio t of the word width and character spacing to the character height. Specific:
h=w/t
fig. 6 shows a schematic view of a post-shift file page provided by the present disclosure.
As shown in fig. 6, after the original file is shifted to PDF, a watermark is added to the page, so as to achieve the effect of manual operation.
Fig. 7 is a schematic diagram showing a shift execution module according to an embodiment of the present disclosure displaying related shift information.
In some alternative embodiments, the shift execution module may also display related shift information. As shown in fig. 7, the progress of the shift task is included, such as start of the shift task, completion of the shift task, names of original files subjected to shift, paths where the original files are located, and the like.
Specifically, the shift execution module detects whether the ECAD tool of the corresponding version exists in the registry, and installs the ECAD tool if the ECAD tool of the corresponding version exists in the registry; the shift execution module automatically deploys ECAD service scripts (OpenDesign, createBom, createUserPDF) to a catalog corresponding to an ECAD tool; the shift execution module registers the ECAD service script in the ECAD tool for invocation.
In some embodiments, the shift execution module shifts the first original file, and after obtaining at least one shift file, sends the at least one shift file to a first temporary folder.
In step S204, the task management module sends the at least one shift file.
In some embodiments, the task management module packages (e.g., packages into zip files) at least one file of the first temporary folder and the password file, and sends the packaged file to the PLM system based on a file transfer server interface.
In some embodiments, the task management module updates the task list.
Thus, by the data processing method provided by the embodiment of the disclosure, the automatic conversion of the original file data and the automatic return system can be realized, and the labor cost is saved (the labor time is saved by 20 min/share); after the original file is updated, the file (such as txt and PDF) of the transfer file can be automatically updated, so that the accuracy of the data is ensured; and according to the page size self-adaptive watermark pattern, ensuring data normalization.
Fig. 8 shows a schematic flow chart of still another alternative method for processing data according to an embodiment of the present disclosure, which will be described according to the steps.
As shown in fig. 8, the data processing method includes: the PLM system sends a shift request to a task management module; the task management module receives PLM information and caches the PLM information to the information cache, and downloads an original file through an interface PLM system; the task management module checks the message buffer once every minute, if a shift request exists in the message buffer, the message buffer is stored in the SQLite database (or shift tasks are added in a task list based on the shift request); the shift task management module checks the SQLite database once every minute, and if an unprocessed shift task exists, the shift task is thrown to the shift execution module to start processing the task; the shift execution module firstly checks whether the shift task has corresponding PDF files and TXT files, and if so, the shift is considered to be successful; if the PDF file and the TXT file do not exist, calling an ECAD tool to execute shift; automatically calling ECAD Tool to convert the original file into a PDF file and a TXT file; the shift execution module monitors the task execution condition, if shift fails or overtime, the shift is tried for 3 times, if the shift fails or overtime for 3 times, failure information is returned to the PLM system, and the shift task state in the SQLite database (or task list) is updated; if the shift is successful, the watermarking program is automatically invoked to watermark, and the watermarking pattern is automatically set for different page sizes, including but not limited to: watermark text font, watermark text angle, watermark text start position, watermark text height; after watermarking is completed, encryption Tool is automatically called to encrypt PDF; after encryption is completed, PDF, TXT and passwords are transmitted back to the PLM system, and the transfer task state in the SQLite database (or task list) is updated.
Fig. 9 shows a further alternative flow diagram of a data processing method provided by an embodiment of the present disclosure.
As shown in fig. 9, the task management module and the shift execution module belong to a shift server; the PLM system (PLM in figure 9) is used for sending a conversion request (namely a file shift request) and an original file (namely a schematic diagram file) to the task management module; the task management module is used for managing a shift task, issuing related tasks to the shift execution module, and the shift execution module is used for calling a bottom layer tool to shift an original file and sending the original file to the PLM system.
In some embodiments, the task management module is to:
1. automatically receiving a conversion request
In some embodiments, the PLM system invokes the shift server interface to send a shift request message; the task management module checks the message buffer once every minute, and if a shift request message exists in the message buffer, the message buffer is stored in the SQLite database (corresponding shift tasks are added in the task list).
2. Automatic downloading of original files
In some embodiments, the task management module creates a temporary folder at the shift server, the temporary folder name being the original file number + version; the task management module calls the PLM interface to download the original file and stores the original file in the temporary folder.
3. Automatic scheduling shift tasks
In some embodiments, the task management module checks the SQLite once per minute, obtains the unprocessed shift task with the highest or earliest task priority, and if the shift task is processed more than three times and is not processed any more, clears the corresponding temporary folder, returns an error message, and updates the task state of the SQLite database.
In some embodiments, the task management module checks whether an original file exists under the temporary folder, if not, the file is considered to be non-compliant, and the task is ended; and checking whether PDF and TXT files exist under the temporary folder. If the task exists, the task is considered to be completed, and the task is ended.
In some embodiments, the task management module packages PDF, TXT, password files into zip files; transmitting the zip file to the PLM system through the request interface; deleting the temporary folder and the file in the temporary folder in the shift server; and updating the task state of the SQL Lite database.
In some embodiments, the task management module provides a visual interface to view and manage the shift task; displaying all tasks to be processed, and identifying the task processing states; allowing the processed task data to be cleared; allowing deletion of certain unprocessed tasks; allowing the processing shift task to be stopped; allowing the scheduling of unprocessed shift tasks to be adjusted.
In some embodiments, the shift execution module is to:
developing an automatic conversion program, packaging the ECAD Tool and the encryption and watermarking program into a bottom layer Tool, and automatically completing the operation:
1. the original file is automatically converted into a PDF file and a TXT file.
In some embodiments, the shift execution module verifies whether the shift server has started the ECAD tool, and if not, automatically starts the ECAD tool first; the shift execution module is connected with a port number of the ECAD tool, and finishes tasks and generates an error log when overtime or no response occurs; the shift execution module invokes an ECAD service (OpenDesign) to open the source file.
In some embodiments, the shift execution module reads bomPropHeader, bomFileHeader in the bom.xml configuration file, invokes the ECAD service (CreateBom) to extract the original file in a predetermined format to generate the TXT file, and stores the TXT file in the temporary folder.
In some embodiments, the shift execution module invokes an ECAD service (CreateUserPDF) to generate a PDF file that is stored in a temporary folder; invoking an encryption program to generate a password with a configurable number of bits and encrypting the document to generate an individual password document.
In some embodiments, the shift execution module automatically invokes a program to watermark the PDF, and automatically sets a watermark pattern, which may specifically include:
Reading the configuration file to set the schematic diagram related parameters, including: watermark spacing K, margin default D of the first watermark, H, watermark angle alpha, watermark font style, watermark font color, transparency, watermark text content, word width + character spacing to character height ratio t. Reading the size values (L and W) of the schematic diagram page; calculating the number N of watermarks: n= (L-D)/K, rounding; calculating the watermark position: when N is less than or equal to 1, only one watermark exists, and the position of the watermark is: x1=l/2, y1=h; when N > 1, then each watermark position: xn=d+k× (N-1), yn=h; calculating watermark text height h: reading watermark text in the configuration file, obtaining the number n of fonts, and calculating the word width plus the character spacing w: w= ((W-H)/tanα)/n), calculate H: h=w/t.
In some embodiments, the shift execution module provides a visual interface to manage the shift service. Installation service: detecting whether ECAD tools of corresponding versions exist in the registry, and if so, installing; automatically deploying the ECAD service script (OpenDesign, createBom, createUserPDF) to a catalog corresponding to the ECAD tool; automatically registering the ECAD service script in the ECAD tool for invocation; starting a service; the service is closed.
Fig. 10 is a schematic diagram showing an alternative configuration of a data processing apparatus provided in an embodiment of the present disclosure, and will be described in terms of the respective parts.
In some embodiments, the data processing apparatus 600 includes a task management module 601 and a shift execution module 602.
The task management module 601 is configured to, in response to receiving a first file transfer request, confirm a first original file corresponding to the first file transfer request, and send the first original file to the transfer execution module; transmitting at least one shift file;
the shift execution module 602 is configured to obtain the first original file, shift the first original file into at least one shift file, and send the at least one shift file to the task management module.
The task management module 601 is further configured to add a first file transfer task to a task list based on the first file transfer request after receiving the first file transfer request.
The task management module 601 is further configured to create a first temporary folder corresponding to the first shift task, and store the first original file into the first temporary folder;
the first temporary folder is used for storing a first original file and at least one shift file corresponding to the first original file.
The task management module 601 is further configured to obtain a first shift task from a task list before sending the first original file to the shift execution module; confirming whether a first temporary folder corresponding to the first shift task comprises at least one shift file corresponding to the first shift task or not; if the first temporary folder comprises the at least one shift file, the at least one shift file is sent to the task management module, and the first shift task and/or the first temporary folder corresponding to the first shift task are deleted; if the first temporary folder does not contain the at least one shift file, the first original file is sent to the shift execution module; the first shift task is a shift task with highest task priority or the earliest task priority added to the task list.
The shift execution module 602 is specifically configured to invoke a first service port to open the first original file;
generating at least one shift file from the first original file according to the shift configuration file;
encrypting and/or watermarking a first file in the at least one file.
The shift execution module is specifically configured to generate a password with a configurable number of bits, and encrypt the first shift file;
and generating a password file based on the password with the configurable number of bits.
The shift execution module 602 is specifically configured to confirm watermark parameters of the first shift file based on a configuration file;
adding a watermark in the first shift file based on the watermark parameter;
wherein the watermark parameters include: watermark spacing, watermark margin, watermark angle, watermark font style, watermark font color, watermark transparency, watermark text content, watermark number, and watermark position.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
Fig. 11 illustrates a schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 11, the electronic device 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
Various components in electronic device 800 are connected to I/O interface 805, including: an input unit 806 such as a keyboard, mouse, etc.; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, or the like. The communication unit 809 allows the electronic device 800 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 801 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the respective methods and processes described above, such as a data processing method. For example, in some embodiments, the data processing method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 800 via the ROM802 and/or the communication unit 809. When a computer program is loaded into RAM803 and executed by computing unit 801, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the data processing method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The foregoing is merely specific embodiments of the disclosure, but the protection scope of the disclosure is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the disclosure, and it is intended to cover the scope of the disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A data processing method, applied to a shift server, the shift server including a task management module and a shift execution module, the method comprising:
the task management module responds to a first file transfer request, confirms a first original file corresponding to the first file transfer request and sends the first original file to the transfer execution module;
the shift execution module acquires the first original file, shifts the first original file into at least one shift file, and sends the at least one shift file to the task management module;
the task management module sends the at least one shift file.
2. The method of claim 1, wherein the task management module, after receiving the first file transfer request, further comprises:
and adding a first shift task in a task list based on the first file shift request.
3. The method of claim 1 or 2, wherein said validating the first original file corresponding to the first file transfer request further comprises:
creating a first temporary folder corresponding to the first shift task, and storing the first original file into the first temporary folder;
The first temporary folder is used for storing a first original file and at least one shift file corresponding to the first original file.
4. The method of claim 3, wherein before the sending the first original file to the shift execution module, the method further comprises:
acquiring a first shift task from a task list;
confirming whether a first temporary folder corresponding to the first shift task comprises at least one shift file corresponding to the first shift task or not;
if the first temporary folder comprises the at least one shift file, the at least one shift file is sent to the task management module, and the first shift task and/or the first temporary folder corresponding to the first shift task are deleted;
if the first temporary folder does not contain the at least one shift file, the first original file is sent to the shift execution module;
the first shift task is a shift task with highest task priority or the earliest task priority added to the task list.
5. The method of claim 1, wherein the first original file is shifted to at least one shifted file, comprising:
Calling a first service port to open the first original file;
generating at least one shift file from the first original file according to the shift configuration file;
encrypting and/or watermarking a first file in the at least one file.
6. The method of claim 5, wherein encrypting and/or watermarking a first one of the at least one shift file comprises:
generating a password with a configurable number of bits, and encrypting the first shift file;
and generating a password file based on the password with the configurable number of bits.
7. The method of claim 5, wherein encrypting and/or watermarking a first one of the at least one shift file comprises:
confirming watermark parameters of the first shift file based on a configuration file;
adding a watermark in the first shift file based on the watermark parameter;
wherein the watermark parameters include: watermark spacing, watermark margin, watermark angle, watermark font style, watermark font color, watermark transparency, watermark text content, watermark number, and watermark position.
8. A data processing apparatus for use with a shift server, the apparatus comprising:
the task management module is used for responding to the received first file transfer request, confirming a first original file corresponding to the first file transfer request and sending the first original file to the transfer execution module; transmitting at least one shift file;
and the shift execution module is used for acquiring the first original file, shifting the first original file into at least one shift file and sending the at least one shift file to the task management module.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-7.
CN202310370924.XA 2023-04-04 2023-04-04 Data processing method, device, electronic equipment and storage medium Active CN116089363B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310370924.XA CN116089363B (en) 2023-04-04 2023-04-04 Data processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310370924.XA CN116089363B (en) 2023-04-04 2023-04-04 Data processing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116089363A true CN116089363A (en) 2023-05-09
CN116089363B CN116089363B (en) 2023-09-01

Family

ID=86204919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310370924.XA Active CN116089363B (en) 2023-04-04 2023-04-04 Data processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116089363B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020102007A1 (en) * 2001-01-31 2002-08-01 Xerox Corporation System and method for generating color digital watermarks using conjugate halftone screens
US20020114013A1 (en) * 2001-02-20 2002-08-22 Ricoh Company, Ltd. System, computer program product and method for managing documents
US20080024828A1 (en) * 2006-07-31 2008-01-31 Canon Kabushiki Kaisha Print controlling apparatus performing variable printing including watermark image, and method therefor
CN101777058A (en) * 2009-12-08 2010-07-14 江苏省电力试验研究院有限公司 Document management system
US20130031150A1 (en) * 2010-05-08 2013-01-31 Kamath Harish B Executing Transcription Requests on Files
US20140365543A1 (en) * 2013-06-07 2014-12-11 Canon Kabushiki Kaisha Document management server, document management method, and non-transitory storage medium storing program
US20150121548A1 (en) * 2013-10-24 2015-04-30 Cyber-Ark Software Ltd. System and method for protected publication of sensitive documents
US20170017779A1 (en) * 2015-07-17 2017-01-19 Box, Inc. Event-driven generation of watermarked previews of an object in a collaboration environment
US20170329943A1 (en) * 2016-05-12 2017-11-16 Markany Inc. Method and apparatus for embedding and extracting text watermark
CN107423629A (en) * 2017-04-12 2017-12-01 李晓妮 A kind of anti-method and system divulged a secret with tracing of fileinfo output
US20180307855A1 (en) * 2015-10-14 2018-10-25 Finalcode, Inc. Access management system, file access system, encrypting apparatus and program
CN109558705A (en) * 2018-12-10 2019-04-02 万兴科技股份有限公司 Watermark Tiling methods, device, computer equipment and storage medium based on PDF
CN110826300A (en) * 2019-10-10 2020-02-21 中国平安财产保险股份有限公司 Text file transferring method and device and related equipment
CN112035405A (en) * 2020-08-29 2020-12-04 平安科技(深圳)有限公司 Document transcoding method and device, scheduling server and storage medium
CN112258376A (en) * 2020-10-20 2021-01-22 中国农业银行股份有限公司 Encrypted document processing method and system
CN113554546A (en) * 2021-07-30 2021-10-26 北京东方国信科技股份有限公司 Watermark drawing method and device
CN114071149A (en) * 2020-07-30 2022-02-18 株洲中车时代电气股份有限公司 Distributed video transcoding method and related device
CN114969777A (en) * 2022-05-05 2022-08-30 联宝(合肥)电子科技有限公司 File access control method and device, electronic equipment and storage medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020102007A1 (en) * 2001-01-31 2002-08-01 Xerox Corporation System and method for generating color digital watermarks using conjugate halftone screens
US20020114013A1 (en) * 2001-02-20 2002-08-22 Ricoh Company, Ltd. System, computer program product and method for managing documents
US20080024828A1 (en) * 2006-07-31 2008-01-31 Canon Kabushiki Kaisha Print controlling apparatus performing variable printing including watermark image, and method therefor
CN101777058A (en) * 2009-12-08 2010-07-14 江苏省电力试验研究院有限公司 Document management system
US20130031150A1 (en) * 2010-05-08 2013-01-31 Kamath Harish B Executing Transcription Requests on Files
US20140365543A1 (en) * 2013-06-07 2014-12-11 Canon Kabushiki Kaisha Document management server, document management method, and non-transitory storage medium storing program
US20150121548A1 (en) * 2013-10-24 2015-04-30 Cyber-Ark Software Ltd. System and method for protected publication of sensitive documents
US20170017779A1 (en) * 2015-07-17 2017-01-19 Box, Inc. Event-driven generation of watermarked previews of an object in a collaboration environment
US20180307855A1 (en) * 2015-10-14 2018-10-25 Finalcode, Inc. Access management system, file access system, encrypting apparatus and program
US20170329943A1 (en) * 2016-05-12 2017-11-16 Markany Inc. Method and apparatus for embedding and extracting text watermark
CN107423629A (en) * 2017-04-12 2017-12-01 李晓妮 A kind of anti-method and system divulged a secret with tracing of fileinfo output
CN109558705A (en) * 2018-12-10 2019-04-02 万兴科技股份有限公司 Watermark Tiling methods, device, computer equipment and storage medium based on PDF
CN110826300A (en) * 2019-10-10 2020-02-21 中国平安财产保险股份有限公司 Text file transferring method and device and related equipment
CN114071149A (en) * 2020-07-30 2022-02-18 株洲中车时代电气股份有限公司 Distributed video transcoding method and related device
CN112035405A (en) * 2020-08-29 2020-12-04 平安科技(深圳)有限公司 Document transcoding method and device, scheduling server and storage medium
CN112258376A (en) * 2020-10-20 2021-01-22 中国农业银行股份有限公司 Encrypted document processing method and system
CN113554546A (en) * 2021-07-30 2021-10-26 北京东方国信科技股份有限公司 Watermark drawing method and device
CN114969777A (en) * 2022-05-05 2022-08-30 联宝(合肥)电子科技有限公司 File access control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN116089363B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
US10033533B2 (en) Mobile solution for signing and retaining third-party documents
US9182975B2 (en) Automatic application updates
US8640096B2 (en) Configuration of componentized software applications
CN111639287A (en) Page processing method and device, terminal equipment and readable storage medium
CN106843978B (en) SDK access method and system
US20230073638A1 (en) Local data classification based on a remote service interface
CN110109983B (en) Method and device for operating Redis database
US9525673B1 (en) Content protection for extract, transform, load (ETL) scripts
CN110928571A (en) Business program development method and device
US8738742B2 (en) Tiered XML services in a content management system
CN116089363B (en) Data processing method, device, electronic equipment and storage medium
CN111158777B (en) Component calling method, device and computer readable storage medium
CN107657155B (en) Method and device for authenticating user operation authority
KR20160138498A (en) System and method for supporting data type conversion in a heterogeneous computing environment
CN112272135B (en) Mail sending method, device, equipment and storage medium for storage software
TW201417029A (en) Source code management system, method, and program
CN113312900A (en) Data verification method and device
CN111158649A (en) Method and device for configuring multi-level parameters
CN113535565B (en) Interface use case generation method, device, equipment and medium
CN113656038B (en) Editing processing method and device
CN110262756B (en) Method and device for caching data
CN112637280B (en) Data transmission method, device, electronic equipment and storage medium
CN110855423A (en) Method, device and storage medium for encrypting and decrypting ordered numerical value string
CN113609421A (en) Page data updating method and device, computer equipment and storage medium
CN110737436A (en) Transcoding method, device and computer readable 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