Page History
Table of Contents |
---|
Purpose
- A PowerShell module is available for simplified access to the REST Web Service, see PowerShell Command Line Interface 2.0 - Introduction
- Any operation
- that can be performed on orders, workflows, jobs and related objects such as cancelling, suspending and resuming an order are performed by the JS7 - REST Web Service API.
- Consider that any operation offered by the JOC Cockpit GUI makes use of the REST Web Service.
- Find the Technical Documentation of the REST Web Service.
- The PowerShell module offers high level functionality such as managing orders, deploying workflows, managing the daily plan, creating reports etc.
- Find the full list of PowerShell CLI 2.0 - Cmdlets
Use Cases
- The PowerShell Module can be used from the command line and for scripting purposes.
Find the full list of PowerShell CLI 2.0 - Use Cases
Start a Workflow on demand
Code Block language powershell title Cmdlets to add an order to a workflow collapse true # connect to a JOC Cockpit instance using certificate authentication and preselecting Controller Connect-JS7 -Url https://joc-2-0-secondary.sos:7543 -KeystorePath "c:/users/me/client_certificate.p12" -Id testsuite # add an order to a workflow and provide arguments $order = Add-JS7Order -WorkflowPath /TestCases/EODReports -Arguments @{ 'fullReport'=$true; 'reportScope'=3; "reportTitle"="EOD Processing Report" }
x
Overview
Content Tools