flow service

hello
i want to make a flow service with input “my name is rohit” and i want a output like
my
name
is
rohit
so, how can i do dis plz tell me the steps

thanks

You need to send that words in 5 differrent fields or use tokenize service with line break in the setValue (hit enter for each field) and that outputs as LF between each word

HTH,
RMG

1 Like

can u tell me the service name by which i can break the sentences in to words and in output i need the the number of words and list of words with number added in the front showing the sequence number of the word

thanks

There is no direct built-in but you need to build a logic using Wmpublic avialble tokenize (delim) service or create a custom Java service which can do the line break.

HTH,
RMG

so what will be the logic for this can u tell me

I gave you suggestion, please follow the steps and check the tokenize service how that works and simply create a flow logic with map steps or look on more wM JAVA API and start program it…

i used tokenize service so i got value list in which i go the value like…
[0]myt
[1]name
[2]is
[3]rohit

is it working right…nd i want also total number of words in the sentence

thanks

tokenise will give you a string list…
sizeOfList will give you the number of elements in a list…

Using both of these services will help you achieve what ever it is you are trying to do…

1 Like

@ David Krivohlavy

Thank you so much sir

good to go enjoy:)