Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: 'Split & Join' code block updated

...

Code Block
languagexml
titleThe Split & Join Job Chain
collapsetrue
<?xml version="1.0" encoding="ISO-8859-1"?>
<job_chain  title="Split &amp; Join Chain" name="job_chain">
        <job_chain_node  state="job1" job="job1" next_state="split" error_state="error" />
        <job_chain_node  state="split" job="split_job" next_state="join" error_state="error" />
        <job_chain_node  state="split:job3" job="job3" next_state="job3a" error_state="error" on_error="suspend" />
        <job_chain_node  state="job3a" job="job3a" next_state="join" error_state="error" on_error="suspend" />
        <job_chain_node  state="split:job4" job="job4" next_state="job4a" error_state="error" on_error="suspend" />
        <job_chain_node  state="job4a" job="job4a" next_state="join" error_state="error" on_error="suspend" />
        <job_chain_node  state="join" job="join_job" next_state="job6" error_state="error" />
        <job_chain_node  state="job6" job="job6" next_state="success" error_state="error" />
        <job_chain_node  state="success" />
        <job_chain_node  state="error" />
</job_chain>
Code Block
languagexml
titleThe Start Order for the Split & Join Job Chain
collapsetrue
<?xml version="1.0" encoding="ISO-8859-1"?>
<order  title="Split &amp; Join Processing">
    <run_time />
</order>

...

The error handling process requires some manual work. This is normally done using the Job Chains view of the JOC Cockpit interface.

  • To skip the error node, use the JOC Cockpit Set Order state functionState function, which is available in the Order Additional Options menu. Then resume the orderOrder using Resume Order.
  • To cancel the whole process delete all split suspended Orders with the JOC Cockpit Delete Order function. Then reset the main Order with the reset order Reset Order function.
  • To add a dummy Order to the join node to satisfy the condition to proceed the main Order use the JOC Cockpit Add Order function.
    You can then either:
    • Add the parameter join_session_id=main_order_id where main_order_id is the order id of the main order.
    • Alternatively, you can name :
      • Name the
      order
      • Order with the id main-order-id_any where master-order-id is the
      order
      • Order id of the main
      order
      • Order.
      • Set the start step and the end step to the join node.
      • Then delete the suspended
      order
      • Order if there is one.

Order IDs

The 'main' Order for the split & join download - that is the Order that proceeds job1 -> split -> join -> job6 - has the ID 'start'.

...