I am new to wM development i want to the examples on Loop and Repeat step. I am trying to add numbers from 1to 9. But am getting the desired output. First I initialized the count then Repeating the count for 9 times , inside Repeat am using a Map step to increment the count by 1 and invoked the addInts flow step after this.
I am not getting the desired output. Help me
In Repeat Flow step you have to specify two properties.
1) count = 9
2) Repeat on = Success.
I checked, its giving expected results⦠More info refer attachment-Repeat_CountOnetoNine.zipā¦(Install and check it) Repeat_CountOnetoNine.zip (4.54 KB)
1. place the zip file in your /replicate/inbound/
2. login into ISā>Package Managementā>install inbound releases
3. select the zip file & Install itā¦
4. login into developer and check itā¦
1) first flow step - use map step to store count = 0
2) second flow step - use repeat -
select properties - count=9
Repeat on = Success
3) inside repeat step, use map step and add math.addInteger using transformer
map ācountā to num1
assign num2 = 1
and map variable āvalueā to countā¦
4) If you run this service, final output will be stored in to count.
for more info see attachment⦠result will be ā10ā
Thanks for spending considerable amt of time and explainig me clearly.
I am trying to implement a flow service that gives whether the given number is prime or not?
I am using Repeat for that and its not executing steps inside the Repeat step.
I am initializing flag to 0 and in Repest count property set to %n% and Success. Inside Repeat am using Branch in which am comaping if n%i==0 setting falg = 1.
After that am using another Branch outside this Repeat and comparing if flag =0 then displaying āthe number given is Primeā, but its not working where am i going wrong.
How to proceed plz help me.