Inject job from Auto-manage folder

Post Reply
lombert
Member
Posts: 166
Joined: Fri Feb 04, 2011 2:31 pm
Location: Sweden

Inject job from Auto-manage folder

Post by lombert »

As the subject says, can I use Inject Job to get a file from an auto-managed folder?

I tried but I got an error that says it not finds the file. I wondering if I need the suffix also to grab the file?
Between jobs!
loicaigon
Member
Posts: 147
Joined: Wed Jul 10, 2013 10:22 am

Re: Inject job from Auto-manage folder

Post by loicaigon »

A bit weird to me but you can right click on auto managed folder and copy path so you can use it as a base path for your inject element.

However I would use nothing but specific folder for file injection :)
sander
Advanced member
Posts: 228
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: Inject job from Auto-manage folder

Post by sander »

Why?
Part of my playground:
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.

Chat: open-automation @ gitter
lombert
Member
Posts: 166
Joined: Fri Feb 04, 2011 2:31 pm
Location: Sweden

Re: Inject job from Auto-manage folder

Post by lombert »

sander wrote:Why?
Me? :)

I have a sort of Hold folder, and the file can came again, then I will have the file in the hold folder to be deleted, so it not will be released and continued in the flow..

Image
Between jobs!
sander
Advanced member
Posts: 228
Joined: Wed Oct 01, 2014 8:58 am
Location: The Netherlands

Re: Inject job from Auto-manage folder

Post by sander »

Why not replace the hold with a inject, with a hold before it. Place the documents in a static folder, so if the job gets released it always picks the correct one.

Depends on what is in your hold at the moment tho.
Part of my playground:
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.

Chat: open-automation @ gitter
lombert
Member
Posts: 166
Joined: Fri Feb 04, 2011 2:31 pm
Location: Sweden

Re: Inject job from Auto-manage folder

Post by lombert »

The "Hold jobs and deliver later" is a script. And it looks at the that folder and release jobs at different time.

But sometime we need to pass around the "hold" and work with the file, and then I want it to be deleted.

I think if I could use Database instead. If any job gets in the "get around the hold folder"-way, it set that job in the database and then it release the job from hold it checks if it is in the list and then put that job aside and delete it.. :?
Between jobs!
loicaigon
Member
Posts: 147
Joined: Wed Jul 10, 2013 10:22 am

Inject job from Auto-manage folder

Post by loicaigon »

If you have scripting module, you could think of a script that would store any files passed through and and see if any previous file has already been processed and might actually be in the automanaged folder. Eventually it would remove the file if needed.

FWIW

Loic

[EDIT all your posts appeared while I was posting so many data out of date ;)]
lombert
Member
Posts: 166
Joined: Fri Feb 04, 2011 2:31 pm
Location: Sweden

Re: Inject job from Auto-manage folder

Post by lombert »

After some more testing I found the answer to my question, it is possible to inject from Auto-managed folder. It is necessary to have the Switch prefix of the file you want to inject.

This is from the log;
/Users/macproauto/Library/Application Support/Enfocus/Switch Server/backing/JDF New/automanaged/Hold Jobs/TEST FILE.txt

And this is from the "copy path"
/Users/macproauto/Library/Application Support/Enfocus/Switch Server/backing/JDF New/automanaged/Hold Jobs/_02ABH_TEST FILE.txt

Then I put the prefix "_02ABH_" in the injection job name, it find the right file and deleted it.

So now I just need to find a good way to save the prefix so I can use it if I need to delete a file.

Thanks for all suggestions and comments!
Between jobs!
User avatar
Terkelsen
Member
Posts: 126
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Re: Inject job from Auto-manage folder

Post by Terkelsen »

Yes, it's really annoying that you can't inject a job based on it's JobName Proper rather than the job name including the unique prefix. :oops:

If there is any way you could place the files to be injected in a folder with no outgoing connection, you will be able to strip the unique name and that way it will work.
loicaigon
Member
Posts: 147
Joined: Wed Jul 10, 2013 10:22 am

Re: Inject job from Auto-manage folder

Post by loicaigon »

Yes but considering two files with same name,
say : dummy.pdf
Eventually you get XXXXX_dummy.pdf and YYYYY_dummy.pdf. If you want to deal with dummy.pdf which job has to be considered ? The former, the latter, both ?
Just asking.
lombert
Member
Posts: 166
Joined: Fri Feb 04, 2011 2:31 pm
Location: Sweden

Re: Inject job from Auto-manage folder

Post by lombert »

I'll give you all an update on the solved flow.

If you have the unique prefix you can inject from a auto managed folder. My solution is this;

Image

A added a small Database there it stores the unique prefix and two other fields there one is a unique number for every job. If not the job-number is in the DB it inserts all fields. If the job-number exist, it updates the DB with the new prefix.

Then the extra file cames, it picks up the old prefix and the other fields and injects the job and delete it from the 'Hold Jobs'-folder. And delete the record in the DB.

And the same if the script is releasing the job, then the record will be deleted in the DB.

Maybe not the most beautiful solution, but it works.. :)
Between jobs!
Post Reply