Rules for writing Code Mask
Generated code is written directly
Put code mask variables between '<' and '>'
Syntax: <variable name> Example: <Name>
<RPWI:POSITIVE>
This command used to ensure Generating the code between <RPWI:TEST> and <RPWI:ENDTEST> if the result of the test is true
<RPWI:NEGATIVE>
This command used to ensure Generating the code between <RPWI:TEST> AND <RPWI:ENDTEST> if the result of the test is false
<RPWI:VALUE> determine that value that will be compared with the
value of the variable after <RPWI:TEST> , if the two values are typical ,
the test result is true, if not, the test result is false
Nested <RPWI:TEST> and <RPWI:ENDTEST> is
Allowed
<RPWI:INFORMATION> used to generate output in
Information tab of the step details, in goal designer.
To write comments
<RPWI:NOTE> This is not more than comment
<*> another comment!
<RPWI:NEWSTEP> To create step in Goal
Designer
(This is helpful when we want the generated code from interaction process to be distributed to more than one automatically generated step)
Syntax:
o <RPWI:NEWSTEP> ANY NAME CAN BE HERE
Example:
Transporter code to generate Three Steps for "IF Statement", where the interaction page contains Textbox store its value in variable named: D_TB_CONDITION
§ <RPWI:NEWSTEP> if statement ( <T_CONDITION>)
§ IF <T_CONDITION>
§ <RPWI:NEWSTEP> Code Block
§ <RPWI:NEWSTEP> End of if statement
§ ENDIF
<RPWI:PUTMARK>
NUMBER_FROM_1_TO_30
Save the ID of the current step (active step) to special area (Range 1-30)
<RPWI:SETMARK> NUMBER_FROM_1_TO_30
Set a step as the active/parent using a saved ID (Range 1-30)
Note: the area number 1 is reserved for the active
Step (parent step), before clicking on the "interact"
Button in goal designer
Usage:
1 - To organize the generated code to sub tree of the goal steps tree
2 - To determine the step that will be active after generating the code
Example:
§ <RPWI:NEWSTEP> Start of If statment
§ if <T_CONDITION>
§ <RPWI:PUTMARK> 2
§ <RPWI:SETMARK> 2
§ <RPWI:NEWSTEP> Code block
§ <RPWI:PUTMARK> 3
§ <RPWI:SETMARK> 2
§ <RPWI:NEWSTEP> End of if statement
§ Endif
§ <RPWI:SETMARK> 3
· Output
Start of If Statement
Code Block
End of if statement
· The step "Code Block" will be the active step (after
· The end of interaction using transporter process)
<RPWI:IGNORELAST> <ANY CHARACTER>
Used for deleting the last occurrence character from the generated code
§ Example: <RPWI:IGNORELAST> ;
§ Will delete the last semicolon (;), from the generated code.
<RPWI:NEWVAR> VARIABLE_NAME
Used for creating new variable
<RPWI:SETVARVALUE> VARIABLE_VALUE
Used for setting the value of the variable (Active Variable)
<RPWI:SELECTVAR> VARIABLE_NAME
Set the active variable
<RPWI:REPLACEVARSWITHVALUES>
Replace variables with corresponding values