HCL Workload Automation, Version 9.4

Job definition - OSLC Provisioning

An OSLC Provisioning job invokes any OSLC provider, such as HCL Workload Automation and IBM SmartCloud Orchestrator, that is implementing the OSLC Provisioning Specification. Provisioning resources define provisioning plans, provisioning requests and provisioning results of the software development, test and deployment lifecycle.

This section describes the required and optional attributes for OSLC Provisioning jobs. Each job definition has the following format and arguments:
Table 1. Required and optional attributes for the definition of an OSLC Provisioning job.
Attribute Description/value Required
Registry Services URI The address of the Registry Services (for example, https://myhost.mydomain:16311/odlc/pr).
Registry Services User name The user connecting to the Registry Services.
Registry Services Password The password associated with the user connecting to the Registry Services.
Service Provider URI The address of the Service Provider.
Service Provider User name The user connecting to the Service Provider.
Service Provider Password The password associated with the user connecting to the Service Provider.
Instance The RDF representation of the instance to be deployed.
The following example shows a job that schedules the provisioning of a system pattern:
WKS#PROVSAMPLETASK    
<?xml version="1.0" encoding="UTF-8"?>
<jsdl:jobDefinition xmlns:jsdl="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdl" 
 xmlns:jsdloslcprovisioning="http://www.ibm.com/xmlns/prod/scheduling/1.0/jsdloslcprovisioning"
 name="OSLCPROVISIONING">  
 <jsdl:application name="oslcprovisioning">
   <jsdloslcprovisioning:oslcprovisioning>   
    <jsdloslcprovisioning:OSLCProvisioningParameters>
     <jsdloslcprovisioning:actionPanel>     
      <jsdloslcprovisioning:instanceFromTemplate>
       <jsdloslcprovisioning:instance>      
       <!-- RDF definition of the instance>
&lt;?ml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
&lt;rf:RDF
     xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot;
     xmlns:oslc=&quot;http://open-services.net/ns/core#&quot;
     xmlns:sco=&quot;http://jazz.net/ns/ism/provisioning/sco#&quot;
     xmlns:oslc_auto=&quot;http://open-services.net/ns/auto#&quot;
     xmlns:dcterms=&quot;http://purl.org/dc/terms/&quot;
     xmlns:rdfs=&quot;http://www.w3.org/2000/01/rdf-schema#&quot; >
    &lt;rf:Description rdf:about=&quot;
http://myServiceProvider.domain:31115/CLIModelWeb/OSLC/BatchApplicationInstance/BatchApplication/
  0f01af24-72e0-3c4b-b95c-18f908c76898&quot;>
     &lt;olc_auto:parameterDefinition rdf:nodeID=&quot;A1&quot;/>
     &lt;olc_auto:parameterDefinition rdf:nodeID=&quot;A2&quot;/>
     &lt;rf:type rdf:resource=&quot;http://jazz.net/ns/ism/provisioning/sco#Entity&quot;/>
     &lt;olc_auto:parameterDefinition rdf:nodeID=&quot;A4"/>
     <dcterms:identifier>0f01af24-72e0-3c4b-b95c-18f908c76898</dcterms:identifier>
     <oslc_auto:parameterDefinition rdf:nodeID="A5"/>
     <dcterms:title>InstanceName</dcterms:title>
     <oslc_auto:parameterDefinition rdf:nodeID="A0"/>
   </rdf:Description>
   <rdf:Description rdf:nodeID="A5">
     <oslc:name>XML</oslc:name>
     <oslc:value>&lt;?xml version=&quot1.0&quot encoding=&quotUTF-8&quot;?&gt;
        &lt;model:TWSBatchApplicationInstance xmlns:model=&quot;
http://www.ibm.com/xmlns/prod/scheduling/1.0/Model&quot&gt;
        &lt;model:Name&gt;InstanceName&lt;/model:Name&gt;
             <!--Here starts the definition of jobs, job streams, etc contained in this instance>
             ...
             <!--Here starts the definition	>
 &lt;/model:TWSBatchApplicationInstance&gt;&lt;/slc:value>
 	&lt;olc:defaultValue>&lt;/slc:defaultValue>
     &lt;rdf:type rdf:resource=&quot;http://open-services.net/ns/core#Property&quot;/>
   </rdf:Description>
   <!--Mapping of the instance>	
    &lt;rdf:Description rdf:nodeID=&quot;A0&quot;>
    &lt;oslc:name>JOB_SAMPLE&lt;/oslc:name>
	       &lt;oslc:value>JOB_TARGET&lt;/oslc:value>
    &lt;oslc:defaultValue>JOB_TARGET&lt;/oslc:defaultValue>
    &lt;rdf:type rdf:resource=&quot;http://open-services.net/ns/core#Property&quot;/>
  &lt;/rdf:Description>
  <!--Here continues the definition of jobs, job streams, etc contained in this instance>
   ...
  <!--Here ends the mapping>
   &lt;rdf:Description rdf:nodeID=&quot;A7&quot;>
     &lt;sco:node rdf:resource=&quot;
http://thinklinux:31115/CLIModelWeb/OSLC/BatchApplicationInstance/BatchApplication/
      0f01af24-72e0-3c4b-b95c-18f908c76898&quot;/>
     &lt;rdf:type rdf:resource=&quot;http://jazz.net/ns/ism/provisioning/sco#Template&quot;/>
	   &lt;/rdf:Description>
   &lt;rdf:Description rdf:nodeID=&quot;A1&quot;>
     &lt;oslc:name>ICON&lt;/oslc:name>
     &lt;oslc:value>../js/images/default.png&lt;/oslc:value>
     &lt;oslc:defaultValue>../js/images/default.png&lt;/oslc:defaultValue>
    &lt;rdf:type rdf:resource=&quot;http://open-services.net/ns/core#Property&quot;/>
   &lt;/rdf:Description> &lt;/rdf:RDF></jsdloslcprovisioning:instance>
 					</jsdloslcprovisioning:instanceFromTemplate>
 				</jsdloslcprovisioning:actionPanel>
 				<jsdloslcprovisioning:connectionInfo>
 					<jsdloslcprovisioning:serviceProviderCatalog>
 						<jsdloslcprovisioning:catalogURI>
            https://myregistry.domain:16311/oslc/pr</jsdloslcprovisioning:catalogURI>

 						<jsdloslcprovisioning:username>registryServicesUser</jsdloslcprovisioning:username>

						<jsdloslcprovisioning:password>registryServicesPassword</jsdloslcprovisioning:password>
                                        					</jsdloslcprovisioning:serviceProviderCatalog>
                                         					<jsdloslcprovisioning:serviceProvider>
                                        						<jsdloslcprovisioning:serviceProviderURI>
https://myregistry.domain:16311/oslc/providers/1380617052297
                                                   </jsdloslcprovisioning:serviceProviderURI>

 						<jsdloslcprovisioning:usernameSP>myServiceProviderUser</jsdloslcprovisioning:usernameSP>
 						<jsdloslcprovisioning:passwordSP>myServiceProviderPassword</jsdloslcprovisioning:passwordSP>
				                                          	</jsdloslcprovisioning:serviceProvider>
                                   				</jsdloslcprovisioning:connectionInfo>
                                 	</jsdloslcprovisioning:OSLCProvisioningParameters>
                        		</jsdloslcprovisioning:oslcprovisioning>
  </jsdl:application>
 </jsdl:jobDefinition>

See also

From the Dynamic Workload Console you can perform the same task as described in

Creating job definitions.

For more information about how to create and edit scheduling objects, see

Designing your Workload.