TWSForZosAction
This provider implements a single action named AddJobStream
that
adds an application occurrence (job stream) to the current plan on HCL Workload Automation for Z.
This provider is for use in HCL Workload Automation end-to-end
scheduling configurations.
The application description of the occurrence to be added must exist in the AD database of HCL Workload Automation for Z.
Click here to see the
Dynamic Workload Console fields
for AddJobStream
.
Example
In this example, a pharmaceutical company uses rule
ZOSRULE031
to produce a
distribution schedule of the merchandise under the control of department
DISTR07
. As soon as the list of ordered merchandise that is up for
delivery in the upcoming month is ready and placed in file
MONTHLYORDERS.TXT
on agent RU192298
in a branch
office, the centralized system adds application (job stream) ADFIRST
to
the current plan. ADFIRST
contains the operations (jobs) that produce
an optimized delivery schedule for the next
month.<?xml version="1.0"?>
<eventRuleSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.ibm.com/xmlns/prod/tws/1.0/event-management/rules"
xsi:schemaLocation="http://www.ibm.com/xmlns/prod/tws/1.0/
event-management/rules/EventRules.xsd">
<eventRule name="ZOSRULE031" ruleType="filter" isDraft="no">
<eventCondition name="fileCrtEvt19" eventProvider="FileMonitor"
eventType="FileCreated">
<scope>/PRODORDER/MONTHLYORDERS.TXT ON RU192298</scope>
<filteringPredicate>
<attributeFilter name="Param1" operator="ne">
<value>/prodorder/monthlyorders.txt</value>
</attributeFilter>
<attributeFilter name="SampleInterval" operator="eq">
<value>60</value>
</attributeFilter>
<attributeFilter name="Workstation" operator="eq">
<value>RU192298</value>
</attributeFilter>
</filteringPredicate>
</eventCondition>
<action actionProvider="TWSForZosAction" actionType="AddJobStream"
responseType="onDetection">
<scope>
ADD JOBSTREAM ADFIRST[DEADLINE OFFSET: 0001] WITH OWNER DISTR07 IN PLAN
</scope>
<parameter name="HoldAll">
<value>false</value>
</parameter>
<parameter name="Priority">
<value>5</value>
</parameter>
<parameter name="JobStreamDeadlineOffset">
<value>0001</value>
</parameter>
<parameter name="JobStreamName">
<value>ADFIRST</value>
</parameter>
<parameter name="OwnerDescription">
<value>Owner description</value>
</parameter>
<parameter name="Owner">
<value>distr07</value>
</parameter>
<parameter name="DependenciesResolution">
<value>All</value>
</parameter>
<parameter name="AuthorityGroup">
<value>AuthGrpBase</value>
</parameter>
<parameter name="Parm_1">
<value>var1=value1</value>
</parameter>
<parameter name="Parm_2">
<value>var2=value2</value>
</parameter>
<parameter name="JCLVariableTable">
<value>VarTableZos01</value>
</parameter>
<parameter name="JobStreamDescription">
<value>This job stream contains jobs that process orders for
owner DISTR07.</value>
</parameter>
<parameter name="Group">
<value>GroupBase</value>
</parameter>
</action>
</eventRule>
</eventRuleSet>