E-04 - Injecter Flow Objectifs : > Objectifs bonus : > Nouveaux éléments : > E-04 - Injecter 59 No 15 E:/BlueWest/05-Formation/SWITCH/gabarit header/E/E4.png Green flag No No 00:00 00:00 No Monday Sunday No 1 Start of the month 57
Inject job processor Move Injecter travail 656 424 Default Default 0 Default Yes Unlimited ProblemFilesFolder producer Filter One Travaux à problème This flow only Default 10 10 104 720 Folder folder Dossier 10 #automanaged# No Default No 00:00 00:00 No Monday Sunday No 1 Start of the month Yellow No No Yes Yes Overwrite 1 No No Folders No 208 480 Filter 0 33 49 Gray No All Files No Files Folder folder Dossier 11 #automanaged# No Default No 00:00 00:00 No Monday Sunday No 1 Start of the month Yellow No No Yes Yes Overwrite 1 No No Folders No 800 424 Move Injecter 0 8 35 Green No Inject Incoming job Minutes 15 No Minutes 10 Specific job // Your imports here 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()`, NSmap); result = evaluation; } catch (e) { result = e.message; } return result.toString(); } // Do not remove calculateScriptExpression function. It must return a promise to the property value. async function calculateScriptExpression(s: Switch, flowElement: FlowElement, job: Job): Promise<string> { const baseRoot = "E:\\BlueWest\\05-Formation\\SWITCH\\FICHIER_FORMATION\\E -Notion avancées\\E-01\\"; const number = (await getXpath(job, "Submit", "/field-list/field[1]/value")).padStart(3, "0") const format = await getXpath(job, "Submit", "/field-list/field[2]/value") return `${baseRoot}\\${number}_Client\\${number}_${format}.pdf` } ]]> No No Injection job Folder folder Dossier 12 #automanaged# No Default No 00:00 00:00 No Monday Sunday No 1 Start of the month Yellow No No Yes Yes Overwrite 1 No No Folders No 800 512 Move Echouer -90 8 37 #ff0000 No Fail Incoming job Minutes 15 No Minutes 0 Incoming job No No Incoming job SubmitPoint producer Filter Unlimited Point d'envoi 1 #automanaged# Default No No No No Metadata only Files and folders 001 ]]> Submit Yes No 80 480 SwitchClient Filter 0 39 33 Gray No All Files No Files Folder folder Dossier 13 #automanaged# No Default No 00:00 00:00 No Monday Sunday No 1 Start of the month Yellow No No Yes Yes Overwrite 1 No No Folders No 800 360 Move -90 8 42 Gray No Inject Incoming job Minutes 15 No Minutes 0 Incoming job No No Incoming job RecycleBin consumer Move Yes Recycle bin is a flow element that deletes the jobs that come in. Tools 0800000000 trash can remove delete Corbeille #automanaged# 0 0 0 No Yes 904 424 Filter 0 35 44 Gray No All Files No Files RecycleBin consumer Move Yes Recycle bin is a flow element that deletes the jobs that come in. Tools 0800000000 trash can remove delete Corbeille #automanaged# 0 0 0 No Yes 896 512 Filter 0 37 46 Gray No All Files No Files InjectWildcard processor TrafficLight Inject Wildcard 328 624 Default Default Yes Unlimited E:/BlueWest/05-Formation/SWITCH/FICHIER_FORMATION/E -Notion avancées/E-01 Custom 5 5 Files only 0 1 01234.001.xml match filter No No 1 3 None 1 7 Modification date No Discard Ungroup Folder folder Dossier 14 #automanaged# No Default No 00:00 00:00 No Monday Sunday No 1 Start of the month Yellow No No Yes Yes Overwrite 1 No No Folders No 456 624 TrafficLight 0 49 50 Gray Data Log No Yes Yes Yes flowTrigger processor Move Flow trigger 88 624 Default Default No Unlimited Minutes 1 Dummy job [Counter] C:/Users/tdesc/Pictures/Enfocus/switch-logo-pack/word logo [Counter] 2 No [Counter] No No 2024 2099 No January December No 1 31 No Monday Friday No 0 23 No 0 59 Folder folder Dossier 15 #automanaged# No Default No 00:00 00:00 No Monday Sunday No 1 Start of the month Yellow No No Yes Yes Overwrite 1 No No Folders No 208 624 Move 0 52 53 Gray No Filter 0 53 49 Gray Yes All Files No Files Inject job processor Move Inject job 336 496 Default Default 0 Default Yes Unlimited