During the Package deployment , we need to lock/unlock the JOB Queue using P986130 Application

P986130 is designed to lock/unlock one Job Queue at a times. So if we have many job queues in the system then this process will be a time consuming one during the package deployment window. Now we can use orchestration to lock or unlock all the job queues with very less effort. This blog will help you to create the Orchestration for this requirement.
Steps to create the Lock or Unlock Job Queue Orchestration
- Create Form Service Request
- Create Rule
- Create Orchestration
- Test the Orchestration
Step 1 : Create Form Service Request
We need to pass the Grid Data (Multiple rows) of P986130 to the orchestration to execute the orchestration in a loop. So that we can lock or unlock the multiple job queue using Orchestration!

Here we are creating two Form Service Request to change the Job Queue Status
- Get Grid Data of P986130 Form Service Request will save the Grid data in the Grid Data Set

- Grid Data which we got from the First Service Request will be passed to "Lock or Unlock Job Queue" Service to update the multiple records.

Follow the below steps to create the "Grid Data of P986130" Form Service Request
- Login into Orchestrator Studio
- Click on Service request button
- Click on Create Service Request --> Form Request

Form Service Request Input
Host Name --> Enterprise Server Name
Port Number --> Enterprise Server Port Number
Job Queue Status --> Enterprise Server Job Queue Status
You can use Process Recorder or Orchestrator Studio to create this service request. Create the Service Request with below Order of the Execution

Form Service Request Output
Grid Data Set Name --> Grid Data
Host Name --> Grid Enterprise Server
Job Queue --> Grid Job Queue
Job Queue Status --> Grid Job Queue Status
Port Number --> Grid Port Number

Follow the below steps to create the "Lock or Unlock Job Queue" Form Service Request
- Grid Data which we got from the First Service Request will be passed to "Lock or Unlock Job Queue" Service to update the multiple records.
- Click on Service request button
- Click on Create Service Request --> Form Request

Form Service Request Input
Host Name --> Enterprise Server Name
Port Number --> Enterprise Server Port Number
Job Queue Status --> Enterprise Server Job Queue Status
You can use Process Recorder or Orchestrator Studio to create this service request. Create the Service Request with below Order of the Execution
Form Service Request Output
You can return the data which you want to see in the Orchestration Output
Here we are returning the below data
Host Name --> Enterprise Server
Port Number --> Enterprise Server Port Number

Step 2 : Create a Rule
Job Queue Status is saved in the table as numeric ( 01 or 02 ). It would be good to pass the String Lock or Unlock as input when compare to 01 or 02.
To achieve this we are creating the below rule

When the input is equal to Lock then this rule will return true or it will return false
Step 3 : Create Orchestration
Here we are creating two orchestration to lock and unlock the Job Queue. Follow the below steps to Lock or Unlock Job Queue Orchestration
- Call the Rule and Form Request which we created on the above steps in the below order

- Add the below Orchestration Inputs and Variables
Orchestration Inputs
Enterprise Server
Port Number
Lock or Unlock
Variables
Lock Job Queue = 01
Unlock Job Queue = 02

- Map the Data input for Rule

- Map the Data Input for Get Grid Data of P986130 - True Condition

- Map the Data Input for Lock or Unlock Job Queue - True Condition

- Map the Data Input for Lock or Unlock Job Queue - False Condition


- Make sure to select the below Output then only Data Set from Grid Data of P986130 Form Request will be passed to Orchestration in a loop

Step 4 : Test the Orchestration
We can test the Orchestration using Orchestrator Client
Case 1 : Lock Job Queue
Login into Orchestrator Client then run the Lock or Unlock Job Queue Orchestration by passing the Enterprise Server Name and Port Number and Lock or Unlock condition
- Before running the Orchestration

- Job Queue Locked successfully !

Case 2 : Unlock Job Queue
Login into Orchestrator Client then run the Lock or Unlock Job Queue Orchestration by passing the Enterprise Server Name and Port Number and Lock or Unlock condition
- Before running the Orchestration


- Job Queue Unlocked successfully!
