Search found 375 matches

by magnussandstrom
Wed May 08, 2024 12:54 pm
Forum: Flows
Topic: Compose XML for HTTP POST using file in hot folder
Replies: 33
Views: 368

Re: Compose XML for HTTP POST using file in hot folder

This is an example of a file name that would be dropped into the hot folder that contains a job name: 037984-24_001_8-C-Y.pdf The Job Name is 037984-24 The Job number is 037984 and the production year is 24 for 2024 the last digit of the Job number determines which server it will be homed to as the...
by magnussandstrom
Wed May 08, 2024 12:46 pm
Forum: Flows
Topic: Compose XML for HTTP POST using file in hot folder
Replies: 33
Views: 368

Re: Compose XML for HTTP POST using file in hot folder

http.png
http.png (100.6 KiB) Viewed 8 times
by magnussandstrom
Tue May 07, 2024 10:39 pm
Forum: Flows
Topic: Compose XML for HTTP POST using file in hot folder
Replies: 33
Views: 368

Re: Compose XML for HTTP POST using file in hot folder

By looking at the script I guess you are doing the following: 1. Fetch a job number containing 6 digits followed by a dash and two more digits from filename 2. Fetch the 6th digit in that job number as case 3. Use that case digit to set the URL If that's correct - here is a flow that does that using...
by magnussandstrom
Tue May 07, 2024 9:48 pm
Forum: Flows
Topic: Compose XML for HTTP POST using file in hot folder
Replies: 33
Views: 368

Re: Compose XML for HTTP POST using file in hot folder

teetomterrific wrote: Tue May 07, 2024 8:12 pm Here you go
Thanks, could you also provide a couple of example jobnames?
by magnussandstrom
Tue May 07, 2024 7:17 pm
Forum: Flows
Topic: Compose XML for HTTP POST using file in hot folder
Replies: 33
Views: 368

Re: Compose XML for HTTP POST using file in hot folder

The script does more than send the Post. It also determines which Server out of 5 the POST needs to be sent to and formats the server URL by using Regular Expressions to pull the last digit of the Job name to a select case for the server. I understand your frustration, but we are just trying to hel...
by magnussandstrom
Tue May 07, 2024 2:53 pm
Forum: Flows
Topic: Compose XML for HTTP POST using file in hot folder
Replies: 33
Views: 368

Re: Compose XML for HTTP POST using file in hot folder

Why bother with a script when there is an out of the box solution?
freddyp wrote: Thu May 02, 2024 11:36 am 5: you can avoid the use of a script expression by using v20 of HTTP request and choosing "POST a body - Input job".
by magnussandstrom
Tue May 07, 2024 2:50 pm
Forum: Flows
Topic: Compose XML for HTTP POST using file in hot folder
Replies: 33
Views: 368

Re: Compose XML for HTTP POST using file in hot folder

On the output folder there is a property called 'Strip unique name' set that to 'Yes'.
by magnussandstrom
Thu May 02, 2024 4:43 pm
Forum: Griffin
Topic: Griffin Step anf Repeat
Replies: 5
Views: 111

Re: Griffin Step and Repeat

Egon wrote: Thu May 02, 2024 4:06 pm That's a shame. :|

Wouldn't it be simple to implement this?
For example: Quantity="0" is filling layout with minimal waste.
Yes, one could think so. My guess is that Tilia cripples Griffin a bit because of the fear of competing with Phoenix.
by magnussandstrom
Wed May 01, 2024 9:25 pm
Forum: Griffin
Topic: Griffin Step anf Repeat
Replies: 5
Views: 111

Re: Griffin Step anf Repeat

Is there also a command that Griffin recognizes and simply fills the sheet with minimal waste without entering the quantity? No :( We would also like to do this when it comes to certain jobs. For example SRA3 digital print jobs that are beeing cut in a sheetfed digital die cutting machine and where...
by magnussandstrom
Mon Apr 29, 2024 10:51 am
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 630

Re: JSON - list of files [SOLVED]

JimmyHartington wrote: Fri Apr 26, 2024 12:12 pm I just tested with one of my flows and got it to work.
Like you with a xslt created with the help of ChatGPT.
Great to hear Jimmy! Another nice thing with using Saxon in Switch is that you get very useful information in Messages if anything fails.
by magnussandstrom
Wed Apr 24, 2024 1:20 pm
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 630

Re: JSON - list of files [SOLVED]

This helps in understanding how. I have not worked with XLSTs in Switch before. It seems a bit daunting to write XLST, but maybe with the help of AI and testing it could work. Some of my flows could surely be optimized in some cases by using XLSTs instead of some of my workarounds. XSLT is very pow...
by magnussandstrom
Wed Apr 24, 2024 8:01 am
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 630

Re: JSON - list of files [SOLVED]

JimmyHartington wrote: Tue Apr 23, 2024 3:36 pm Ok.

And how do you process the XML with the XLST using Saxon?
I hope that helps Jimmy? Have you been working with XSLT in Switch? And if so how?
by magnussandstrom
Wed Apr 24, 2024 6:58 am
Forum: Switch
Topic: Acrobat Freezing with print command
Replies: 3
Views: 691

Re: Acrobat Freezing with print command

I use an CLI app called 2printer together with Execute Command to print documents with Switch. It works very good.
by magnussandstrom
Tue Apr 23, 2024 3:47 pm
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 630

Re: JSON - list of files [SOLVED]

Oh sorry!

First I installed Saxon 9HE using Chocolatey (choco install saxonhe). Then I installed the Saxonica Saxon Switch app.

In the Saxon app element you just need to choose the xsl-file that you want to use for transforming the incoming XML.

flow_saxon_settings.png
flow_saxon_settings.png (140.58 KiB) Viewed 549 times
by magnussandstrom
Tue Apr 23, 2024 3:32 pm
Forum: Flows
Topic: JSON - list of files [SOLVED]
Replies: 14
Views: 630

Re: JSON - list of files [SOLVED]

Nowadays I use ChatGPT-4 to create varios XSLT's. In this case my prompt looked like this: Can you please write me an XSLT code that I can use to split my XML in one XML file per array item, the file name of the outgoing XML files should be named with arrays item name, in this case 0.xml and 1.xml. ...