Page History
...
--url
- Specifies the URL by which JOC Cockpit is accessible using
<http|https>://<host>:<port>
. - Example: http://centostest-primary.sos:4446
- Example: https://centostest-primary.sos:4443
- Specifies the URL by which JOC Cockpit is accessible using
--user
- Specifies the user account for login to JOC Cockpit. If JS7 - Identity Services are available for Client authentication certificates that are specified with the
--client-cert
and--client-key
options then their common name (CN) attribute has to match the user account. - If a user account is specified then a password can be specified using the
--password
option or interactive keyboard input can be prompted using the-p
switch.
- Specifies the user account for login to JOC Cockpit. If JS7 - Identity Services are available for Client authentication certificates that are specified with the
--password
- Specifies the password used for the account specified with the
--user
option for login to JOC Cockpit. - Consider use of the
-p
switch offering a secure option for interactive keyboard input.
- Specifies the password used for the account specified with the
--controller-id
- Specifies the identification of the Controller that holds related orders.
--ca-cert
- Specifies the path to a file in PEM format that holds the Root CA Certificate and optionally Intermediate CA Certificates to verify HTTPS connections to JOC Cockpit.
--client-cert
- Specifies the path to a file in PEM format that holds the Client Certificate if HTTPS mutual authentication is used..
--client-key
- Specifies the path to a file in PEM format that holds the Client Private Key if HTTPS mutual authentication is used..
--timeout
- Specifies the maximum duration for requests to the JS7 REST Web Service. Default:
15
seconds.
- Specifies the maximum duration for requests to the JS7 REST Web Service. Default:
--order-name
- Specifies a qualifier that is added to newly created orders. Used with
add-order
command.
- Specifies a qualifier that is added to newly created orders. Used with
--block-position
- Specifies the label of a block instruction such as JS7 - Resource Locks, should the
--start-position
option be used for a position inside the block instruction. Used withadd-order
command.
- Specifies the label of a block instruction such as JS7 - Resource Locks, should the
--start-position
- Specifies the label of an instruction in the workflow from which the order is started, for example from a job. Used with
add-order
andresume-order
commands. - The label of a top-level instruction can be specified. For start positions from nested instructions the
--block-position
option has to be specified too.
- Specifies the label of an instruction in the workflow from which the order is started, for example from a job. Used with
--end-position
- Specifies the label of an instruction before which the order will terminate. More than one label can be specified separated by comma. Used with
add-order
command. - If the
--block-position
option is used then the end position is inside the block. Otherwise the order will terminate when reaching the block's end.
- Specifies the label of an instruction before which the order will terminate. More than one label can be specified separated by comma. Used with
--variable
- One or more variables can be specified that hold key/value pairs separated by comma. Used with
add-order
andresume-order
commands. - Example:
--variable="myVar1=myValue1,myVar2=myValue2"
- One or more variables can be specified that hold key/value pairs separated by comma. Used with
--date-from
- Specifies the date and time in ISO format of the daily plan date, for example
2023-10-23
. Used withcancel-order
andsuspend-order
commands. - Dates can be calculated from the
date
command, for example:--date-to="$(TZ=Europe/London date +'%Y-%m-%d')"
specifies the daily plan date before the current day in the Europe/London time zone.--date-to="$(TZ=Europe/London date --date="1 day ago" +'%Y-%m-%d')"
specifies the daily plan date before yesterday.
- Specifies the date and time in ISO format of the daily plan date, for example
--date-to
- Specifies the date and time in ISO format of the daily plan date, for example
2023-10-23
. Used withadd-order
,cancel-order
,suspend-order
,get-notice
anddelete-notice
commands. - Dates can be calculated from the
date
command, for example:--date-to="$(TZ=Europe/London date +'%Y-%m-%d')"
specifies the daily plan date before the current day in the Europe/London time zone.--date-to="$(TZ=Europe/London date --date="1 day ago" +'%Y-%m-%d')"
specifies the daily plan date before yesterday.
- Specifies the date and time in ISO format of the daily plan date, for example
--time-zone
- Specifies the time zone to be used for the
--date-from
and--date-to
options. By default the system time zone is used. - The time zone is specified from an identifier as explained by https://en.wikipedia.org/wiki/List_of_tz_database_time_zones, for example
--time-zone=Europe/London
.
- Specifies the time zone to be used for the
--state
- Specifies one or more states - separated by comma - for which orders should be processed. Used with
cancel-order
,suspend-order
,resume-order
andletrun-order
commands. - Valid states include
PENDING, SCHEDULED, INPROGRESS, RUNNING, SUSPENDED, WAITING, PROMPTING, FAILED, BLOCKED
. - For example
--state=SCHEDULED,SUSPENDED,FAILED
will process orders holding any of the given states.
- Specifies one or more states - separated by comma - for which orders should be processed. Used with
--folder
- Specifies one or more inventory folders from absolute paths - separated by comma - holding workflows that should be processed.
- For example
--folder=/ProductDemo/CyclicExecution,/ProductDemo/ScheduledExecution
will process workflows in the given folders. - If the
--recursive
switch is used then sub-folders will be looked up recursively.
--workflow
- Specifies one or more workflows - separated by comma - that should be processed. Used with most of the commands.
- For example
--workflow=Cyclic-Check,Daily-EOD
will consider theCyclic-Check
andDaily-EOD
workflows.
--order-id
- Specifies one or more order identifiers - separated by comma - for which orders should be processed. Used with
cancel-order
,suspend-order
,resume-order
andletrun-order
commands. - For example
--order-id=#2024-08-25#T54565139012-sos,#2024-08-25#T56189833113-sos
will process the indicated orders.
- Specifies one or more order identifiers - separated by comma - for which orders should be processed. Used with
--label
- Specifies one or more labels - separated by comma - for jobs that should be processed. Used with
stop-job
,unstop-job
,skip-job
andunskip-job
commands. - For example
--label=job1,job2
will consider jobs assigned the indicated labels.
- Specifies one or more labels - separated by comma - for jobs that should be processed. Used with
--notice-board
- Specifies one or more JS7 - Notice Boards - separated by comma - that should be processed. Used with the
post-notice
,get-notice
anddelete-notice
commands.
- Specifies one or more JS7 - Notice Boards - separated by comma - that should be processed. Used with the
--notice-id
- Specifies the identifier of a notice, frequently the daily plan date is used, for example
2024-08-21
. Used with thepost-notice
,get-notice
anddelete-notice
commands.
- Specifies the identifier of a notice, frequently the daily plan date is used, for example
--notice-lifetime
- Specifies the max. period for which the notice will be available. Periods such as
1h
,30m
can be specified. Used with thepost-notice
command.
- Specifies the max. period for which the notice will be available. Periods such as
--log-dir
- If a log directory is specified then the script will log information about processing steps to a log file in this directory.
- File names are created according to the pattern:
manage-workflow.<yyyy>-<MM>-<dd>T<hh>-<mm>-<ss>.log
- For example:
manage-workflow.2022-03-19T20-50-45.log
...
Code Block | ||||
---|---|---|---|---|
| ||||
# common options for connection to JS7 REST API request_options=(--url=http://localhost:4446 --user=root --password=root --controller-id=controller) # post notice for current daily plan date ./manage-workflow.sh post-notice ${request_options[@]} \ --notice-board=ap3jobs # post notice for specific daily plan date and lifetime ./manage-workflow.sh post-notice ${request_options[@]} \ --notice-board=ap3jobs --notice-id=2024-08-26 --notice-lifetime=6h # reading notices from notice board ./manage-workflow.sh get-notice ${request_options[@]} \ --notice-board=ap3jobs # reading specific notice from notice board ./manage-workflow.sh get-notice ${request_options[@]} \ --notice-board=ap3jobs --notice-id=2024-08-26 # reading notices by folder ./manage-workflow.sh get-notice ${request_options[@]} \ --folder=/ap --recursive # delete notices from notice board for current daily plan date ./manage-workflow.sh delete-notice ${request_options[@]} \ --notice-board=ap3jobs # delete specific notices forfrom notice board andusing notice identifiers ./manage-workflow.sh delete-notice ${request_options[@]} \ --notice-board=ap3jobs --notice-id=2024-08-25,2024-08-26 # delete notices by folder ./manage-workflow.sh delete-notice ${request_options[@]} \ --folder=/ap --recursive |
...
Overview
Content Tools