cancel
Showing results for 
Search instead for 
Did you mean: 

File To File

Former Member
0 Kudos

Hi Group,

In File to File Scenario in the Item I need to check 2 fields(of length 4 and 6) for non zero ,if this fields contains zero (like eg:0000 and 000000) I need to deleted these record and need to send mail to admin.

Can any body Suggest how to Handle this!

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

hi,

I agree with satish's reply.For sending the error message create a condition in receiver determination step as said by "UDO"

Then configure alerts in case of any error in your scenario and send those alerts to the admin by email.

Hope it helps.

Regards,

Joslyn.

udo_martens
Active Contributor
0 Kudos

Hi swabap,

you can solve that on a easy way with condition in receiver determination. The condition editor is quite the same as that inside BPM. You check with X-Path, for example number(//yourField) = 0, and maintain a second receiver (mail). In the mapping you have something simular, you delete if you have only zeros.

Regards,

Udo

Former Member
0 Kudos

Hi UDO,

Thank you for your response,I need to Send this record to admin and after that

I need to delete this record

Former Member
0 Kudos

Hi,

I suggest write a udf in whtch u do the validation and if it is condition is satisfied, write a code to send a mail in the udf itself. Well i hvnt tried this...but u can give it a try....

Regards,

Akshay

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you can do the check inside a check step in a BPM

(use xpath for that)

Regards,

michal

Former Member
0 Kudos

I never to used BPM,Can any body give me the Solution

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

In that case, look into these blogs to understand BPM ,

/people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm

/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit

Regards

Bhavesh

ranjit_deshmukh
Active Participant
0 Kudos

As it seems that you dont know the BPM

I can send you a ppt which will help you in this regards

send me ur email id.

Ranjit

Former Member
0 Kudos

Hi Ranjith,

Thank you,Here I am giving you my E-mail id:

pra1978oni@yahoo.co.in

Former Member
0 Kudos

Hi,

I would rather suggest to go with UDO's reply and it would be easy also. You dont need to go with BPM if you follow that.

---Satish

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

2 solutions,

1. Write an Adapter Module that will check for this data and if it is invaluid , set some flag and for validity set another falg . Use Conditonal Routing in the receiver / interface determination to proceed further.

Adv --> No BPM

Dis Adv --> Wrting Module code can be a "bit" complex

2. Use a BPM to do the valiadtion inside a mapping and then set some flag and a switch step in the BPM to decide whether to send to mail or not.

Regards

Bhavesh