cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed Regarding a business logic

Former Member
0 Kudos

Hi all,

My business requirement is

-


requires to get a checksum from the KIOSK field. This would be something like a rule that for a given KIOSK generates a number from 0 to 9.

-


The Field value contains alphanumerical

Can any of guys help me in this logic.how to generate a checksum for a given field..

Thanks & Regards;

Vinit

Accepted Solutions (0)

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

> Can any of guys help me in this logic.how to generate a checksum for a given field..

Maybe you ask at first your customer, what check sum algorithm should be used?

Former Member
0 Kudos

Hi,

requires to get a checksum from the KIOSK field. This would be something like a rule that for a given KIOSK generates a number from 0 to 9.

What do you mean by checksum?

Do you want to generate a serial number like 1,2,3......?

If yes, then you can use 'index' function in the mapping.

But it would be better if you can clarify your requirement a bit more.

-Supriya.

Former Member
0 Kudos

Hi Supriya,

There are different files with several kiosk values coming from the input side n we want to generate a checksum value so that the files with equal kiosk value should enter one process of BPM ..

Like we need to generate a number from 0-9 from the KIOSK value so files containing the same num enters the BPM process

Edited by: 1688vinit on Oct 29, 2010 6:40 AM

Former Member
0 Kudos

Hi,

You can make use of 'Correlation' in BPM, so that the files with equal KIOSK values will enter one instance of BPM.

-Supriya.

Former Member
0 Kudos

Yeah i am proposing that supriya.But they are insistent on implementing their design

Any Idea For my Reqrmnt above please?

former_member207622
Contributor
0 Kudos

How will you generate a number from KIOSK value . I believe KIOSK is a field , correct me if I am wrong .

You need to generate a number from KIOSK value , So there must be some business logic in number generation like whether

you need to get a substring out of total value of KIOSK field , or you need the first character or middle character .

So please provide this business transformation rule to get this more clear .

After this is done , by implementing BPM you can achieve what you want

Regards

Ninad

former_member207622
Contributor
0 Kudos

Alright I found something I am not sure if it is of use to you , A checksum is generally used to detect the integrity of file

it is calculated oin basis of hash algorithms so how it is useful to for incoming filed values i m not sure

Please find the links below

http://en.wikipedia.org/wiki/Checksum

http://www.fastsum.com/support/online-help/checksums.php

http://www.flounder.com/checksum.htm

http://www.mkyong.com/java/how-to-generate-a-file-checksum-value-in-java/

If it is useful , you need to implement a hash algorithm

regards

Ninad