
These macros will be used by the HP EC Installer tool during deployment. The list of devices on the
installation can be extended with custom attributes (macro_name) assigned to each device that will respond
to the installation macros. For more detail on how to define custom attributes, read the Device information >
Device specific settings section of the HP Embedded Capture (HP EC) Installation & Deployment Guide.
1.4.6.3 Macros usage examples
The following examples show different situations where macros can be used on notification graph nodes.
The expressions in the left column will produce the corresponding results in the right column.
Table 1-7 Macros usage examples
Expression 1
< WHILE type = "scan" scope="session" delimiter="------\n">
Scanned pages: %_scan.ScanNumPages_% (%_scan.id_%)
Scan timestamp: %_scan.timestamp_%
</WHILE>
Scanned pages: 3 (Scan1)
Scan timestamp: 7-10-2012 4-17-19 PM
------
Scanned pages: 7 (Scan2)
Scan timestamp: 7-10-2012 4-17-19 PM
Expression 2
Authentication username: %_Authentication.username_%
Process sent files: %_process.FileCount_process1_%
Process result: %_process.result_process1_%
Files:
<WHILEtype=”id”
scope=”process1”
delimiter=”\n------\n">
DeviceName:
%_device.devicehostname_%
FileName:
%_process.filenames_%
</WHILE>
Authentication username: user
Process sent files: 3
Process result: SUCCESS
Files:
DeviceName: UnitTestHostname
FileName: pfile1a
------
DeviceName: UnitTestHostname
FileName: pfile1b
------
DeviceName: UnitTestHostname
FileName: pfile1c
Expression 3
Process sent files: %_process.FileCount_last_%
Process result: %_process.result_last_%
Files:
<WHILE type=”id” scope=”last” delimiter+">
=>FileName:%_process.filenames_%>
</WHILE
Showing Files outside while loop:
FileNames:
%_process.filenames_%>
Process sent files:
2
Process result:
SUCCESS
Files:
=> FileName: file_1of2
=> FileName: file_2of2
Showing Files outside while loop:
FileNames: file_1of2,file_2of2
Expression 4
<WHILE type=”process” scope=”session” delimiter=”\n”>
Process id: Process1
Process timestamp: 7-10-2012 4-17-21 PM
16 Chapter 1 Introduction
Comentarios a estos manuales