Search found 15 matches

by ericnd01
Fri Jul 26, 2019 12:16 am
Forum: LEGACY scripting
Topic: Get job count for entire flow
Replies: 8
Views: 9796

Re: Get job count for entire flow

You can use the Switch REST API to query active jobs with a certain flow stage in a certain flow. Look at the GraphQL section of: https://www.enfocus.com/manuals/DeveloperGuide/WebServices/19/index.html#api-Reporting-dashboardGraphQL . To query live jobs you do not need the Reporting Module. When t...
by ericnd01
Thu Jul 25, 2019 1:03 am
Forum: LEGACY scripting
Topic: Get job count for entire flow
Replies: 8
Views: 9796

Re: Get job count for entire flow

I started playing around with the API and was able to get the information, thank you. I've stumbled onto another potential issue: if a job is deleted using Switch Designer, it still shows "processing" in the status results for Job:List. Ideally, I wouldn't be deleting jobs in this manner, ...
by ericnd01
Wed Jul 24, 2019 8:30 pm
Forum: LEGACY scripting
Topic: Get job count for entire flow
Replies: 8
Views: 9796

Re: Get job count for entire flow

The Dashboards looks like it would do what I need, but we don't own the module. For this project, the price isn't justifiable. Also, the way in which we use Switch, the Dashboards wouldn't get used much. Damn... so close, too. I don't need to know the job status for each element, just the entire flo...
by ericnd01
Wed Jul 24, 2019 12:40 am
Forum: LEGACY scripting
Topic: Get job count for entire flow
Replies: 8
Views: 9796

Get job count for entire flow

Is there a way (via scripting or otherwise) to get a count of all current jobs being processed in a flow? Or is there a way to get a job count of each element? I am trying to find a way to run an external script only when a particular flow is not longer processing files. I'm playing around with Glob...
by ericnd01
Fri Nov 16, 2018 8:01 pm
Forum: Connect ALL / SEND
Topic: HTML forms remember last value
Replies: 3
Views: 10382

Re: HTML forms remember last value

I tried to cleanup the code to provide just the relevant information, so I can't guarantee this will work as provided. Basically, I run onload="checkCookie()" to check if any cookies are saved (getCookie) and populate the form fields if they exist. Any changes to a field automatically upda...
by ericnd01
Wed Oct 24, 2018 1:20 am
Forum: Connect ALL / SEND
Topic: HTML forms remember last value
Replies: 3
Views: 10382

Re: HTML forms remember last value

I was able to accomplish this using Javascript and cookies. If anyone knows an easier, more direct way please let me know.
by ericnd01
Thu Oct 18, 2018 9:14 pm
Forum: Connect ALL / SEND
Topic: HTML forms remember last value
Replies: 3
Views: 10382

HTML forms remember last value

Is it possible to replicate the behavior of "Remember last value" in an HTML form? If so, how? I have a pretty extensive form created, but every time the connector is launched, the fields are empty. Is there a Javascript trick or something to be done on Switch or ConnectALL? Thanks!
by ericnd01
Tue Jul 24, 2018 2:29 am
Forum: Connect ALL / SEND
Topic: AWS bucket delivery point
Replies: 1
Views: 8690

AWS bucket delivery point

Has anyone attempted to set an S3 bucket as a delivery point for ConnectALL? I don't even know if it's possible and once the files make it there, if Switch could even grab them. Trying to find a way to speed up transfers for our international clients. I know you can send to S3 using HTTP POST, but n...
by ericnd01
Tue Jul 17, 2018 9:48 pm
Forum: Flows
Topic: Handling files with quotes
Replies: 5
Views: 6545

Re: Handling files with quotes

I was able to resolve this using a script: function jobArrived( s : Switch, job : Job ) { newFile = job.getName().replace("==", "\"" ); job.sendToSingle(job.getPath(), newFile); } I use an earlier Rename flow element to change the " to == in the job name. I don't know h...
by ericnd01
Tue Jul 17, 2018 12:55 am
Forum: Flows
Topic: Handling files with quotes
Replies: 5
Views: 6545

Re: Handling files with quotes

Yeah, "Remember original name" does not work. I've tested using explicit names and storing as my own private key and it seems anytime the Rename element is used, it replaces the " with _. I'm going to see if a Script will work any better. I'll let you know what I find out.
by ericnd01
Mon Jul 16, 2018 4:19 am
Forum: Flows
Topic: Delete flow shortcut key (Mac)
Replies: 2
Views: 4479

Re: Delete flow shortcut key (Mac)

Enfocus says they will make the necessary changes on an upcoming release.
by ericnd01
Mon Jul 16, 2018 4:17 am
Forum: Flows
Topic: Handling files with quotes
Replies: 5
Views: 6545

Handling files with quotes

I have a flow that occasionally accepts files with quotation marks in the name. This (obviously) wreaks havoc on scripts and everything else. I thought a good solution would be to use the Rename element to change the quotes to some other string, then revert the name at the end of the flow. The first...
by ericnd01
Wed Jun 20, 2018 1:16 am
Forum: Flows
Topic: Delete flow shortcut key (Mac)
Replies: 2
Views: 4479

Delete flow shortcut key (Mac)

I have submitted a feature request to remove the shortcut key to delete a flow (on Mac). I feel that since Command-W has always been used to close windows on all other Mac application, it is unproductive to have it delete a flow in Switch. I submitted a feature request to Enfocus was to remove the s...
by ericnd01
Fri Sep 15, 2017 8:35 am
Forum: LEGACY scripting
Topic: sendToSingle() doesn't send until script finishes
Replies: 3
Views: 5724

Re: sendToSingle() doesn't send until script finishes

I'm splitting the file now via commandline (25 line chunks), but I'll look into breaking it up via Switch.

Thanks!
by ericnd01
Fri Sep 15, 2017 1:34 am
Forum: LEGACY scripting
Topic: sendToSingle() doesn't send until script finishes
Replies: 3
Views: 5724

sendToSingle() doesn't send until script finishes

I have a script the reads a text file of file paths and processes them in a loop. There could be a thousand or more items in the text file. It appears that the sendToSingle() command doesn't "release" the jobs until the script finishes. This is an issue because there could be hundreds of g...