Page History
...
jobResourceVariable( string: <JobResource>, string: <Variable> )
- The function provides access to JS7 - Job Resources: it reads from the Job Resource specified with the first argument and returns the value of the Job Resource variable specified with the second argument. The function is evaluated by the Controller when adding an order. It is therefore not required to specify the requested Job Resource outside of the function. In fact the Controller reads the respective variable values from the indicated Job Resources and adds them to an Order Variable that is consider final and cannot be modified later on.
- This function can be used with the variable declaration of a workflow only. It cannot be used with later job arguments or environment variables. When declaring the order variable with the workflow then the
final
data type has to be used. Examples:
Expression jobResourceVariable( 'database', 'db_user' )
JSON "jobResourceVariable( 'database', 'db_user' )"
Sample Value scott
Expression jobResourceVariable( 'database_' ++ $country, 'db_user' )
JSON "jobResourceVariable( 'database_' ++ $country, 'db_user' )"
Sample Value tiger
This example dynamically specifies the name of the Job Resource by concatenating the fixed value
'database_'
and the value of the$country
order variable.
...
Overview
Content Tools