Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Job Resources can be defined to hold a number of environment variables for shell jobsShell Jobs, e.g. in order to forward environment variables for paths and locations to scripts.

  • Environment variables from Job Resources are automatically available for Shell Jobs.
  • Environment variables are limited in scope to the current job. Therefore modifications to an environment variable variables by a job script are not effective beyond the scope of current job execution.
  • Environment Values for environment variables use the data type "string".

Assignment of Job Environment Variables

Shell jobs can define their an individual set of environment variables. 

  • The values of environment variables can be specified from
  • Environment variables are limited in scope to the current job. Therefore modifications to an environment variable variables by a job script are not effective beyond the scope of current job execution.
  • Environment Values for environment variables use the data type "string". Should values from assigned variables use a different data type then the value is converted to string.

...

  • The purpose of Job Arguments is to parameterize optional startup code of a job that should be is run on initialization of the job and , i.e. before the job will be executed for orders later on.
  • Constant values only can be assigned.

Assignment of Arguments

Such arguments Arguments are used by JVM Jobs when processing orders. 

  • The purpose of Arguments is to parameterize the processing of an order.
  • Constant values and Order Variables can be assigned and Order Variables.

Assignment Syntax Examples

The following assignment types are available:

  • Constant string values
    • This assignment type is e.g. used for with Variable Declarations with for workflows and for with Node Arguments
    • Example:
      • GUI Display: var1 = value 1
      • Storage JSON format: "var1": "value 1"
  • Expressions
    • This assignment type is used for with Environment Variables, Job Arguments and Initialization Arguments
    • Example:
      • GUI Display: var1 = $someVariable
      • Storage JSON format: "var1": "$someVariable"

Find a number of syntax examples for assigning a variable an expressionassignment of constant values and expressions.

Examples for Constant Values

Constant values are assigned by use of single quotes or double quotes for an expression. No substitution of variables is performed within single quoted values.

  • Use with single quotes

    Inputvar = 'some value'
    Outputsome value
    JSON"var": "'some value'"



  • Use with double quotes

    Inputvar = "some value"
    Outputsome value
    JSON"var": "\"some value\""



  • Use with single quoted values

    Inputvar = 'some \'quoted\' value'
    Outputsome 'quoted' value
    JSON"var": "'some \\'quoted\\' value'"



  • Use with double quoted values

    Inputvar = "some \"quoted\" value"
    Outputsome "quoted" value
    JSON"var": "\"some \\\"quoted\\\" value\""



  • Use with double quoted and single quoted values

    Inputvar = "some 'quoted' value"
    Outputsome 'quoted' value
    JSON"var": "\"some 'quoted' value\""



  • Use with $ character from single quoted values

    Inputvar = 'some $dollar value'
    Outputsome $dollar value
    JSON"var": "'some $dollar value'"



  • Use with $ character from double quoted values

    Inputvar = "some \$dollar value"
    Outputsome $dollar value
    JSON"var": "\"some \\$dollar value\""

Examples for Variable References

...