The SW_MODIFY_CASEDATA procedure allows you to modify the data of an existing case. Use an
SW_ADD_PACK_DATA procedure to specify the data to be modified. Then, an immediately following
SW_MODIFY_CASEDATA posts an instruction to the BG process to carry out the change. You can use the
SW_MODIFY_CASEDATA procedure to set case data for main procedures and sub-procedures.
This event is audited, using audit message 058. See TIBCO iProcess Engine Administrator’s Guide for details of audit messages.
Instead of using the specific major and/or minor version number of the procedure, you can specify both the proc_maj_ver and
proc_min_ver parameters as
-1. If you do this, iProcess will use the version number of the procedure that the case was originally started with or, that it has subsequently been migrated to (if a subsequent version has been released while the case is still in progress).
This example modifies data for case 876 of the
Transfer procedure. The
SW_ADD_PACK_DATA statement changes the value of the
TEXT1 field to "
New customer name". The
SW_MODIFY_CASEDATA call then identifies the procedure and case to be changed, and provides the "
Modified For Graft"
message which will be displayed in the audit trail.