Working with Pre and Post-Conditions with Template Files and the Console
This section provides some sample pre and post-conditions set in the template file and illustrates sample output for such conditions.
The feature related to setting pre and post-conditions with your configuration template executions is described in another topic in this product documentation. See Handling Errors During Plug-in Execution.
Sample Precondition
Property file:
plugin.prcs.1=PTEM_CONFIG:PTProcessSchedulerReportNode
PreConditionOnError=PTIBConfigureGatewayNodes,
PTIBConfigureGatewayProperties
env.wrkoperpswd=beaweb
env.url=http://example.com:8000/psreports/ps
Console output:
PTEM_CONFIG:PTIBConfigureGatewayNodes: Configure gateway URL, load connectors,
define node in the gateway
Configuring plug in : PTEM_CONFIG:PTIBConfigureGatewayNodes
STATUS: ERROR
DESCRIPTION:
Invalid Gateway User/Password. (158,171) PTEM_CONFIG.PTIBConfigureGatewayNodes.OnExecute
Name:getIntegrationGatewayProperties PCPC:21728 Statement:254
Called from:PTEM_CONFIG.PTIBConfigureGatewayNodes.OnExecute
Name:configureNodeStatement:160
Called from:PTEM_CONFIG.PTIBConfigureGatewayNodes.OnExecute
Name:configureEnvironment Statement:73
Called from:PTEM_CONFIG.MAIN.GBL.default.1900-01-01.Step01.OnExecute Statement:904
SEVERITY: SEVERE
Configuration failed : PTEM_CONFIG:PTIBConfigureGatewayNodes
PTEM_CONFIG:PTIBConfigureGatewayProperties: Set keystore password, proxy host,
proxy port, non proxy host in gateway properties file
Configuring plug in : PTEM_CONFIG:PTIBConfigureGatewayProperties
STATUS: ERROR
DESCRIPTION:
Invalid Gateway User/Password. (158,171) PTEM_CONFIG.PTIBConfigureGatewayNodes.OnExecute
Name:getIntegrationGatewayProperties PCPC:21728 Statement:254
Called from:PTEM_CONFIG.PTIBConfigureGatewayProperties.OnExecute
Name:configureEnvironment Statement:58
Called from:PTEM_CONFIG.MAIN.GBL.default.1900-01-01.Step01.OnExecute Statement:904
SEVERITY: SEVERE
Configuration failed : PTEM_CONFIG:PTIBConfigureGatewayProperties
PTEM_CONFIG:PTProcessSchedulerReportNode: Configure Process Scheduler Report Node
configuration
Configuring plug in : PTEM_CONFIG:PTProcessSchedulerReportNode
STATUS: ERROR
DESCRIPTION:
Skipping Configuration for: PTEM_CONFIG:PTProcessSchedulerReportNode
since Pre-Condition Check failed
SEVERITY: MEDIUM
Configuration failed : PTEM_CONFIG:PTProcessSchedulerReportNode
****Completed environment configuration****
Configured environment in 37 seconds
Application Engine program PTEM_CONFIG ended normally
Sample Post-Condition
Property file:
plugin.ib.2=PTEM_CONFIG:PTIBConfigureGatewayNodes
PostCondition=EXIT
env.gateway_user=administrator
env.gateway_password=password
env.ib_appserver_host=SLC00FEQ
env.ib_jolt_port=9032
env.ib_node_proxy_userid=PTDMO
env.ib_node_proxy_password=password
env.ib_appserver_domain_password=password
Console output:
Configuring plug in : PTEM_CONFIG:PTIBConfigureGatewayNodes
STATUS: ERROR
DESCRIPTION:
Invalid Gateway User/Password. (158,171) PTEM_CONFIG.PTIBConfigureGatewayNodes.OnExecute
Name:getIntegrationGatewayProperties PCPC:21728 Statement:254
Called from:PTEM_CONFIG.PTIBConfigureGatewayNodes.OnExecute
Name:configureNodeStatement:160
Called from:PTEM_CONFIG.PTIBConfigureGatewayNodes.OnExecute
Name:configureEnvironment Statement:73
Called from:PTEM_CONFIG.MAIN.GBL.default.1900-01-01.Step01.OnExecute Statement:904
SEVERITY: SEVERE
Configuration failed : PTEM_CONFIG:PTIBConfigureGatewayNodes
EXITING CONFIGURATION AS PER POST-CONFIGURATION CONDITION:
PTEM_CONFIG:PTIBConfigureGatewayNodes
Configured environment in 34 seconds
Application Engine program PTEM_CONFIG ended normally