Infopad access in a precondition of a workstep
This section lists an example of infopad access in a precondition of a workstep.
Partial code
The partial code for the rule defining the infopad is as follows:
application PreConditionInfopad
module PreConditionInfopad_rules
initialize{
PreCondPad := new infopad<cell{numVal:int}>[1][1]("PreCondPad");
}finalize{
discard(PreCondPad);
}
Then a precondition of a workstep can be written as:
QSInfopadService.getLongSlot("PreConditionInfopad::
PreConditionInfopad_rules::PreCondPad", 1, 1, "numVal") > 10