Summary of the invention
The embodiment of the present invention is provided for carrying out the method and device of intelligent work in a kind of printing-flow software, to solve
Printing-flow software certainly existing in the prior art can only realize single operating mode problem.
The embodiment of the invention provides a kind of methods in printing-flow software for carrying out intelligent work, comprising:
Dispatch processor is handled file destination after node before calling;
The dispatch processor monitor it is described before after node processing, determine it is described before after node and subsequent section
The customization condition set between point;
The dispatch processor calls plug-in unit according to the preceding file destination after node processing to the customization condition
It is parsed, obtains parsing result;
The dispatch processor judges whether to call the descendant node to described preceding after node according to the parsing result
Carry out that treated that file destination is handled.
It allows users to impose a condition according to their own needs due to increasing new plug-in unit in the present invention, to realize
For different file and resource, different business process system processing is carried out, and then realizes the workflow of automated intelligent
Journey mode.
Preferably, after the non-first node of node before described, the file destination be it is described before after node as descendant node
When, by the preceding file after node processing;
It is described before after node be first node, the file destination be user submit original document.
Preferably, before the dispatch processor calling after node handles file destination, further includes:
The dispatch processor monitor it is described before after node processing, however, it is determined that it is described before after node with it is described
Not set customization condition between descendant node calls the descendant node to carry out the preceding file destination after node processing
Processing.
That is, when dispatch processor calls plug-in unit to determine not set customization condition between two nodes, the knot of parsing
Fruit is right, then descendant node is called to handle the preceding file destination after node processing.
Preferably, the dispatch processor calls plug-in unit according to the preceding file destination after node processing to described fixed
Condition processed is parsed, and parsing result is obtained, and is specifically included:
If the dispatch processor calls the plug-in unit to determine in the expression formula generated according to the customization condition comprising patrolling
Expression formula and independent expression formula are collected, the dispatch processor calls the plug-in unit to carry out the logical expression in the expression formula
Parsing, obtains at least one independent expression formula, and call the plug-in unit according to the preceding file destination pair after node processing
At least one described independent expression formula and the independent expression formula that resolution logic expression formula obtains are parsed, and parsing knot is obtained
Fruit;
If the dispatch processor calls the plug-in unit to determine in the expression formula generated according to the customization condition
Logical expression, the dispatch processor call the plug-in unit to parse the logical expression, obtain at least one solely
Vertical expression formula, and the plug-in unit is called to be obtained according to the preceding file destination after node processing to resolution logic expression formula
At least one described independent expression formula is parsed, and parsing result is obtained;
If the dispatch processor calls the plug-in unit to determine in the expression formula generated according to the customization condition
Independent expression formula, the dispatch processor call the plug-in unit according to the preceding file destination after node processing to described only
Vertical expression formula is parsed, and parsing result is obtained.
Due to being parsed to obtain parsing result to customization condition according to file destination by plug-in unit, to realize complicated business
The processing of process provides the foundation.
Preferably, the dispatch processor judges whether to call the descendant node to before described according to the parsing result
Carry out that treated that file destination is handled after node, comprising:
If the parsing result indicates correct, the dispatch processor calls the descendant node to the first object text
Part is handled;
If the parsing result indicates mistake, the dispatch processor never calls the descendant node.
Since dispatch processor is scheduled descendant node according to parsing result, to realize printing-flow software to not
With the examination and filtering of resource and file, and then realize the workflow mode of automatic self energy.
Preferably, the dispatch processor determines the node for needing to call according to following manner, further includes:
The dispatch processor determines the node for needing to call according to operation flow set by user.
The embodiment of the invention provides the devices for being used to carry out intelligent work in a kind of printing-flow software comprising:
Calling module, for being handled after node file destination before calling;
Determining module, for monitor it is described before after node processing, determine it is described before after node and subsequent section
The customization condition set between point;
Parsing module, for call plug-in unit according to the preceding file destination after node processing to the customization condition into
Row parsing, obtains parsing result;
Judgment module, for according to the parsing result judge whether to call the descendant node to it is described it is preceding after node into
Treated that file destination is handled for row.
Preferably, the parsing module is also used to:
Monitor it is described before after node processing, however, it is determined that it is described before after between node and the descendant node not
Customization condition is set, the descendant node is called to handle the preceding file destination after node processing.
Preferably, the parsing module, is specifically used for:
If the plug-in unit is called to determine in the expression formula generated according to the customization condition comprising logical expression and independence
Expression formula then calls the plug-in unit to parse the logical expression in the expression formula, obtains at least one and independently expresses
Formula, and call that the plug-in unit obtains resolution logic expression formula according to the preceding file destination after node processing at least one
A independent expression formula and the independent expression formula are parsed, and parsing result is obtained;
If the plug-in unit is called to determine in the expression formula generated according to the customization condition only comprising logical expression, adjust
The logical expression is parsed with the plug-in unit, obtains at least one independent expression formula, and call the plug-in unit according to
File destination before described after node processing carries out at least one described independent expression formula that resolution logic expression formula obtains
Parsing, obtains parsing result;
If the plug-in unit is called to determine in the expression formula generated according to the customization condition only comprising independent expression formula, adjust
The independent expression formula is parsed according to the preceding file destination after node processing with the plug-in unit, obtains parsing knot
Fruit.
Preferably, the judgment module, is specifically used for:
If the parsing result indicates correct, the descendant node is called to handle the first object file;
If the parsing result indicates mistake, the descendant node is never called.
Preferably, the calling module, is also used to:
According to operation flow set by user, the node for needing to call is determined
Specific embodiment
The dispatch processor of the embodiment of the present invention is handled file destination after node before calling, monitor it is described before
After node processing, determine it is described before after the customization condition set between node and descendant node, then call plug-in unit root
The customization condition is parsed according to the preceding file destination after node processing, obtains parsing result;And according to described
Parsing result judges whether to call the descendant node preceding after node to carry out that treated to described file destination is handled.This
Kind technical solution allows users to impose a condition according to their own needs due to increasing new plug-in unit, realizes for difference
File and resource, different business process system processing are carried out, to realize the workflow mode of automated intelligent, in turn
Solve the problems, such as that printing-flow software can only realize single operating mode in the prior art.
The embodiment of the present invention is described in further detail with reference to the accompanying drawing.
As indicated with 1, the method in one printing-flow software of the embodiment of the present invention for carrying out intelligent work, comprising:
Step 100, dispatch processor is handled file destination after node before calling;
Step 101, the dispatch processor monitor it is described before after node processing, determine it is described before after node
The customization condition set between descendant node;
Step 102, the dispatch processor calls plug-in unit according to the preceding file destination after node processing to described
Customization condition is parsed, and parsing result is obtained;
Step 103, the dispatch processor judges whether to call the descendant node to described according to the parsing result
It is preceding to carry out that treated that file destination is handled after node.
Wherein, node refers to business logic modules, for example, file conversion module, generate preview module, pre- winged module,
Spell folding module etc..It is preceding to have one descendant node of multiple correspondences after node, before being also possible to one after node correspond to it is multiple after
After node.
Plug-in unit is interface of the developer by extension intelligent workflow, according to interface constraints exploitation.
Preferably, the dispatch processor determines the node for needing to call according to following manner, further includes:
The dispatch processor determines the node for needing to call according to operation flow set by user.
It is that user sets before, or in system that is, needing which node used in operation flow
Included operation flow.
According to the operation flow set, dispatch processor determination needs which node called.
The connection relationship of each node can be arranged in user according to demand by panel, and can arbitrarily drag the position of node
Set, restart or multi-pass operation after, system can also remember the position of node.
If system can provide prompt in line, and show node it should be noted that cannot be connected between two nodes
Between connection relationship be disconnect.
User can also check actual processing progress by clicking node.
It is illustrated by taking such as Fig. 2 as an example, PDF tool is connect with black and white print module, can also be connected with colour print module
It connects, can also be connect simultaneously with the two modules.
When there is anchor point label between connecting line, prompt user that customization condition can be set, as PDF tool and black and white print
Black dot on module line is anchor point label, and user opens flow path conditions editor progress by clicking or double-clicking anchor point
Setting, wherein sets initial connection condition and logical operator etc., user can pass through process item in flow path conditions editor
Initial connection condition setting condition is set in part editor, can also increase the performance shape of conditional expression newly with custom condition
Formula can there are many, following pull-shaped formula increases built-in conditional expression newly etc..When marking on line without anchor point, user is then not
Customization condition can be set.
Preferably, after the non-first node of node before described, the file destination be it is described before after node as descendant node
When, by the preceding file after node processing;
It is described before after node be first node, the file destination be user submit original document.
That is, before in step 100 after node be first node when, wherein first node call file destination
It is exactly the original document that user submits, before in step 100 when node is second node or other non-first nodes, calls
File destination be file destination before second node or other non-first nodes after node processing.
Preferably, before the dispatch processor calling after node handles file destination, further includes:
The dispatch processor monitor it is described before after node processing, however, it is determined that it is described before after node with it is described
Not set customization condition between descendant node calls the descendant node to carry out the preceding file destination after node processing
Processing.
Dispatch processor is after customization condition not set between node and descendant node before calling plug-in unit to determine, then plug-in unit will
Its parsing result is set as correct, that is to say, that file destination meets requirement to be processed, and dispatch processor calls descendant node
File destination is handled.
Preferably, the dispatch processor calls plug-in unit according to the preceding file destination after node processing to described fixed
Condition processed is parsed, and parsing result is obtained, and is specifically included:
If the dispatch processor calls the plug-in unit to determine in the expression formula generated according to the customization condition comprising patrolling
Expression formula and independent expression formula are collected, the dispatch processor calls the plug-in unit to carry out the logical expression in the expression formula
Parsing, obtains at least one independent expression formula, and call the plug-in unit according to the preceding file destination pair after node processing
At least one described independent expression formula and the independent expression formula that resolution logic expression formula obtains are parsed, and parsing knot is obtained
Fruit;
If the dispatch processor calls the plug-in unit to determine in the expression formula generated according to the customization condition
Logical expression, the dispatch processor call the plug-in unit to parse the logical expression, obtain at least one solely
Vertical expression formula, and the plug-in unit is called to be obtained according to the preceding file destination after node processing to resolution logic expression formula
At least one described independent expression formula is parsed, and parsing result is obtained;
If the dispatch processor calls the plug-in unit to determine in the expression formula generated according to the customization condition
Independent expression formula, the dispatch processor call the plug-in unit according to the preceding file destination after node processing to described only
Vertical expression formula is parsed, and parsing result is obtained.
Specifically, user is by the flow path conditions editing machine in plug-in unit, the customization being configured for the demand of user
Then condition generates logical expression and/or independent expression formula, carry out related description with regard to different situations separately below.
If the customization condition of user setting is 2 parts of printing, flow path conditions editing machine only generates independent expression formula " print
NO.=5 " need to only pass through the expression formula solution in plug-in unit there is no need to handle plug-in unit by the logical condition in plug-in unit to be parsed
Parser parses independent expression formula according to file destination.
If the customization condition of user setting is page number size A4, color mode black and white, printing number 2, the printing page number 5,
Logical expression " (size=A4) and (color mode=gray) and (print count that flow path conditions editing machine generates
=2) and (print=5) " need to call the logical condition in plug-in unit to handle plug-in unit and said one logical expression is parsed into 4
Then a independent expression formula parses independent expression formula according to file destination by the expression interpreter in plug-in unit,
The file destination for exactly selecting the condition of satisfaction by plug-in unit according to above-mentioned condition, the file destination for being unsatisfactory for condition parse
It as a result is mistake, it is correct for meeting the parsing result of condition.
If being " size=A4 " and " (page NO.=1-2) and (page NO.=according to customization condition set by user
5) ", then the processing of the logical condition in plug-in unit is first passed through to logical expression (page NO.=1-2) and (page NO.=5) to insert
Part is resolved to independent expression formula page NO.=1-2 and page NO.=5, then passes through the expression interpreter in plug-in unit
Independent expression formula is parsed, and for independent expression formula size=A4 only need to by the expression interpreter in plug-in unit according to
File destination parses independent expression formula, obtains parsing result.
For meeting the file destination of condition, then parsing result is correct, ungratified, and parsing result is mistake.For example,
Existing A3 also has an A4 in page size in file destination, and page size is A4 in customization condition, then page size is A4
File meet condition, obtained parsing result be it is correct, with regard to call descendant node it is handled, and page size be A3
File be unsatisfactory for condition, obtained parsing result be mistake, just never call descendant node and it handled.
When there is multiple conditions, otherwise it is mistake that it is correct for, which needing to meet simultaneously condition resolution result,.Such as: customization item
Part is page size A4, and the page number in the range of 20-30, then the page size that the page number is 20-30 in file destination is A4's
The parsing result of file destination be it is correct, with regard to call descendant node it is handled, other are mistake, just never call subsequent section
Point handles it.
Preferably, the dispatch processor judges whether to call the descendant node to before described according to the parsing result
Carry out that treated that file destination is handled after node, comprising:
If the parsing result indicates correct, the dispatch processor calls the descendant node to the first object text
Part is handled;
If the parsing result indicates mistake, the dispatch processor never calls the descendant node.
That is, if being unsatisfactory for customization condition scheduling office by parsing to customization condition according to file destination
Reason device does not recall descendant node and handles file destination;If according to file destination by being parsed to customization condition,
Meet customization condition, then dispatch processor calls descendant node to handle the file destination for the condition that meets.
System can remember customization condition and customize the parsing result of condition.
Above-mentioned process is described in detail by taking specific application scenarios as an example below.
Its application scenarios is that original document is page 1000, need to be to wherein the 1-20 pages colour print, the 200-500 pages black and white
Printing, then the connection type of its node prints the page number as shown in Fig. 2, condition is arranged on PDF tool and black and white print module
200-500 is arranged condition on PDF tool and black and white print module and prints page number 1-20.
Dispatch processor will call normalizer to handle original document first, obtain the file of PDF format, dispatch
Processor calls plug-in unit to determine and does not impose a condition between normalizer and PDF tool, then plug-in unit will be between normalizer and PDF tool
Correct parsing result is saved in the parsing result file of condition, then dispatch processor calls PDF tool to being converted into PDF format
Original document perform corresponding processing, such as zoom in or out the picture or text in file.
Due to being provided with condition, then dispatch processor tune between PDF tool and black and white print module, colour print module
Condition file above-mentioned two node is parsed, meet condition document analysis result be it is correct, be unsatisfactory for
It is mistake.Wherein file of the page number between 200-500 pages is eligible on PDF tool and black and white print module, parsing knot
Fruit is correct, other mistakes, then dispatch processor calls black and white print module to locate the 200-500 pages of file accordingly
Reason, the treatment process between PDF tool and colour print module is similar with the treatment process of PDF tool and black and white print module,
Details are not described herein.
As shown in figure 4, the method in four printing-flow software of the embodiment of the present invention for carrying out intelligent work, comprising:
Step 400, user needs that the node for needing to call is arranged according to operation flow, as shown in figure 3, and customization item
Part.
Wherein, the customization condition being arranged between first node normalizer and second node PDF tool is page number 20-30;
Second node PDF tool and third node draw a design customization condition that intermodule is set as page size A4.
Step 401, the original document that dispatch processor calls normalizer to submit user is handled.
Step 402, dispatch processor is called and is inserted after the completion of the original document that normalizer submits user is handled
Part parses condition, is judged whether that PDF tool is called to select if parsing result is correct according to plug-in unit parsing result
Meet file of the page number between 20-30, thens follow the steps 403, it is no to then follow the steps 404.
Step 403, dispatch processor calls PDF tool to meet file of the page number between 20-30 and carry out phase to selecting
The processing answered.
Step 404, dispatch processor never calls second node, and process terminates.
Step 405, dispatch processor PDF tool to select meet file of the page number between 20-30 carry out it is corresponding
Processing after, call plug-in unit to parse conditions pages size A4, judge whether to call according to plug-in unit parsing result and draw a design mould
Block selects the file having a size of A4 that meets the page number, then follow the steps 406, no to then follow the steps 407.
Step 406, dispatch processor calling is drawn a design, and module to the page number, draw a design by the file of PDF format between 20-30,
Process terminates.
Step 407, dispatch processor never calls module of drawing a design, and process terminates.
It should be noted that user is only provided with three nodes and handles file in above-mentioned operation flow, if user
When provided with two or more nodes, workflow with time similar details are not described herein.
Based on the same inventive concept, it is additionally provided in the embodiment of the present invention in a kind of printing-flow software for carrying out intelligence
The device of work, due to being printed in printing-flow software of the embodiment of the present invention for carrying out the corresponding method of device of intelligent work
Method in brush process software for carrying out intelligent work, therefore the implementation of the device of that embodiment of the invention may refer to the reality of method
It applies, overlaps will not be repeated.
As shown in figure 5, the embodiment of the invention provides the device for being used to carry out intelligent work in a kind of printing-flow software,
Comprising:
Calling module 500, for being handled after node file destination before calling;
Determining module 501, for monitor it is described before after node processing, determine it is described before after node and subsequent
The customization condition set between node;
Parsing module 502, for calling plug-in unit according to the preceding file destination after node processing to the customization item
Part is parsed, and parsing result is obtained;
Judgment module 503 calls the descendant node to described preceding after section for being judged whether according to the parsing result
Point carries out that treated that file destination is handled.
Preferably, the parsing module 502 is also used to:
Monitor it is described before after node processing, however, it is determined that it is described before after between node and the descendant node not
Customization condition is set, the descendant node is called to handle the preceding file destination after node processing.
Preferably, the parsing module 502, is specifically used for:
If the plug-in unit is called to determine in the expression formula generated according to the customization condition comprising logical expression and independence
Expression formula then calls the plug-in unit to parse the logical expression in the expression formula, obtains at least one and independently expresses
Formula, and call that the plug-in unit obtains resolution logic expression formula according to the preceding file destination after node processing at least one
A independent expression formula and the independent expression formula are parsed, and parsing result is obtained;
If the plug-in unit is called to determine in the expression formula generated according to the customization condition only comprising logical expression, adjust
The logical expression is parsed with the plug-in unit, obtains at least one independent expression formula, and call the plug-in unit according to
File destination before described after node processing carries out at least one described independent expression formula that resolution logic expression formula obtains
Parsing, obtains parsing result;
If the plug-in unit is called to determine in the expression formula generated according to the customization condition only comprising independent expression formula, adjust
The independent expression formula is parsed according to the preceding file destination after node processing with the plug-in unit, obtains parsing knot
Fruit.
Preferably, the judgment module 503, is specifically used for:
If the parsing result indicates correct, the descendant node is called to handle the first object file;
If the parsing result indicates mistake, the descendant node is never called.
Preferably, the calling module 500, is also used to:
According to operation flow set by user, the node for needing to call is determined
It can be seen from the above: the dispatch processor of the embodiment of the present invention carries out file destination after node before calling
Processing, monitor it is described before after node processing, determine it is described before after the customization set between node and descendant node
Then condition is called plug-in unit to be parsed according to the preceding file destination after node processing to the customization condition, is obtained
Parsing result;And judge whether to call the descendant node preceding to carry out after node that treated to described according to the parsing result
File destination is handled.This technical solution allows users to set according to their own needs due to increasing new plug-in unit
Condition realizes and carries out different business process system processing for different file and resource, to realize automated intelligent
Workflow mode, and then solve the problems, such as that printing-flow software can only realize single operating mode in the prior art.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.