History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JS-265
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andreas Liebert
Reporter: Andreas Liebert
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Job Scheduler

add Attribute end_state to order/add_order element

Created: 07 April 2008 12:16   Updated: 26 August 2008 10:21
Component/s: Job Scheduler Binaries
Affects Version/s: None
Fix Version/s: 1.3.5

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Sub-Tasks  All   Open   
 Sub-Task Progress: 

 Description  « Hide
The attribute end_state causes an order to leave a job chain at that state (more precisely: after being processed in that state).
If the order is set to the error state at the specified end state, it will not leave the job chain. Instead it will take the path that is configured for the error state.

e.g.

<job_chain name="test">
  <job_chain_node state="a" job="job_a"/>
  <job_chain_node state="b" job="job_b" next_state="c" error_state="error"/>
  <job_chain_node state="c" job="job_b" next_state="end" error_state="error"/>
  <job_chain_node state="end"/>
  <job_chain_node state="error" job="job_error" next_state="error_end" error_state="error_end"/>
  <job_chain_node state="error_end"/>
</job_chain>

<add_order id="order_a"/> will go: a->b->c->end
<add_order id="order_a" end_state="b"/> will go: a->b
if an error occurs in b, <add_order id="order_a" end_state="b"/> will go: a->b->error->error_end

 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.