Versions Compared

Key

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

...

  • JOC Cockpit offers a graphical workflow editor to design for designing workflows, jobs and dependencies.
    • Workflows can be designed by drag & drop in a graphical view.
    • Workflows can be edited in a JSON source code view.
    • For job Job scripts within a workflow can be edited using a specific special editor is provided that allows to work with working on longer scripts.

Graphical Workflow Editor

The workflow editor is available from the Configuration->Inventory View that offers . This view has the following panels:

  • Left panel: The tree allows

...

  • navigation to folders and objects. Workflows can be available in any folder from the sub-folder

...

  • Workflows.
  • Middle panel: The design view allows

...

...

  • to be copied from the tool panel to a workflow by drag & drop
  • Right panel: The property editor allows

...

  • management of instruction properties such as the jobs that are available with a workflow.

Drag and Drop

The middle panel holds a toolbar with icons for the respective relevant JS7 - Workflow Instructions.

From the toolbar the The first instruction icon for a Job can be dragged from the toolbar and dropped to in the indicated area:

  • From the toolbar the The  icon is used to add a Job from the toolbar.
  • The dropping area has to be touched with by the cursor, not with by the Job icon.


To add further add instructions to a workflow, for example a second Job, the Job is dropped to on the connector line lines before or after the existing job.

  • The connector line has to be touched with by the cursor, not with by the Job icon.

Adding Fork/Join Instruction Branches

When a JS7 - Fork / Join Instruction is dragged and dropped then users Users can add branches for jobs that run in parallel by dragging and dropping a JS7 - Fork / Join Instruction.

  • From the The toolbar the  icon is used to add a Fork/Join Instruction.
  • In a first step an empty block for Fork and Join is created.

...

  • The  Fork icon has to be touched with by the cursor, not with by the icon for the Job that should be is being added.


When the operation to drag and drop dropping a Job directly onto the  Fork icon is repeated, then each time an additional branch is created like thiswill be created each time as shown below:


To Users can add jobs to an existing branch users drag by dragging and drop dropping the  icon onto the connector line lines before or after an instruction such as a Job in a branch:

Adding If Instruction Branches

Adding a JS7 - If Instruction to a workflow allows to perform conditional execution of jobs and further instructions to be performed.

  • From the toolbar the The  icon is used to add an If Instruction from the toolbar.
  • In a first step an empty block for If and If-End is created.
  • The property editor allows is then used to specify the predicate of the If Instruction, i.e. the condition.


To add a branch to the an If Instruction for, for example, a Job, the  icon is dragged and dropped directly onto the  If  If icon.



When the operation to drag and drop a Job If a further Job is dragged and dropped directly onto the  If icon is repeated then , a second branch will be created for the If Instruction is created like this:as shown in the diagram below.

  • The left hand branch is will be processed if the condition evaluates to true, the right hand branch is will be processed if it evaluates to false.
  • The  icon has to be touched with by the cursor, not with by the Job icon.

JSON Object Editor

JS7 stores scheduling objects in JSON format. Users can display and can modify the JSON representation of objects such as workflows from the object's action menu:

...

The action menu items Show JSON and Edit JSON bring forward popup windows to display and to modify JSON code respectively.

...

The JOC Cockpit Configuration->Inventory View offers opens the Script Editor for the modification of job scripts:

  • Job scripts can be directly edited from the multiline multi-line input field in the lower right hand corner of the property editor.
  • When moving The Image Added pencil icon will be displayed when the mouse is moved into the job script input field then the Image Removed pencil icon is displayed. Clicking this icon invokes the Script Editor.

...

The Job Script Editor is explained in more detailed with in JS7 - Job Script Editor.