Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.

Topic-icon Solved Need logic help in file move action

More
24 Oct 2016 14:05 #1 by Prashant.Sangle
Prashant.Sangle created the topic: Need logic help in file move action
Hi,

I need to send error alert if no file move in file move action.

How can I achieve it?

Regards,
Prashant
More
25 Oct 2016 10:09 #2 by Cyril Dussud
Cyril Dussud replied the topic: Need logic help in file move action
Hi,

When being executed, the File Move action publishes a variable called 'FILE_NB', which indicates the number of files treated.
You can use the value of this variable to design the flow after your action, to separate the execution into two branch, for instance:



You can replace the Empty actions here by any action.
You could send a mail, generate an error through scripting, ...

This article demonstrates how to generate an error:
stambia.org/doc/80-development-hints-and...s-to-end-with-errors

Is this what you wanted to achieve ?
Attachments:
More
11 Nov 2016 11:54 #3 by Prashant.Sangle
Prashant.Sangle replied the topic: Need logic help in file move action
Hi,

Thanks for solution. It is working fine

Can we implemented similar logic on get file with ftp action?

Like if no file found on ftp then error mail.

Regards,
Prashant Sangle
More
14 Nov 2016 11:34 #4 by Cyril Dussud
Cyril Dussud replied the topic: Need logic help in file move action
Hi,

The Get Files with FTP action is also publishing the number of files treated in a 'FILE_NB' session variable.
You can so implement a similar logic on this action without any problem.

More generally, all the variables available in the Process can be used in a link condition.
If needed, you can see all the variables published by an action after its execution in the 'Variable' View in the Designer.
More
15 Nov 2016 14:27 #5 by Prashant.Sangle
Prashant.Sangle replied the topic: Need logic help in file move action
Hi,

Initially I thought about it but ,I did not find FILE_NB variable in session variable / variable view.

but If I use similar logic on FTP get action then It is working fine.

Thanks It is really helpful for me. :)

I have one more query regarding file records (Should I create a new thread for it?).
I want to check that file contain records or not, before move action perform.


Regards,
Prashant Sangle
More
16 Nov 2016 09:24 #6 by Cyril Dussud
Cyril Dussud replied the topic: Need logic help in file move action
Hi,

Yes, please, create another topic for this, it is better to separate the questions :)
It helps for a better navigation and search for the other users.

Thanks!