Extracting a managed file
If a process application or a toolkit contains a managed
file, you can extract it from the runtime to evaluate its content.
This example illustrates how to extract a managed file by
writing its content to a local file.
var managedFile = tw.system.model.findManagedFileByPath("lsw-services.jar",
TWManagedFile.Types.Server);
log.error("Got the managed file!: " + managedFile);
managedFile.writeDataToFile("C:\\lsw-services.jar");Note: The
first parameter of the
tw.system.model.findManagedFileByPath API
is managedFilePath, which does not support '!' notation
to reference the contents of an archive.
This topic is shared by BAW, CP4BA, CP4BASaaS. Last updated on 2025-03-13 12:15