When you use unique UserIDs the Link3270 bridge facilities (and associated state data) are allocated and deleted as modeled in the Service Flow Modeler. The CICS® Service Flow Runtime server run-time makes no attempts to locate and cleanup Link3270 State file records left assigned upon successful or unsuccessful execution of request processes.
It is still necessary to compensate or cancel CICS Service Flow Runtime / BTS processes as the result of unsuccessful process execution. However, in this mode it is not necessary that the modeled flow include logic to delete allocated Link3270 bridge facilities (and associated Link3270 bridge facility state data).
Since only the UserID is used and is assumed to be unique, any and all allocated bridge facilities and associated bridge facility state data allocated to the specific UserID can be located and used in the execution of subsequent processes by that UserID.
Also if the only requirement, as determined by the service requestor, is to cancel an unsuccessfully executed process, the DPL Stub program (DFHMADPL) issues the BTS CANCEL ACQPROCESS command to end and complete the failed CICS Service Flow Runtime / BTS process.
The DPL Stub program (DFHMADPL) will not delete allocated bridge facilities or associated facility state data on the CICS Service Flow Runtime Link3270 State file because the UserID is unique and can be found in any subsequent business request/process execution issued by that same UserID.
The service requestor may want to cancel the failed CICS Service Flow Runtime BTS process but not delete bridge facilities or associated state data assigned to that UserID.
Subsequent modeled flows can be initiated as processes to locate, use and / or delete any allocated bridge facilities as desired.
For example, as a normal end of day processing strategy, the service requestor could invoke a modeled flow as a process to locate and delete any allocated bridge facilities. Failure to incorporate a cleanup strategy for a specific user may not leave bridge facilities available in high volume environments over time to other users — unless the customer configuration is such that the bridge facility maximum keeptime, (BRIH-FACILITYKEEPTIME), is set such that bridge facilities are deleted in a timely fashion for that customer environment. For information on how to set the Link3270 bridge facility maximum keeptime, see information on MAT_MAX_FAC_KEEPTIME in the Service Flow Modeler help. For a definition of (BRIH-FACILITYKEEPTIME), see CICS External Interfaces Guide Version 2 Release 2.