The wfattribute tag

The simplest variables are workflow attributes. When a posture collector performs a check that fails, it will often associate a workflow object with the element. The workflow object may contain one or more named lists of attributes.

These attributes may be accessible using the wfattribute tag. When a workflow tag refers to a list with more than one item, the items are listed separated by commas. For example, a collector that checks for a required list of users might have the following attribute lists:

current_values

jdoe ssmith admin

required_values

jdoe ssmith admin secureadmin

files

/etc/users

Table 8-4shows possible HTML and the output that would result.

Table 8-4 Usage of wfattribute tag

HTML

Output

 

 

<html>

Current values: jdoe, ssmith, admin

<head>

Required values: jdoe, ssmith, admin,

<head>

secureadmin

<body>

Files: /etc/users

<strong>Current Values:</strong>

Details:

<wfattribute:current_values>

 

<p>

 

<strong>Required Values:</strong>

 

<wfattribute:required_values>

 

<p>

 

Files: <wfattribute:files>

 

<p>

 

Details: <wfattribute:details>

 

</body>

 

</html>

 

 

 

The field Tag

The field tag is used to access information contained in the actual posture element and posture item objects.

Chapter 8. Remediation subsystem implementation

403

Page 421
Image 421
IBM Tivoli and Cisco manual Wfattribute tag, Field Tag, 403