WorkflowJob - getDBKeyByGroupAndName
WorkflowJob - getDBKeyByGroupAndName
Description :
This command returns the handle for a Workflow Job. You must identify the job group where the job is stored and the name of the job.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
parentGroup | String | Fully qualified path to the job group where the job is stored. |
jobName | String | Name of the Workflow Job. |
Example
The following example shows you how to get the DBKey of an existing Workflow Job.
Script
# Name of the existing Workflow Job.
WORKFLOWJOB_NAME="workflowjob1"
# Job group in which the Workflow Job is stored.
WORKFLOWJOB_GROUP="/parent/group1"
# Get the Workflow Job DBKey using the above information.
WORKFLOWJOB_DBKEY=`blcli WorkflowJob getDBKeyByGroupAndName $WORKFLOWJOB_GROUP $WORKFLOWJOB_NAME`
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*