Welcome Guest! Log in

Topic-icon Solved Need logic help in file move action

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

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

How can I achieve it?

Regards,
Prashant

Please Log in or Create an account to join the conversation.

More
25 Oct 2016 10:09 #2 by Cyril Dussud
Replied by Cyril Dussud on 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:

Please Log in or Create an account to join the conversation.

More
11 Nov 2016 11:54 #3 by Prashant.Sangle
Replied by Prashant.Sangle on 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

Please Log in or Create an account to join the conversation.

More
14 Nov 2016 11:34 #4 by Cyril Dussud
Replied by Cyril Dussud on 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.

Please Log in or Create an account to join the conversation.

More
15 Nov 2016 14:27 #5 by Prashant.Sangle
Replied by Prashant.Sangle on 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

Please Log in or Create an account to join the conversation.

More
16 Nov 2016 09:24 #6 by Cyril Dussud
Replied by Cyril Dussud on 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!

Please Log in or Create an account to join the conversation.