diff --git a/Ultima_04-Apply Template (1).xml b/Ultima_04-Apply Template (1).xml new file mode 100644 index 0000000..4b4f2b2 --- /dev/null +++ b/Ultima_04-Apply Template (1).xml @@ -0,0 +1,2076 @@ + + +
+ + Ultima_04-Apply Template (1) + Flow + Created at 28/04/2023 09:42 + + Ultima_04-Apply Template (1) + 13466 + No + 47 + D:/Enfocus/Enfocus Switch Dataroot/PropertySets/499/Grille Switch.png + D:/Enfocus/Enfocus Switch Dataroot/PropertySets/498/logo.png + Green flag + No + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + 154 + +
+ + + ProblemFilesFolder + producer + Filter + One + Problem jobs + + This flow only + Default + 10 + 10 + 80 + 224 + + + + + + Folder + folder + priority + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + Cyan + No + No + + + + + -999999999 + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 112 + 544 + + + + + + Folder + folder + - + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 176 + 704 + + + + + + Unpack job + processor + TrafficLight + - + + 176 + 624 + + Default + Default + 0 + Default + Yes + Unlimited + + Yes + Restore and replace + Restore and replace + No + 5 + + + + + Subflow-Receive + processor + Move + Subflow - Receive + + 16 + 464 + + Default + Default + No + Unlimited + + + + + Subflow-SendBack + processor + Move + Success + + 1328 + 464 + + Default + Default + Yes + No + Success + [Job.FailElement] : [Job.FailMessage] + No + <?xml version="1.0" encoding="utf-8"?> +<root> + <tag1>Hello world!</tag1> +</root> + + XML + log + 0 + + + + + Pack job + processor + Move + Pack job + + 112 + 624 + + Default + Default + 0 + Default + Yes + Unlimited + Yes + Yes + Yes + + + + + + Folder + folder + - + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 112 + 464 + + + + + + Folder + folder + Packed job + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Add version number + _v + 2 + No + No Folders + + + No + 112 + 704 + + + + + + Folder + folder + - + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 176 + 464 + + + + + + Filter + + + 0 + 1 + 1874 + Gray + No + All Files + No Files + + + + + Filter + + + 0 + 1481 + 616 + Gray + No + All Files + No Files + + + + + Filter + + + 0 + 1846 + 1854 + Gray + No + All Files + No Files + + + + + TrafficLight + + + 0 + 1854 + 2041 + Gray + Data + Log + No + Yes + Yes + + + + + Move + + + 0 + 2 + 617 + Gray + No + + + + + Move + + + 0 + 616 + 620 + Gray + No + + + + + Filter + + + 0 + 617 + 626 + Gray + No + All Files + No Files + + + + + Folder + folder + - + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 848 + 464 + + + + + + Folder + folder + - + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 176 + 224 + + + + + + RetryIt + processor + TrafficLight + 3 retry + + 272 + 304 + + Default + Default + Yes + Unlimited + 3 + up + retryInjectTemplate + No + + + + + Filter + Overlay PDF + + -90 + 1874 + 1876 + Green + No + + + + Overlay PDF + [Job.FailModule] + + + + +]]> + No Files + + + + + TrafficLight + + + -90 + 1876 + 1908 + Green + Data + Log + No + Yes + No + + + + + OverlayPDF + processor + TrafficLight + Overlay PDF + E:\Artwork Templates + 944 + 464 + + Default + Default + Yes + Unlimited + External file + [Metadata.Text:Dataset="envVariables",Model="XML",Path="/Data/path/ressources/template"]\[Metadata.Text:Dataset="Masterdata",Model="XML",Path="/Data/file/template/name",Space="trim"].pdf + Alphabetically first in root folder + + + Default + All non-master files + + + Overlay on top + Keep overprints from the overlay + Do not scale + Stop after the last overlay page + + Default + + The number of master and overlay pages is not equal + +]]> + + + + + Folder + folder + Success + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 1040 + 464 + + + + + + TrafficLight + + + 0 + 1879 + 1887 + Green + Data + Log + No + Yes + No + + + + + Folder + folder + Fail + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 368 + 224 + + + + + + TrafficLight + + + 90 + 1876 + 1889 + #ff0000 + Data + Log + No + No + Yes + + + + + Subflow-SendBack + processor + Move + Fail + + 560 + 224 + + Default + Default + Yes + No + Fail + Inject job : Failed to inject template after [Job.PrivateData:Key="retryInjectTemplate"] try from path "[Job.PrivateData:Key="templatePath"]". + No + <?xml version="1.0" encoding="utf-8"?> +<root> + <tag1>Hello world!</tag1> +</root> + + XML + log + 0 + + + + + Filter + + + 0 + 1887 + 1920 + Gray + No + All Files + No Files + + + + + Filter + + + 0 + 1889 + 13464 + Gray + No + All Files + No Files + + + + + Hold job + processor + Move + Hold 1mn + + 464 + 384 + + 0 + Yes + Unlimited + Default + Delay + Minutes + 1 + + Minutes + 0 + 0 + Cyclic + + + + + Folder + folder + Retry + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 368 + 384 + + + + + + Filter + + + 0 + 1908 + 1907 + Gray + No + All Files + No Files + + + + + Move + + + 90 + 1907 + 1868 + Gray + No + 0 + No + 0 + 0 + 0 + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of month + No + Minutes + 0 + + + + + Folder + folder + Error + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 1040 + 544 + + + + + + TrafficLight + + + -90 + 1879 + 1913 + #ff0000 + Data + Log + No + No + Yes + + + + + Filter + + + 0 + 1868 + 1879 + Gray + No + All Files + No Files + + + + + Filter + + + 90 + 1874 + 1985 + #ff0000 + No + All Other Files + No Files + + + + + Enfocus~PitStop Server + processor + TrafficLight + fix template layer + + 1136 + 464 + + 0 + Default + Yes + Unlimited + No + 100 + 1200 + 300 + No + No + Yes + Yes + Current + + Yes + No + JPEGMedium + JPEGMedium + CCITTGroup3 + None + Yes + No + Yes + Resolution + 72 + Automatic + Automatic + + + + D:/Enfocus/Enfocus Switch Dataroot/PropertySets/496/PropertySet + + + Unchanged + No + No + No + + + + + + + + + + + + No + Yes + Generic Enfocus Gray + Adobe RGB (1998) + ISO Coated v2 (ECI) + Generic Enfocus Lab + No + No + Generic Enfocus Gray + Adobe RGB (1998) + ISO Coated v2 (ECI) + Generic Enfocus Lab + No + Object defined + Same as images + Generic Enfocus Gray + Adobe RGB (1998) + ISO Coated v2 (ECI) + Generic Enfocus Lab + No + No + Generic Enfocus Gray + Adobe RGB (1998) + ISO Coated v2 (ECI) + Generic Enfocus Lab + No + Object defined + No + Yes + + No + No + File size only + PDF + + Yes + + v3 + Default + Default + v3 + Default + Default + + Points + + Yes + + + + + Folder + folder + - + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 1232 + 464 + + + + + + Filter + + + 0 + 1934 + 5 + Gray + No + All Files + No Files + + + + + Filter + + + 0 + 626 + 2047 + Blue + No + + + + _template.pdf + [Job.Name] + + + + +]]> + No Files + + + + + Folder + folder + - + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 272 + 224 + + + + + + Filter + + + 0 + 1985 + 1889 + Gray + No + All Files + No Files + + + + + TrafficLight + + + 0 + 1920 + 1934 + Gray + Data + Log + No + Yes + Yes + Yes + + + + + Folder + folder + - + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 464 + 464 + + + + + + Filter + Assert exist + + 0 + 1988 + 2019 + Green + No + + import fs from "fs"; + +async function getXpath(job: Job, dataset: string, xpath: string): Promise<string> { + let result: string | number | boolean; + try { + const datasetPath = await job.getDataset(dataset, AccessLevel.ReadOnly); + const XML = XmlDocument.open(datasetPath); + const NSmap = XML.getDefaultNSMap(); + const evaluation = XML.evaluate(`string(${xpath})`, NSmap); + //@ts-ignore + result = evaluation; + } catch (e) { + result = e.message; + } + return result.toString(); +} + + +async function calculateScriptExpression(s: Switch, flowElement: FlowElement, job: Job): Promise<boolean> { + + const rootPath = await getXpath(job, "envVariables", "/Data/path/ressources/template") + const templateName = await getXpath(job, "Masterdata", "/Data/file/template/name") + const filePath = `${rootPath}\\${templateName}.pdf` + return fs.existsSync(filePath) +} + + +]]> + No Files + + + + + Filter + + + 90 + 1913 + 1934 + Gray + No + All Files + No Files + + + + + OpaquePickup + processor + TrafficLight + Opaque pickup + + 752 + 464 + + Default + Default + Yes + Unlimited + 0400000000 + Template + Metadata alongside asset + <ValueDescription Type="patterns"> + <Value>*_template.pdf</Value> +</ValueDescription> + + 15 + + *.log + +]]> + 1 + + + + + Inject job + processor + Move + Inject job + + 560 + 464 + + Default + Default + 0 + Default + Yes + Unlimited + + + + + Move + + + 0 + 2019 + 2024 + Green + No + Inject + Incoming job + Minutes + 15 + No + + Minutes + 0 + Incoming job + + No + + + + No + Incoming job + + + + + + Folder + folder + template + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 656 + 544 + + + + + + Move + + + -90 + 2019 + 2021 + Cyan + No + Inject + Incoming job + Minutes + 15 + No + + Minutes + 0 + Specific job + [Metadata.Text:Dataset="envVariables",Model="XML",Path="/Data/path/ressources/template"]\[Metadata.Text:Dataset="Masterdata",Model="XML",Path="/Data/file/template/name",Space="trim"].pdf + No + + + + No + Custom + [Job.NameProper]_template.pdf + + + + + Filter + + + 90 + 2021 + 2018 + Gray + No + All Files + No Files + + + + + Folder + folder + Job + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 656 + 464 + + + + + + Filter + + + 0 + 2024 + 2018 + Gray + No + All Files + No Files + + + + + Folder + folder + Warning + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + Cyan + No + No + + + Warning + + + preflightStatus=Warning +preflightStatus_translated=Warning +actionList_translated=01_Force;02_Check again;03_Trash bin +additionalWarning=No template found! Please add it manually. + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 656 + 624 + + + + + + TrafficLight + + + 0 + 2018 + 1868 + Gray + Data + Log + No + Yes + Yes + + + + + Subflow-SendBack + processor + Move + Error + + 752 + 624 + + Default + Default + Yes + No + Warning + Inject job : Failed to inject from path "[Job.PrivateData:Key="templatePath"]". + No + <?xml version="1.0" encoding="utf-8"?> +<root> + <tag1>Hello world!</tag1> +</root> + + XML + log + 0 + + + + + Filter + + + 0 + 2026 + 2029 + Gray + No + All Files + No Files + + + + + Job_info + processor + Move + Ultima_04-Apply Template + + 368 + 464 + + Default + Default + Yes + One + Set + Ultima_04-Apply Template + Refresh + Refresh + None + None + None + None + None + + + + + + + + + + + + + + + Move + + + 0 + 2031 + 1988 + Gray + No + + + + + Filter + + + -90 + 1988 + 2026 + Gray + No + All Other Files + No Files + + + + + Folder + folder + - + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 176 + 544 + + + + + + Filter + + + 0 + 2041 + 626 + Gray + No + All Files + No Files + + + + + Rename job + processor + Move + Gestion _template + + 272 + 568 + + Default + Default + 0 + Default + Yes + One + All jobs + No + Original + Leave alone + 1 + Add suffix after filename proper + _count + Search and replace + Complete filename + + + 1 + 0 + _template.pdf + -template.pdf + Once + Local8bit + Underscore + + <ValueDescription Type="regexp"><Value>\d+$</Value></ValueDescription> + 3 + None + Filename proper + + + 1 + 0 + + + + Local8bit + Underscore + + <ValueDescription Type="regexp"><Value>\d+$</Value></ValueDescription> + 3 + None + Filename proper + + + 1 + 0 + + + + Local8bit + Underscore + + <ValueDescription Type="regexp"><Value>\d+$</Value></ValueDescription> + 3 + None + Filename proper + + + 1 + 0 + + + + Local8bit + Underscore + + <ValueDescription Type="regexp"><Value>\d+$</Value></ValueDescription> + 3 + None + Filename proper + + + 1 + 0 + + + + Local8bit + Underscore + + <ValueDescription Type="regexp"><Value>\d+$</Value></ValueDescription> + 3 + + + + + Folder + folder + - + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 272 + 464 + + + + + + Move + + + 0 + 2047 + 2049 + Gray + No + + + + + Filter + + + 0 + 2049 + 2031 + Gray + No + All Files + No Files + + + + + Filter + + + 0 + 626 + 2049 + Orange + No + All Other Files + No Files + + + + + FlowLinksSend + processor + Move + 97-Switch Report + + 560 + 304 + + Default + Default + Yes + No + 97-Switch Report + Don't add metadata + Masterdata + // Lines starting with a double slash like this line are considered general comments and are ignored. + +// In the following line a data map is done with "TagName1" is name of the Private Data or XML dataset tag and "TagValue1" as value +TagName1=TagValue1 + +// The following line has a comment which will be added to the XML dataset. It can be used to add extra info, by example if the info map contains a dimension the comment can explain the unit of the dimension +TagName2=TagValue2// This comment will be added to the XML dataset. + +// The following lines show how nested values can be created in an XML dataset. +ParentTag.ChildTag1=TagValue3 +ParentTag.ChildTag2=TagValue4 + + + + + Folder + folder + - + + #automanaged# + No + + Default + No + 00:00 + 00:00 + No + Monday + Sunday + No + 1 + Start of the month + #808080 + No + No + + + + + + + Yes + Yes + Overwrite + + 1 + No + No Folders + + + No + 464 + 224 + + + + + + Filter + + + 0 + 13464 + 1891 + Gray + No + All Files + No Files + + + + + Filter + + + -90 + 13464 + 13463 + Gray + No + All Files + No Files + + +