| Reference > Rule Languages > ILOG Rule Language > IRL Keywords > body (in Flow Task) |
body (in Flow Task) |
PREVIOUS NEXT |
The keyword used to define a flow task body. This keyword is used in the flowtask definition
flowtask flowTaskName
{
body {ruleflow}
};
The flow task body defines a ruleflow. It is composed of task invocations that are chained together through control statements. The control statements are:
sequence, if, switch, while (break and continue), fork, goto.
flowtask main
{
body =
{
while(!ending)
{
if (turn == Constants.Player1) ChooseMovePlayer1;
else ChooseMovePlayer2;
CheckMove;
if (ending) break;
UpdateDistance;
ExpandObjects;
DetectConnect4;
if (ending) break;
DetectGridFull;
if (ending) break;
ChangeTurn;
}
EndOfGame;
}
};
goto, flowtask, fork, if (in Ruleflow), switch, while/break/continue (in ruleflow)
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |