Welcome Guest ( Log In | Register )


 
Reply to this topicNew Topic
Start an application if at least 1 file out of 3 is available, Automator 3.1.1 - Linux
Nicolas Saumande
post Nov 24 2008, 04:36 PM
Post #1


Visitor
*

Group: Members
Posts: 5
Joined: 21-November 08
From: Toulouse, France
Member No.: 203


Hi,

I need to trigger the start of an application by the existence of at least one file out of three.
I couldn't find out a solution with 3 ressources.

I have those files :
- ????_PS.avis
- ????_PM.avis
- ????_CH.avis

I managed to find a workaround using only one ressource with the generic file name : CH.avis|PM.avis|PS.avis<
(The file has to finish by one of the three groups of letters).
But this workaround would not have been possible if the files names weren't that close.

Would anybody know how to do that whith one ressource for each file ?

Thank you,
Nicolas
Go to the top of the page
 
+Quote Post
Ludo
post Nov 27 2008, 06:47 PM
Post #2


Visitor
*

Group: Members
Posts: 4
Joined: 6-November 08
Member No.: 84


Hi Nicolas,

As far I know this product it is not possible to have an "OR" between dependencies (ressources, date, link,...) on Job, Application or Xchart; however there is a workaround it could be useful for you.

Indeed it is possible to combine Fifo and file ressources to have the wanted behaviour.

Suppose you have got 3 files to wait for:
- create 3 file ressources
- create one Fifo. Configure it to have 3 files ressource names inside as list.
- create the application. In the ressource configuration part for it, wait indefinitely for the fifo ressource to empty it.
- In this same configuration part part wait indefinitely for another ressource "$lres(Fifo_ressource)"; here introduce the fifo ressource by clicking on the right, and test the "presence" of it. In fact, here, you are testing File ressources in the Fifo list.
- Of course to unstack the fifo, application must be cyclic

This solution is depending on your need as:
- For 3 files to test we need about 15 s at least
- The Fifo must be linked to an assign object if you want to use it several times a day (I mean all the day with lots of files). In this case Application can be reviewed to have the "wait for ressources" in a job close to an assign object and all these objects in a cyclic application.

Hope my solution will help you or provide you new ideas to build your own solution closer to your situation.
regards,

Ludo
Go to the top of the page
 
+Quote Post
Ludo
post Nov 27 2008, 06:50 PM
Post #3


Visitor
*

Group: Members
Posts: 4
Joined: 6-November 08
Member No.: 84


smile.gif
Go to the top of the page
 
+Quote Post
Nicolas Saumande
post Dec 1 2008, 09:46 AM
Post #4


Visitor
*

Group: Members
Posts: 5
Joined: 21-November 08
From: Toulouse, France
Member No.: 203


Thank you Ludo for your solution.

It will take me a little while to test that as I've never used the fifo ressource before, and its use doesn't look obvious to me right now. wink.gif

I'll keep you informed.

Regards,
Nicolas
Go to the top of the page
 
+Quote Post
Dennis Hickford
post Dec 2 2008, 09:48 AM
Post #5


Visitor
Group Icon

Group: Axway Moderator
Posts: 7
Joined: 6-November 08
From: UK
Member No.: 120


Ludo,

This looks a good solution but difficult for users to re-create if they have not used FIFO etc. before.

Maybe we should look to create an export of a chart containing the solution to send to users.

I assume you have already created this solution and could quite easily export it.

If you have, send it to me and I can forward it to any future users that ask. (dhickford@axway.com)

Dennis.


--------------------
Regards,

Dennis Hickford

Senior Product Consultant
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Skin designed by IPB Forum Skins