Skip to main content
Question

Roll back Array of tasks


Forum|alt.badge.img+6

Receiving array tasks from external system . if any exception in one of the task while creating , all tasks should rollback . Expectation either create “ALL” or “NONE”  .

XML Map is rollback particular task and not all

 

Ex:

  1. IFS receiving two tasks, skills ,address and etc.
  2. Second tasks if any skill don’t match with in IFS. Only second transaction roll back and first task still exist in IFS  

 

Is there any way to achieve this

3 replies

Saranga Amaraweera
Superhero
Forum|alt.badge.img+22

awaiting for your input @ruben.maas 


Forum|alt.badge.img+13
  • Hero (Employee)
  • 124 replies
  • October 26, 2022

Hi @Saranga Amaraweera \ @seeda ,

Using an XML map all primary records are processed sequential independently, we can’t change that behavior with configuration. 

so if TASK is the primary table of the XML map it is not possible to rollback all tasks in case of an exception.

 

The only way to accomplish this requirement is to change the primary table of the XML to a parent object, e.g. REQUEST and process the associated tasks as child transactions. 

That way, if one task failed to update the other related to the same parent object (REUQEST) will be rolledback. 

 

Cheers, 

 

Ruben

 

 

 


Forum|alt.badge.img+6
  • Author
  • Do Gooder
  • 13 replies
  • October 26, 2022

here we are using request table also . Example i mentioned Tasks  only .

as per my undersetting .Need to follow 

  1.  we can create one custom table as parent table of request 
  2.  use customer table reference id in all child request table in one of the user_def column.  this way if any one of the child request/task fails , entire transaction rolled back .

let me test on this scenario 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings