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>      
  
<?ml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
<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; >
    <rf:Description rdf:about=&quot;
http://myServiceProvider.domain:31115/CLIModelWeb/OSLC/BatchApplicationInstance/BatchApplication/
  0f01af24-72e0-3c4b-b95c-18f908c76898&quot;>
     <olc_auto:parameterDefinition rdf:nodeID=&quot;A1&quot;/>
     <olc_auto:parameterDefinition rdf:nodeID=&quot;A2&quot;/>
     <rf:type rdf:resource=&quot;http://jazz.net/ns/ism/provisioning/sco#Entity&quot;/>
     <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><?xml version=&quot1.0&quot encoding=&quotUTF-8&quot;?>
        <model:TWSBatchApplicationInstance xmlns:model=&quot;
http://www.ibm.com/xmlns/prod/scheduling/1.0/Model&quot>
        <model:Name>InstanceName</model:Name>
       
             ...
       
 </model:TWSBatchApplicationInstance&gt;&lt;</slc:value>
 	<olc:defaultValue>&lt;</slc:defaultValue>
     <rdf:type rdf:resource=&quot;http://open-services.net/ns/core#Property&quot;/>
   </rdf:Description>
  	
    <rdf:Description rdf:nodeID=&quot;A0&quot;>
    <oslc:name>JOB_SAMPLE&lt;</oslc:name>
	       <oslc:value>JOB_TARGET&lt;</oslc:value>
    <oslc:defaultValue>JOB_TARGET&lt;</oslc:defaultValue>
    <rdf:type rdf:resource=&quot;http://open-services.net/ns/core#Property&quot;/>
  </rdf:Description>
  
   ...
  
   <rdf:Description rdf:nodeID=&quot;A7&quot;>
     <sco:node rdf:resource=&quot;
http://thinklinux:31115/CLIModelWeb/OSLC/BatchApplicationInstance/BatchApplication/
      0f01af24-72e0-3c4b-b95c-18f908c76898&quot;/>
     <rdf:type rdf:resource=&quot;http://jazz.net/ns/ism/provisioning/sco#Template&quot;/>
	   </rdf:Description>
   <rdf:Description rdf:nodeID=&quot;A1&quot;>
     <oslc:name>ICON&lt;</oslc:name>
     <oslc:value>../js/images/default.png&lt;</oslc:value>
     <oslc:defaultValue>../js/images/default.png&lt;</oslc:defaultValue>
    <rdf:type rdf:resource=&quot;http://open-services.net/ns/core#Property&quot;/>
   </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.