Introduction
The JOC Cockpit Job Streams view provides import and export functions to allow reliable Job Stream deployment, for example, from a source, such as an Integration System (INT, UAT) to a target, such as a Production System (PROD).
...
- If a folder is found on the target system with the same Path of Job Stream and also includes the jobs created with the Conditions in the Job Stream then the Job Stream is created.
"New" Job Stream Import
The following configuration is used for demonstration:
...
- On the PROD System, a folder named test with the required jobs [job1, job2, job3, and job4] is created.
Export Procedure
The export can be done from the Job Streams tab of the JOC Cockpit.
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
[ { "jobStream": "jobstream1", "jobs": [ { "job": "/test/job1", "inconditions": [], "outconditions": [ { "conditionExpression": { "expression": "rc:0", "validatedExpression": " false ", "value": false }, "id": 11, "inconditions": [ { "jobStream": "jobstream1", "jobs": [ { "expressions": [ " job1 " ], "job": "/test/job2" } ] } ], "jobStream": "jobstream1", "outconditionEvents": [ { "command": "create", "event": "job1", "exists": false, "existsInJobStream": false, "id": 11 } ], "vertexId": "19" } ] }, { "job": "/test/job2", "inconditions": [ { "conditionExpression": { "expression": "job1 ", "validatedExpression": " false ", "value": false }, "consumed": false, "id": 13, "inconditionCommands": [ { "command": "startjob", "commandParam": "now", "id": 13 } ], "jobStream": "jobstream1", "markExpression": true, "outconditions": [ { "jobStream": "jobstream1", "jobs": [ { "expressions": [ "rc:0" ], "job": "/test/job1" }, { "expressions": [ "rc:0" ], "job": "/EOM/eom_job1" } ] }, { "jobStream": "jobstream0", "jobs": [ { "expressions": [ "rc:0" ], "job": "/EOD/eod_job1" } ] } ], "vertexId": "25" } ], "outconditions": [ { "conditionExpression": { "expression": "rc:0", "validatedExpression": " true", "value": true }, "id": 13, "inconditions": [], "jobStream": "jobstream1", "outconditionEvents": [ { "command": "create", "event": "job2", "exists": false, "existsInJobStream": false, "id": 13 } ], "vertexId": "29" } ] } ] }, { "jobStream": "jobstream2", "jobs": [ { "job": "/test/job3", "inconditions": [], "outconditions": [ { "conditionExpression": { "expression": "rc:0", "validatedExpression": " false ", "value": false }, "id": 14, "inconditions": [ { "jobStream": "jobstream2", "jobs": [ { "expressions": [ " job3 " ], "job": "/test/job4" } ] } ], "jobStream": "jobstream2", "outconditionEvents": [ { "command": "create", "event": "job3", "exists": false, "existsInJobStream": false, "id": 14 } ] } ] }, { "job": "/test/job4", "inconditions": [ { "conditionExpression": { "expression": "job3 ", "validatedExpression": " false ", "value": false }, "consumed": false, "id": 14, "inconditionCommands": [ { "command": "startjob", "commandParam": "now", "id": 14 } ], "jobStream": "jobstream2", "markExpression": true, "outconditions": [ { "jobStream": "jobstream2", "jobs": [ { "expressions": [ "rc:0" ], "job": "/test/job3" } ] } ] } ], "outconditions": [ { "conditionExpression": { "expression": "rc:0", "validatedExpression": " false ", "value": false }, "id": 15, "inconditions": [], "jobStream": "jobstream2", "outconditionEvents": [ { "command": "create", "event": "job4", "exists": false, "existsInJobStream": false, "id": 15 } ] } ] } ] } ] |
Import Procedure
- The import procedure is started in the Job Streams tab of JOC Cockpit in the target environment by clicking the Import Job Stream button.
...