Search found 21 matches

by pcobee
Mon Nov 21, 2022 8:07 pm
Forum: Applications
Topic: Ganging app - need beta testers
Replies: 0
Views: 19343

Ganging app - need beta testers

I've built an app to facilitate the ganging of jobs to be passed to an imposition system. Here is the basic description... App description GangByHierarchy creates collections or gangs of jobs based on the combination of job hierarchy values and an accumulated count of PDF pages or sheets, or a confi...
by pcobee
Sun Nov 20, 2022 8:01 pm
Forum: Imposition
Topic: Ganging app - need beta testers
Replies: 1
Views: 11402

Ganging app - need beta testers

I've built an app to facilitate the ganging of jobs to be passed to an imposition system. Here is the basic description... App description GangByHierarchy creates collections or gangs of jobs based on the combination of job hierarchy values and an accumulated count of PDF pages or sheets, or a confi...
by pcobee
Tue Oct 18, 2022 6:55 pm
Forum: Node.js scripting
Topic: mssql - async function or callback not finished
Replies: 5
Views: 3149

Re: mssql - async function or callback not finished

Adding wait - I tried up to 10 seconds - did not change result. When I run code directly from VSC, there was a pause before script completed before adding the pool.close() statement. Once I added that, the script completed immediately in VSC. However, adding it to Switch script did not eilminate the...
by pcobee
Mon Oct 17, 2022 3:40 pm
Forum: Node.js scripting
Topic: mssql - async function or callback not finished
Replies: 5
Views: 3149

Re: mssql - async function or callback not finished

I patterned my code after this example... https://tediousjs.github.io/node-mssql/#asyncawait and if I run basically the same code from visual studio code it works fine. And, yes, I would definately wrap code in a try-catch. As I mentioned, I whittled the code down to the bare minimum for demonstrati...
by pcobee
Sun Oct 16, 2022 10:41 pm
Forum: Node.js scripting
Topic: mssql - async function or callback not finished
Replies: 5
Views: 3149

mssql - async function or callback not finished

I'm getting this warning each time timerFired runs on an app I'm working on... The script execution has ended while an async function or callback in the script might not have finished yet. Please check the script code for unresolved promises or missing await statements. I've whittled the code down t...
by pcobee
Tue Jul 26, 2022 3:41 pm
Forum: Node.js scripting
Topic: importing/require myclass.ts module
Replies: 1
Views: 2903

importing/require myclass.ts module

I'm creating my first app using TypeScript. I'm trying to import a class that I've created in a seperate .ts file that is at the root level with main.ts. I've tried using both of the following to import the file in main.ts... import * as myclass from './myclass'; const myclass = require( './myclass ...
by pcobee
Tue Jan 25, 2022 8:33 pm
Forum: Node.js scripting
Topic: flowElement.getJobs() in flowStartTriggered entry point?
Replies: 6
Views: 3987

Re: flowElement.getJobs() in flowStartTriggered entry point?

When timerFired is called the very first time after a flow is restarted, if you call getJobs() you will get an empty list - even if there are actual jobs in the incoming connection. After timerFired is envoked, jobArrived is called for each job in the incoming connection which then re-populates the ...
by pcobee
Tue Jan 18, 2022 5:14 pm
Forum: Node.js scripting
Topic: flowElement.getJobs() in flowStartTriggered entry point?
Replies: 6
Views: 3987

Re: flowElement.getJobs() in flowStartTriggered entry point?

That was plan B. Since it would be adequate to make this check only at flow start up I was hoping to reduce the load on the server by not having to make the check every time timerFired was invoked. During our "peak" this app will have a number of instances running with around 20 to 30 thou...
by pcobee
Mon Jan 17, 2022 11:01 pm
Forum: Node.js scripting
Topic: flowElement.getJobs() in flowStartTriggered entry point?
Replies: 6
Views: 3987

flowElement.getJobs() in flowStartTriggered entry point?

If I call flowElement.getJobs( ids ) in flowStartTriggered, the resulting jobs collection is empty. I've verified that I'm passing it a valid array of job ids. Has anyone gotten this to work? The documentation says... The flowStartTriggered entry point is executed before any jobArrived and timerFire...
by pcobee
Fri Apr 01, 2016 11:03 pm
Forum: Preflighting
Topic: Merge XML into PDF.
Replies: 2
Views: 6519

Re: Merge XML into PDF.

We use xsl:fo to generate PDF output. All you need is a text editor and a rendering engine like the one from RenderX - about $400 for their XEPWin Desktop which is what we use. We use it to generate about 1400 pollbooks of 250 pages each for elections. Its a very robust and high performance solution...
by pcobee
Fri Apr 01, 2016 10:54 pm
Forum: Applications
Topic: Files stuck in flows_SOLVED
Replies: 3
Views: 6648

Re: Files stuck in flows

Are you running any anti-virus software. We installed AV Defender and had jobs prefixed with ~.~ "stuck" in folders. Once removed everything starting working correctly. Curious if anyone out there has found a anti-virus solution that plays nice with Switch.
by pcobee
Thu Feb 25, 2016 9:44 pm
Forum: LEGACY scripting
Topic: Variable email user name
Replies: 1
Views: 3311

Re: Variable email user name

If you are using Windows based Switch, you could use VBScript to create a Script element that uses CDO to send out your emails. That way you have complete control. Here's an example for sending through Office365. You'll have to adapt for Switch obviously. I've also done this using Gmail and an HMail...
by pcobee
Thu Feb 25, 2016 9:11 pm
Forum: Flows
Topic: Switch 13 losing metadata between flows?
Replies: 9
Views: 7888

Re: Switch 13 losing metadata between flows?

I seem to have "reset" something in the flow by changing the "Strip unique name" setting from No to Yes and then running the flow - stopping the flow - and setting it back to No. It is now performing as expected. I'm thinking that Enfocus has a bug in their import flow that is no...
by pcobee
Thu Feb 25, 2016 6:54 pm
Forum: Flows
Topic: Switch 13 losing metadata between flows?
Replies: 9
Views: 7888

Re: Switch 13 losing metadata between flows?

The one other variable is that my new server is running on Windows 2012 R2. The other 2 are on 2008 R2. If you are on Windows can you tell me what version?