Forum Discussion

Former_Member's avatar
Former_Member
Ideator I
9 years ago

Transaction Boundary in ARAS

Hi, Does ARAS provides Transaction Boundary support ? In case of any transaction failure, will it take care of rollback or we have to explicitly write a code regarding the same ? Regards, Diksha

3 Replies

  • Hi Zahar, Thanks a lot for your response. Actually, I want to know whether ARAS supports Transaction Boundary feature explicitly. Use case : Suppose I want to create a BOM of 10 Parts. And I inserted 7 parts and for 8th part it failed to insert. So can we rollback the complete transaction ? If yes, how is it possible to achieve it ? Thanks & Regards, Diksha Dubey
  • Hi Diksha, If you add all Parts/Part BOM items within one AML statement, the whole statement will either succeed or roll back. Ex:
    <AML>
     <Item type="Part" action="edit" id="...">
       <Relationships>
         <Item type="Part BOM" action="add">
           <related_id>
             <Item type="Part" action="get">
               <item_number>Part-0002</item_number>
             </Item>
           </related_id>
         </Item>
         <Item type="Part BOM" action="add">
           <related_id>
             <Item type="Part" action="get">
               <item_number>Part-0003</item_number>
             </Item>
           </related_id>
         </Item>
         ...
         ...
       </Relationships>
     </Item>
    </AML>

    Eli Donahue Aras Labs Software Engineer