Versions Compared

Key

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

...

The Converter reads AutoSys® *.jil files and creates .json files that are added to a .tar.gz or .zip archive file for import into JS7, see JS7 - Inventory Export and Import.

...

.Specifies that jobs used in multiple job chains will be converted to the JS7 - Job Template converted converted.

Specifies that cyclic start times of JS1 orders and schedules will be converted to the JS7 - Cycle Instruction.

Consider chapter Cyclic Workflows vs. Cyclic Orders
SettingDefaultExplanation
generateConfig.workflowstrueSpecifies that workflows should be convertedcreated.
generateConfig.agentstrueSpecifies that Agent configurations should be createdgenerateConfig.jobTemplatestrue.
generateConfig.schedulestrueSpecifies that schedules should be convertedcreated.
generateConfig.calendarstrueSpecifies that calendars should be created.
generateConfig.lockstrueSpecifies that Resource Locks should be generateConfig.cyclicOrdersfalsecreated.

Section: Parser

SettingDefaultExplanation
parserConfig.excludedDirectoryNamesextensionsjil

The default file name extensions for looking up AutoSys® JIL files in the input directory.

The JS1 live folder includes a number of hidden sub-directories that should not be converted. Such directory names typically start with a dot as in .sos-templates, .configuration.

If more than one directory extension is specified then , they have to be separated with a semicolon ";".

parserConfig.excludedDirectoryPaths

Specifies a number of paths in the JS1 live folder that should not be considered for conversion. Typically the live/sos folder holds housekeeping jobs that are not required for JS7.

If excluded paths are specified then this includes not to consider any sub-directories recursively. It is not required to specify individual sub-directories with the parserConfig.excludedDirectoryNames when using excluded paths.

...

are separated by semicolon.

Example:

parserConfig.extensions = jil;txt

parserConfig.excluded.fileNames

Specifies files from their name that should be excluded when looking up AutoSys® JIL files in the input directory.  If more than one file name is specified, they are separated by semicolon.

Example:

parserConfig.excluded.fileNames = machines.jil

Section: Autosys

SettingDefaultExplanation
workflowConfig
autosys.input.
defaultTimeZone
splitConfigurationtrue

Creates separate XML files containing the original AutoSys® job definition for each standalone job (a job without any conditions) or for each box job.

Example:

autosys.input.splitConfiguration = false

autosys.input.diagram.generatetrue

Specifies that diagram files in SVG format should be created.

Example:

autosys.input.diagram.generate = false

autosys.input.diagram.optimize.dependenciesfalse

Attempts to resolve AutoSys® job conditions in order to reduce the dependencies (arrows) between various jobs in diagrams.

autosys.input.diagram.outputFormatsvg

Specifies the output format of diagram files.

autosys.input.diagram.size0


autosys.input.diagram.graphviz.executable

Specifies the location of the graphviz dot executable to create SVG output files.

Example:

autosys.input.diagram.graphviz.executable = C:/Program Files/Graphviz/bin/dot.exe

autosys.input.diagram.graphviz.cleanupDotFilesfalse

Specifies if existing SVG output files should be deleted on start of conversion.

Example:

autosys.input.diagram.graphviz.cleanupDotFiles = true

Section: Workflow

JS7 workflows can be operated in a JS1 compatibility mode. If set to true then

  • for order variables and workflow variables in shell jobs respective environment variables are created that are prefixed with SCHEDULER_PARAM_ followed by the uppercase variable name.
  • for job arguments of shell jobs accordingly environment variables are created.
Consider that environment variables are not added by the Converter but are created on-the-fly by the Controller and Agents.
SettingDefaultExplanation
workflowConfig.default.timezoneEtc/UTC

Specifies the default time zone that is added to converted workflows. This time zone for example is applied to JS7 - Admission Times for Jobs.

See List of tz database time zones

jobConfig.forced.GraceTimeout15Specifies the grace timeout after which a running job is terminated if the cancel/force operation is used, see JS7 - Job Instruction.
jobConfig.forced.parallelism1

Specifies the number of parallel tasks that a job can be running for, see JS7 - Job Instruction.

jobConfig.forced.failOnErrWrittenfalseSpecifies the handling of job output to the stderr channel. If set to true then output to stderr is considered an error, otherwise such output is logged and no error is raised, , see JS7 - Job Instruction.
jobConfig.forced.warnOnErrWrittenfalse

Specifies the handling of job output to the stderr channel. If set to true then output to stderr is considered a warning, otherwise such output is logged and no warning is raised, , see JS7 - Job Instruction.

jobConfig.forcedV1Compatiblefalse

JS7 workflows can be operated in a JS1 compatibility mode. If set to true then

  • for order variables and workflow variables in shell jobs respective environment variables are created that are prefixed with SCHEDULER_PARAM_ followed by the uppercase variable name.
  • for job arguments of shell jobs accordingly environment variables are created.

Consider that environment variables are not added by the Converter but are created on-the-fly by the Controller and Agents.

jobConfig.forced.retry.maxTries

Forces use of the indicated maximum for use of the JS7 - Retry Instruction. Without this setting the AutoSys® n_retrys option is used to specify the maximum number of retries. 

jobConfig.forced.retry.delays

Forces the indicated delay between retries.

jobConfig.forced.shell.unix.commandPrefix

Forces a prefix to be used for Unix shell jobs.

Example:

jobConfig.forced.shell.unix.commandPrefix = source

jobConfig.forced.shell.windows.commandPrefix

Forces a prefix to be used for Windows shell jobs.

jobConfig.default.shell.unix.shebang#!/bin/bash

Specifies the shebang to be inserted to the begin of job scripts:

Example:

jobConfig.default.shell.unix.shebang = #!/bin/sh

Etc/UTC

Specifies the default time zone that is added to converted workflows. This time zone for example is applied to JS7 - Admission Times for Jobs.

See List of tz database time zones

jobConfig.jitl.logLevel

Specifies the value of the log_level job argument of JS7 - Job Templates, see JS7 - JITL Common Variables.

Allowed values include: INFO, DEBUG, TRACE. If no log level is specified then JVM Jobs behave as if no log_level job argument is used.

jobConfig.forcedGraceTimeout15Specifies the grace timeout after which a running job is terminated if the cancel/force operation is used, see JS7 - Job Instruction.
jobConfig.forcedParallelism1

Specifies the number of parallel tasks that a job can be running for, see JS7 - Job Instruction.

jobConfig.forcedFailOnErrWrittenfalseSpecifies the handling of job output to the stderr channel. If set to true then output to stderr is considered an error, otherwise such output is logged and no error is raised, , see JS7 - Job Instruction.
jobConfig.forcedV1Compatiblefalse

Section: Agent

SettingsDefaultExplanation
agentConfig.forcedControllerId
Forces use of the given ControllerId for all generated agents.
agentConfig.defaultControllerId
This setting specifies the ControllerId for generated agents if the Master ID in JS1 (process_class.spooler_id) is empty.
agentConfig.forcedAgent

Forces use of the given Agent for all converted jobs.

Agent definition:

  • Expects a JSON value.
  • The JSON can be provided as:
    • JSON text
      or
    • JSON include file (relative to the properties file)
  • JSON elements:
    • NameDefaultExplanation
      platformUNIXForces use of the UNIX or WINDOWS platform.
      subagentClusterId
      Forces use the given subagentClusterId for converted jobs when an agentCluster is used.
      standaloneAgent
      See agent-schema.json.
      agentCluster
      See clusterAgent-schema.json.
  • Examples:
    • {"platform":"UNIX"}
      • Forces use of the UNIX platform for all converted jobs.
    •  {"standaloneAgent":{"url":"http://localhost:4445"}}
      • Forces use of the standalone Agents in all converted jobs with the given url.
    •  {"platform":"UNIX", "standaloneAgent":{"agentName":"forced_agent", "url":"http://localhost:4445"}}
      • Forces use of a standalone Agent forced_agent in all converted jobswith the given url.
agentConfig.defaultAgent
NameURL
default_agenthttp://localhost:4445

Without an Agent being specified the JS1 executes jobs with the Master. In JS7 an Agent has to be used. This setting specifies an Agent that is used for jobs that are executed with a Master in JS1.

