The SW_ADD_PACK_DATA procedure defines an item of pack data (a field name/value pair) that will be passed to iProcess with the next command procedure that is called.
SW_ADD_PACK_DATA allows pack data to be passed to iProcess when a command procedure is called:
In the following example, two SW_ADD_PACK_DATA calls are used to define data values for the
F1 and
F2 fields, which are passed to iProcess when
Case1 is started (using
SW_CASESTART). The second
SW_CASESTART call, starting
Case2, does not have any data values.
begin SSOLITE_DATA.SW_ADD_PACK_DATA ('F1', 'DataItem1');
SSOLITE_DATA.SW_ADD_PACK_DATA ('F2', 'DataItem2');
SSOLITE.SW_CASESTART ('CUSTREQ', ‑1, ‑1, 'Case1', 'user35', '', casenum, reqid);
SSOLITE.SW_CASESTART ('CUSTREQ', ‑1, ‑1, 'Case2', 'user35', '', casenum, reqid);
end;
/
commit;
begin SSOLITE_DATA.SW_ADD_PACK_DATA ('F1', 'DataItem1');
SSOLITE_DATA.SW_ADD_PACK_DATA ('F2', 'DataItem2');
SSOLITE.SW_CASESTART ('CUSTREQ', ‑1, ‑1, 'Case1', 'user35', '', casenum, reqid);
SSOLITE_DATA.SW_ADD_PACK_DATA ('F1', 'DataItem1');
SSOLITE_DATA.SW_ADD_PACK_DATA ('F2', 'DataItem2');
SSOLITE.SW_CASESTART ('CUSTREQ', ‑1, ‑1, 'Case2', 'user35', '', casenum, reqid);
end;
/
commit;