Fixed loop element did not work with Variables

Hi all

I'm developing an application of classical planning using EMP 11.1.2.2

I am writing a business rule in which I need to iterate "N" times. This "N" value is always stored in a variable of execution.

The work rule absolutely perfect, if I have a static value in the field 'Value' of loop fixed.

In case if I have provided variable execution in the field 'Value' of fixed loop the loop doesn't have to iterate. However the rule validated and successfully deployed.

Please note that I develop my business rules using calculation EMP Manager.

Following Code works

{index} = 10;

LOOP (10)

Following the Code didn't work

{index} = 10;

LOOP ({index})

Hello

You can't put a variable in the loop control, but you can break after some moments of iterations. Here's how:

var var1 = 0;

var varbreak;

DIFFICULTY ([difficulty your members here])

LOOP (1000000, varbreak)

[member block here] (

var1 = var1 + 1;

If (var1 is 10)

varbreak = 1;

endif

[Your math here];

)

ENDLOOP

ENDFIX

See you soon,.

Alp

Tags: Business Intelligence

Similar Questions

Maybe you are looking for