The syntax for assignments: see agentConfig.forcedAgent Agent definition.

agentConfig.mappings

By default the Converter handles the mapping of Agent Names found in JS1 process classes (<process_class>) like this:

  • Agents are determined by the unique URL assigned the Agent in existing process classes.
  • The name of a process class is mapped
    • to a Standalone Agent if it includes a single Agent
    • to a Cluster Agent if it includes more than one Agent

The syntax for mapping includes:

<js1-agent-name>=<Agent definition>

<js1-agent-name> is the name of the JS1 Agent.
<Agent definition> see agentConfig.forcedAgent Agent definition..

Example:

js1_agent1={"platform":"UNIX", "standaloneAgent":{"agentName":"primaryAgent", "url":"http://unix:4445"}};js1_agent2={"platform":"WINDOWS", "standaloneAgent":{"agentName":"secondaryAgent", "url":"http://win:4445"}}

  • The process class js1_agent1 is mapped to the JS7 Agent with the name primaryAgent that is operated for Unix.
  • The process class js1_agent2 is mapped to the JS7 Agent with the name secondaryAgent that is operated for Windows.

or

 js1_agent1=examples/agent_standalone.json; js1_agent2=examples/cluster_agent.json

  • The process class js1_agent1 is mapped to the JS7 Agent defined in the examples/agent_standalone.json file.
  • The process class js1_agent2 is mapped to the JS7 Agent defined in the examples/cluster_agent.json file.

Any number of mappings are specified separated by a semicolon. This setting can be split across a number of lines by use the "\" line continuation character at the end of each line that should be continued.

...

SettingDefaultExplanation
scheduleConfig.forced.WorkingDayCalendarNameAnyDaysUse of JS7 - Calendars is required. This setting forces use of the same calendar for working days with any schedules that are created. By default a calendar with the name AnyDays is assumed. Users have to create a calendar with this name prior to running the Converter.
scheduleConfig.forced.NonWorkingDayCalendarName
This setting forces use of the same calendar for non-working days with any schedules that are created. Use of a calendar for non-working days is optional. Users have to create a calendar with this name prior to running the Converter with this setting. If the setting is not used, then no non-working day calendar will be applied by the Converter.
scheduleConfig.default.WorkingDayCalendarNameAnyDaysThis setting specifies a default calendar for working days for schedules that do not specify a calendar on their own. By default a calendar with the name AnyDays is assumed. Users have to create a calendar with this name prior to running the Converter.
scheduleConfig.default.NonWorkingDayCalendarNameAnyDaysThis setting specifies use of a default calendar for non-working days with schedules that do not specify a calendar on their own. Use of a calendar for non-working days is optional. If this setting is used, then users have to create a calendar with this name prior to running the Converter.
scheduleConfig.default.timezoneEtc/UTC

With the JS7 a time zone is required for scheduled. This setting specifies the default time zone that is applied for Workflowsto Schedules.

See List of tz database time zones 

scheduleConfig.forced.planOrdersfalseOrders are automatically planned for the JS7 - Daily Plan. The setting is applied if a JIL file's date_condition setting specifies y or 1.
scheduleConfig.forced.submitOrdersfalseOrders are automatically submitted to Controllers for the JS7 - Daily Plan. The setting is applied if a JIL file's date_condition setting specifies y or 1.

...

SettingDefaultExplanation
calendarConfig.forced.folderRoot folder

Specifies the folder where the calendars are generated.

Example:

calendarConfig.forced.folder = Calendars

Section: Lock

SettingDefaultExplanation
lockConfig.forced.capacity

Specifies the capacity of JS7 - Resource Locks.

lockConfig.default.capacity1

Default capacity for Resource Locks is based on

Autosys

AutoSys® resources

Section: Boards

SettingDefaultExplanation
boardConfig.forced.lifetime

Specifies the lifetime of Notices created by JS7 - Notice Boards

boardConfig.default.lifetime24*60

Specifies the default lifetime for Notices. The default value is 24*60 (24 hours).

Example:

boardConfig.default.lifetime = 60d

Recommendations

It is recommended to create the following objects in the JS7 inventory prior to conversion:

...