Page last modified 11:48, 21 Jul 2016 by juhako

Example Action rules

    Table of contents
    No headers
    // Create 50 transactions for pain.008.001.02.xsd --
     
    auto i : 0;
    foreach n in (PmtInf)
      foreach a in (Set{1 .. 49})
         auto newTx : copy(n.DrctDbtTxInf->asSequence()->at(0));
     
          auto iban : String.buildIBAN("DE");
          newTx.DbtrAcct.Id.IBAN : iban;
          newTx.PmtId.EndToEndId : 'EndToEndId_' + i.toString();
          i : i + 1;
      
          n.DrctDbtTxInf.add(newTx);
      endeach;
    endeach;
    GrpHdr.CtrlSum : PmtInf.DrctDbtTxInf.InstdAmt->sum();
    GrpHdr.NbOfTxs : PmtInf.DrctDbtTxInf->size().toString();
    Menu