Transforming A For Loop From PBL To Java Produces Different Results (Doc ID 1370696.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Business Process Management Suite - Version: 10.3 to 10.3.2 - Release: to AS10gR3
Information in this document applies to any platform.

Symptoms

Transforming the following code within BPM studio 10.3.2 from PBL to Java produces different results:


cuo_res = 5

for x in 1..cuo_res do
display "el valor de cuota_res es: " + cuo_res + " el valor de x es: " + x
cuo_res = cuo_res - 1
end


When translating the PBL code to java it becomes:


cuo_res = 5;
for (int x = 1; x <= cuo_res; x++) {
display("el valor de cuota_res es: " + cuo_res + " el valor de x es: " + x);

cuo_res = cuo_res - 1;
}


The PBL code in the description will loop 5 times. This java code will loops 3 times. So it is changing the way the loop works.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms