EasyManua.ls Logo

Oracle ZFS Storage Appliance

Oracle ZFS Storage Appliance
650 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Workflow Execution Auditing and Reporting
TABLE 130
Required Members for Execution Reporting
Required Member Type Description
step
String String that denotes the name of the
execution step
execute
Function Function that executes the step of the
workflow
As with the execute function on the workflow as a whole, the execute member of each step
takes as its argument an object that contains the parameters to the workflow.
EXAMPLE 24
Workflow Execution Reporting
As an example, the following is a workflow that creates a new project, share, and audit record
over three steps:
var steps = [ {
step: 'Checking for associated project',
execute: function (params) {
try {
run('shares select ' + params.unit);
} catch (err) {
if (err.code != EAKSH_ENTITY_BADSELECT)
throw (err);
/*
* We haven't yet created a project that corresponds to
* this business unit; create it now.
*/
run('shares project ' + params.unit);
set('mountpoint', '/export/' + params.unit);
run('commit');
run('shares select ' + params.unit);
}
}
}, {
step: 'Creating share',
execute: function (params) {
run('filesystem ' + params.name);
run('commit');
}
}, {
step: 'Creating audit record',
execute: function (params) {
audit('created "' + params.name + '" in "' + params.unit);
}
} ];
Maintenance Workflows 595

Table of Contents

Other manuals for Oracle ZFS Storage Appliance

Related product manuals