Transaction Boundary in ARAS

Former Member
Former Member
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
Parents
  • 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
Reply
  • 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
Children
No Data