HP Structured Records Management Solution Tutorial, August 2011

34 Chapter 5: Creating a business flow
When HP Database Archiving and HP TRIM reside on heterogeneous
operating systems with unshared file systems, you must provide a path
specification, insert an ftp command for moving the archive files, and
manually call the SRMS Loader. To achieve this result, you need to insert a
Groovy script in the business flow editor and choose the
SRMS > Call TRIM
Loader (Advanced) template.
TIP For more information about adding Groovy scripts to your business flows,
refer to the HP Database Archiving software Archive developers guide.
Table 1 summarizes the options just described.
Synchronous and asynchronous calls to the SRMS Loader
In the SRMS Loader call in your Groovy script, SYNCHRONOUS / ASYNCHRONOUS
indicates whether the business flow should wait for the SRMS Loader to
complete.
SYNCHRONOUS indicates that the business flow will wait for the archive files
to finish loading into HP TRIM.
SYNCHRONOUS ensures that, when the
business flow completes, the files are in HP TRIM. This option is most
applicable when HP Database Archiving and HP TRIM are both on MS
Windows.
ASYNCHRONOUS indicates the business flow will not wait for the archive files
to finish loading into HP TRIM. With A
SYNCHRONOUS, the loading process
may continue for some time after the business flow completes. You can use
ASYNCHRONOUS in any situation, but it is particularly helpful when HP TRIM
is on a remote machine and may take some time to load the archive files. In
this case, you might want to send the request to load the file and then end the
business flow without waiting for the load request to complete.
Table 1 Guidelines for SRMS Loader calls
HP DB OS Shared file system Non-shared file system
MS Windows
ASYNCHRONOUS |
SYNCHRONOUS
DEFAULT_PATH | path
spec
a
ASYNCHRONOUS |
SYNCHRONOUS
DEFAULT_PATH | path
spec
insert ftp command to
copy/move files
a
UNIX ASYNCHRONOUS |
SYNCHRONOUS
path spec
manually call loader with
host and port
b
ASYNCHRONOUS |
SYNCHRONOUS
path spec
insert ftp command to
copy/move files
manually call loader with
host and port
b
a. Use the Call TRIM Loader Groovy script template for this case.
b. Use the Call TRIM Loader (Advanced) Groovy script template for this case.