EADS-3569 - Not possible to update comment code eg: design history after latest updation
add "\n-- " when hitting enter in comment block
1.1 --- a/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/PlsqlTransaction.java Tue Apr 02 13:40:25 2013 +0200
1.2 +++ b/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/PlsqlTransaction.java Thu Apr 04 16:00:59 2013 +0200
1.3 @@ -57,6 +57,7 @@
1.4 /**
1.5 *
1.6 * @author SubSLK
1.7 + * @author chrlse
1.8 */
1.9 public class PlsqlTransaction {
1.10
2.1 --- a/PLSQL/Formatter/nbproject/project.xml Tue Apr 02 13:40:25 2013 +0200
2.2 +++ b/PLSQL/Formatter/nbproject/project.xml Thu Apr 04 16:00:59 2013 +0200
2.3 @@ -7,14 +7,6 @@
2.4 <suite-component/>
2.5 <module-dependencies>
2.6 <dependency>
2.7 - <code-name-base>org.netbeans.modules.plsql.lexer</code-name-base>
2.8 - <build-prerequisite/>
2.9 - <compile-dependency/>
2.10 - <run-dependency>
2.11 - <specification-version>1.0.2</specification-version>
2.12 - </run-dependency>
2.13 - </dependency>
2.14 - <dependency>
2.15 <code-name-base>org.netbeans.modules.editor</code-name-base>
2.16 <build-prerequisite/>
2.17 <compile-dependency/>
2.18 @@ -51,6 +43,15 @@
2.19 </run-dependency>
2.20 </dependency>
2.21 <dependency>
2.22 + <code-name-base>org.netbeans.modules.editor.lib2</code-name-base>
2.23 + <build-prerequisite/>
2.24 + <compile-dependency/>
2.25 + <run-dependency>
2.26 + <release-version>1</release-version>
2.27 + <specification-version>1.60.1.31</specification-version>
2.28 + </run-dependency>
2.29 + </dependency>
2.30 + <dependency>
2.31 <code-name-base>org.netbeans.modules.editor.mimelookup</code-name-base>
2.32 <build-prerequisite/>
2.33 <compile-dependency/>
2.34 @@ -60,6 +61,22 @@
2.35 </run-dependency>
2.36 </dependency>
2.37 <dependency>
2.38 + <code-name-base>org.netbeans.modules.plsql.filetype</code-name-base>
2.39 + <build-prerequisite/>
2.40 + <compile-dependency/>
2.41 + <run-dependency>
2.42 + <specification-version>8.72.0.9</specification-version>
2.43 + </run-dependency>
2.44 + </dependency>
2.45 + <dependency>
2.46 + <code-name-base>org.netbeans.modules.plsql.lexer</code-name-base>
2.47 + <build-prerequisite/>
2.48 + <compile-dependency/>
2.49 + <run-dependency>
2.50 + <specification-version>1.0.2</specification-version>
2.51 + </run-dependency>
2.52 + </dependency>
2.53 + <dependency>
2.54 <code-name-base>org.openide.loaders</code-name-base>
2.55 <build-prerequisite/>
2.56 <compile-dependency/>
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/PLSQL/Formatter/src/org/netbeans/modules/plsql/format/PlsqlTypedBreakInterceptor.java Thu Apr 04 16:00:59 2013 +0200
3.3 @@ -0,0 +1,69 @@
3.4 +/*
3.5 + * To change this template, choose Tools | Templates
3.6 + * and open the template in the editor.
3.7 + */
3.8 +package org.netbeans.modules.plsql.format;
3.9 +
3.10 +import java.util.logging.Level;
3.11 +import java.util.logging.Logger;
3.12 +import javax.swing.text.BadLocationException;
3.13 +import javax.swing.text.Document;
3.14 +import org.netbeans.api.editor.mimelookup.MimePath;
3.15 +import org.netbeans.api.editor.mimelookup.MimeRegistration;
3.16 +import org.netbeans.editor.BaseDocument;
3.17 +import org.netbeans.modules.plsql.filetype.PlsqlDataLoader;
3.18 +import org.netbeans.modules.plsql.lexer.PlsqlBlockFactory;
3.19 +import org.netbeans.modules.plsql.lexer.PlsqlBlockType;
3.20 +import org.netbeans.spi.editor.typinghooks.TypedBreakInterceptor;
3.21 +import org.openide.util.Lookup;
3.22 +
3.23 +/**
3.24 + *
3.25 + * @author ChrLSE
3.26 + */
3.27 +public class PlsqlTypedBreakInterceptor implements TypedBreakInterceptor {
3.28 +
3.29 + private static final Logger LOG = Logger.getLogger(PlsqlTypedBreakInterceptor.class.getName());
3.30 +
3.31 + @Override
3.32 + public boolean beforeInsert(Context context) throws BadLocationException {
3.33 + LOG.log(Level.FINER, "beforeInsert, context: {0}", context);
3.34 + return false;
3.35 + }
3.36 +
3.37 + @Override
3.38 + public void insert(MutableContext context) throws BadLocationException {
3.39 + LOG.log(Level.FINER, "insert, context: {0}", context);
3.40 + PlsqlBlockFactory blockFactory = getBlockFactory((BaseDocument) context.getDocument());
3.41 + if (blockFactory.isBlockAtOffsetOfType(context.getCaretOffset(), PlsqlBlockType.COMMENT)) {
3.42 + context.setText("\n-- ", 0, 5);
3.43 + }
3.44 + }
3.45 +
3.46 + @Override
3.47 + public void afterInsert(Context context) throws BadLocationException {
3.48 + LOG.log(Level.FINER, "afterInsert, context: {0}", context);
3.49 + }
3.50 +
3.51 + @Override
3.52 + public void cancelled(Context context) {
3.53 + LOG.log(Level.FINER, "cancelled, context: {0}", context);
3.54 + }
3.55 +
3.56 + private PlsqlBlockFactory getBlockFactory(BaseDocument doc) {
3.57 + final Object obj = doc.getProperty(Document.StreamDescriptionProperty);
3.58 + if (obj instanceof Lookup.Provider) {
3.59 + return ((Lookup.Provider) obj).getLookup().lookup(PlsqlBlockFactory.class);
3.60 + }
3.61 + return null;
3.62 + }
3.63 +
3.64 + @MimeRegistration(mimeType = PlsqlDataLoader.REQUIRED_MIME, service = TypedBreakInterceptor.Factory.class)
3.65 + public static class PlsqlFactory implements TypedBreakInterceptor.Factory {
3.66 +
3.67 + @Override
3.68 + public TypedBreakInterceptor createTypedBreakInterceptor(MimePath mimePath) {
3.69 + return new PlsqlTypedBreakInterceptor();
3.70 + }
3.71 + }
3.72 +}
4.1 --- a/PLSQL/Lexer/src/org/netbeans/modules/plsql/lexer/PlsqlBlockFactory.java Tue Apr 02 13:40:25 2013 +0200
4.2 +++ b/PLSQL/Lexer/src/org/netbeans/modules/plsql/lexer/PlsqlBlockFactory.java Thu Apr 04 16:00:59 2013 +0200
4.3 @@ -1220,6 +1220,23 @@
4.4 return currentName;
4.5 }
4.6
4.7 + public boolean isBlockAtOffsetOfType(int offset, PlsqlBlockType blockType) {
4.8 + return isBlockAtOffsetOfType(blockHierarchy, offset, blockType);
4.9 + }
4.10 +
4.11 + private boolean isBlockAtOffsetOfType(List<PlsqlBlock> blocks, int offset, PlsqlBlockType blockType) {
4.12 + for (PlsqlBlock plsqlBlock : blocks) {
4.13 + if (plsqlBlock.getStartOffset() <= offset && plsqlBlock.getEndOffset() >= offset && blockType == plsqlBlock.getType()) {
4.14 + return true;
4.15 + }
4.16 + final List<PlsqlBlock> childBlocks = plsqlBlock.getChildBlocks();
4.17 + if (isBlockAtOffsetOfType(childBlocks, offset, blockType)) {
4.18 + return true;
4.19 + }
4.20 + }
4.21 + return false;
4.22 + }
4.23 +
4.24 private static class EventProperties {
4.25
4.26 public int offset = -1;
4.27 @@ -2246,7 +2263,7 @@
4.28 }
4.29
4.30 private void checkAndAddNew(PlsqlBlock block, PlsqlBlock parent, List<PlsqlBlock> immediateBlockHier) {
4.31 - LOG.log(Level.FINE, "checkAndAddNew, block.getName()={0}, block.getType()={1}", new Object[]{block.getName(), block.getType()});
4.32 + LOG.log(Level.FINE, "checkAndAddNew, block.getName()={0}, block.getType()={1}", new Object[]{block.getName(), block.getType()});
4.33 if (checkExisting(block, immediateBlockHier) == false && !isEqual(parent, block)) {
4.34 immediateBlockHier.add(block);
4.35 LOG.log(Level.FINE, "newBlocks.add({0})", new Object[]{block.getName(), block.getType()});
4.36 @@ -2772,8 +2789,7 @@
4.37 if (children == null || children.isEmpty()) {//If inner check seems to have failed need to continue this one
4.38
4.39 ts.move(beforeOff);
4.40 - moveNext =
4.41 - ts.moveNext();
4.42 + moveNext = ts.moveNext();
4.43 } else {
4.44 for (int i = 0; i
4.45 < children.size(); i++) {
4.46 @@ -2852,7 +2868,7 @@
4.47 int start = tmp.offset(tokenHierarchy);
4.48 PlsqlBlock child = new PlsqlBlock(start,
4.49 start + tmp.length(), "BLOCK COMMENT", "", PlsqlBlockType.COMMENT);
4.50 - if ((child != null) && (checkExisting(child, lstChild) == false)) {
4.51 + if (checkExisting(child, lstChild) == false) {
4.52 lstChild.add(child);
4.53 }
4.54 } else if (tokenID == PlsqlTokenId.KEYWORD && (image.equalsIgnoreCase("BEGIN"))) {
4.55 @@ -2961,7 +2977,7 @@
4.56 String image = tmp.text().toString();
4.57 PlsqlTokenId tokenID = tmp.id();
4.58
4.59 - if ((tmp != null) && (!image.equals(";")) && (tmp.offset(tokenHierarchy) > endParse)) {
4.60 + if ((!image.equals(";")) && (tmp.offset(tokenHierarchy) > endParse)) {
4.61 break;
4.62 }
4.63
4.64 @@ -2975,8 +2991,7 @@
4.65 || tmpPre.text().toString().equalsIgnoreCase(alias)) {
4.66 //check whether previous Non white space token to the identifier is END
4.67 int offset = ts.offset();
4.68 - boolean preMove = false;
4.69 - preMove = getPreviousNonWhitespace(ts, true);
4.70 + boolean preMove = getPreviousNonWhitespace(ts, true);
4.71 preMove = getPreviousNonWhitespace(ts, true);
4.72 Token<PlsqlTokenId> previousNWS = ts.token();
4.73
4.74 @@ -3101,7 +3116,7 @@
4.75 int start = tmp.offset(tokenHierarchy);
4.76 PlsqlBlock child = new PlsqlBlock(start,
4.77 start + tmp.length(), "BLOCK COMMENT", "", PlsqlBlockType.COMMENT);
4.78 - if ((child != null) && (checkExisting(child, lstChild) == false)) {
4.79 + if (checkExisting(child, lstChild) == false) {
4.80 lstChild.add(child);
4.81 }
4.82 } else {
5.1 --- a/PLSQL/Lexer/test/unit/src/org/netbeans/modules/plsql/lexer/PlsqlBlockFactoryTest.java Tue Apr 02 13:40:25 2013 +0200
5.2 +++ b/PLSQL/Lexer/test/unit/src/org/netbeans/modules/plsql/lexer/PlsqlBlockFactoryTest.java Thu Apr 04 16:00:59 2013 +0200
5.3 @@ -72,3719 +72,3737 @@
5.4 */
5.5 public class PlsqlBlockFactoryTest {
5.6
5.7 - private static FileSystem fs = null;
5.8 + private static FileSystem fs = null;
5.9
5.10 - public PlsqlBlockFactoryTest() {
5.11 - }
5.12 + public PlsqlBlockFactoryTest() {
5.13 + }
5.14
5.15 - @BeforeClass
5.16 - public static void setUpClass() throws Exception {
5.17 - fs = FileUtil.createMemoryFileSystem();
5.18 - }
5.19 + @BeforeClass
5.20 + public static void setUpClass() throws Exception {
5.21 + fs = FileUtil.createMemoryFileSystem();
5.22 + }
5.23
5.24 - @AfterClass
5.25 - public static void tearDownClass() throws Exception {
5.26 - }
5.27 + @AfterClass
5.28 + public static void tearDownClass() throws Exception {
5.29 + }
5.30
5.31 - @Before
5.32 - public void setUp() {
5.33 - assertNotNull(fs);
5.34 - }
5.35 + @Before
5.36 + public void setUp() {
5.37 + assertNotNull(fs);
5.38 + }
5.39
5.40 - @After
5.41 - public void tearDown() {
5.42 - }
5.43 + @After
5.44 + public void tearDown() {
5.45 + }
5.46
5.47 - @Test
5.48 - public void testBlocksApy() throws IOException, BadLocationException {
5.49 - System.out.println("Testing blocks of an APY file");
5.50 - FileObject fileObject = fs.getRoot().createData("test.apy");
5.51 - assertNotNull(fileObject);
5.52 - try {
5.53 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "test.apy");
5.54 - assertNotNull(blockFac);
5.55 + @Test
5.56 + public void testBlocksApy() throws IOException, BadLocationException {
5.57 + System.out.println("Testing blocks of an APY file");
5.58 + FileObject fileObject = fs.getRoot().createData("test.apy");
5.59 + assertNotNull(fileObject);
5.60 + try {
5.61 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "test.apy");
5.62 + assertNotNull(blockFac);
5.63
5.64 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.65 - //printHierarchy(lstBlockFac, "");
5.66 - //generateAssert(lstBlockFac, "lstBlockFac", "false");
5.67 - assertTrue(lstBlockFac.size() == 7);
5.68 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.69 + //printHierarchy(lstBlockFac, "");
5.70 + //generateAssert(lstBlockFac, "lstBlockFac", "false");
5.71 + assertTrue(lstBlockFac.size() == 7);
5.72
5.73 - //Test 1st level blocks
5.74 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: Formula", false, 0, 348, 0);
5.75 - assertBlock(lstBlockFac, 1, PlsqlBlockType.VIEW, "FORMULA", false, 809, 1319, 0);
5.76 - assertBlock(lstBlockFac, 2, PlsqlBlockType.TABLE_COMMENT, "FORMULA", false, 1322, 1390, 0);
5.77 - assertBlock(lstBlockFac, 3, PlsqlBlockType.COLUMN_COMMENT, "FORMULA", false, 1393, 1821, 0);
5.78 - assertBlock(lstBlockFac, 4, PlsqlBlockType.PACKAGE_BODY, "FORMULA_API", false, 1861, 3550, 8);
5.79 - assertBlock(lstBlockFac.get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 1976, 2209, 0);
5.80 - assertBlock(lstBlockFac.get(4).getChildBlocks(), 1, PlsqlBlockType.PROCEDURE_DEF, "Check_Formula_State___", true, 2211, 2305, 0);
5.81 - assertBlock(lstBlockFac.get(4).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_DEF, "Get_Db_Values___", true, 2307, 2363, 0);
5.82 - assertBlock(lstBlockFac.get(4).getChildBlocks(), 3, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 2365, 2592, 1);
5.83 - assertBlock(lstBlockFac.get(4).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(formula_id_))", true, 2485, 2581, 0);
5.84 - assertBlock(lstBlockFac.get(4).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 2594, 2643, 0);
5.85 - assertBlock(lstBlockFac.get(4).getChildBlocks(), 5, PlsqlBlockType.FUNCTION_IMPL, "Get", true, 2645, 2962, 1);
5.86 - assertBlock(lstBlockFac.get(4).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 2734, 2863, 0);
5.87 - assertBlock(lstBlockFac.get(4).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 2964, 3428, 0);
5.88 - assertBlock(lstBlockFac.get(4).getChildBlocks(), 7, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 3430, 3539, 0);
5.89 - assertBlock(lstBlockFac, 5, PlsqlBlockType.BEGIN_END, "", false, 3566, 3611, 0);
5.90 - assertBlock(lstBlockFac, 6, PlsqlBlockType.COMMENT, "COMMENT...", false, 3772, 3849, 0);
5.91 - } finally {
5.92 - if (fileObject != null) {
5.93 - fileObject.delete();
5.94 - }
5.95 - }
5.96 - }
5.97 + //Test 1st level blocks
5.98 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: Formula", false, 0, 348, 0);
5.99 + assertBlock(lstBlockFac, 1, PlsqlBlockType.VIEW, "FORMULA", false, 809, 1319, 0);
5.100 + assertBlock(lstBlockFac, 2, PlsqlBlockType.TABLE_COMMENT, "FORMULA", false, 1322, 1390, 0);
5.101 + assertBlock(lstBlockFac, 3, PlsqlBlockType.COLUMN_COMMENT, "FORMULA", false, 1393, 1821, 0);
5.102 + assertBlock(lstBlockFac, 4, PlsqlBlockType.PACKAGE_BODY, "FORMULA_API", false, 1861, 3550, 8);
5.103 + assertBlock(lstBlockFac.get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 1976, 2209, 0);
5.104 + assertBlock(lstBlockFac.get(4).getChildBlocks(), 1, PlsqlBlockType.PROCEDURE_DEF, "Check_Formula_State___", true, 2211, 2305, 0);
5.105 + assertBlock(lstBlockFac.get(4).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_DEF, "Get_Db_Values___", true, 2307, 2363, 0);
5.106 + assertBlock(lstBlockFac.get(4).getChildBlocks(), 3, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 2365, 2592, 1);
5.107 + assertBlock(lstBlockFac.get(4).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(formula_id_))", true, 2485, 2581, 0);
5.108 + assertBlock(lstBlockFac.get(4).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 2594, 2643, 0);
5.109 + assertBlock(lstBlockFac.get(4).getChildBlocks(), 5, PlsqlBlockType.FUNCTION_IMPL, "Get", true, 2645, 2962, 1);
5.110 + assertBlock(lstBlockFac.get(4).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 2734, 2863, 0);
5.111 + assertBlock(lstBlockFac.get(4).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 2964, 3428, 0);
5.112 + assertBlock(lstBlockFac.get(4).getChildBlocks(), 7, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 3430, 3539, 0);
5.113 + assertBlock(lstBlockFac, 5, PlsqlBlockType.BEGIN_END, "", false, 3566, 3611, 0);
5.114 + assertBlock(lstBlockFac, 6, PlsqlBlockType.COMMENT, "COMMENT...", false, 3772, 3849, 0);
5.115 + } finally {
5.116 + if (fileObject != null) {
5.117 + fileObject.delete();
5.118 + }
5.119 + }
5.120 + }
5.121
5.122 - @Test
5.123 - public void testBlocksApi() throws IOException, BadLocationException {
5.124 - System.out.println("Testing blocks of an API file");
5.125 - FileObject fileObject = fs.getRoot().createData("test.api");
5.126 - assertNotNull(fileObject);
5.127 - try {
5.128 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "test.api");
5.129 - assertNotNull(blockFac);
5.130 + @Test
5.131 + public void testBlocksApi() throws IOException, BadLocationException {
5.132 + System.out.println("Testing blocks of an API file");
5.133 + FileObject fileObject = fs.getRoot().createData("test.api");
5.134 + assertNotNull(fileObject);
5.135 + try {
5.136 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "test.api");
5.137 + assertNotNull(blockFac);
5.138
5.139 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.140 - //printHierarchy(lstBlockFac, "");
5.141 - assertTrue(lstBlockFac.size() == 3);
5.142 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.143 + //printHierarchy(lstBlockFac, "");
5.144 + assertTrue(lstBlockFac.size() == 3);
5.145
5.146 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: Formula", false, 0, 332, 0);
5.147 - assertBlock(lstBlockFac, 1, PlsqlBlockType.BEGIN_END, "", false, 461, 560, 0);
5.148 - assertBlock(lstBlockFac, 2, PlsqlBlockType.PACKAGE, "FORMULA_API", false, 600, 1494, 4);
5.149 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- PRIVATE FINITE STATE MACHINE ", true, 809, 1042, 0);
5.150 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_DEF, "Finite_State_Decode__", true, 1044, 1120, 0);
5.151 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 2, PlsqlBlockType.PROCEDURE_DEF, "Enumerate_States_Db__", true, 1186, 1248, 0);
5.152 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PUBLIC METHODS ", true, 1250, 1483, 0);
5.153 - } finally {
5.154 - if (fileObject != null) {
5.155 - fileObject.delete();
5.156 - }
5.157 - }
5.158 - }
5.159 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: Formula", false, 0, 332, 0);
5.160 + assertBlock(lstBlockFac, 1, PlsqlBlockType.BEGIN_END, "", false, 461, 560, 0);
5.161 + assertBlock(lstBlockFac, 2, PlsqlBlockType.PACKAGE, "FORMULA_API", false, 600, 1494, 4);
5.162 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- PRIVATE FINITE STATE MACHINE ", true, 809, 1042, 0);
5.163 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_DEF, "Finite_State_Decode__", true, 1044, 1120, 0);
5.164 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 2, PlsqlBlockType.PROCEDURE_DEF, "Enumerate_States_Db__", true, 1186, 1248, 0);
5.165 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PUBLIC METHODS ", true, 1250, 1483, 0);
5.166 + } finally {
5.167 + if (fileObject != null) {
5.168 + fileObject.delete();
5.169 + }
5.170 + }
5.171 + }
5.172
5.173 - @Test
5.174 - public void testBlocksUpg() throws IOException, BadLocationException {
5.175 - System.out.println("Testing blocks of an UPG file");
5.176 - FileObject fileObject = fs.getRoot().createData("test.upg");
5.177 - assertNotNull(fileObject);
5.178 - try {
5.179 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "test.upg");
5.180 - assertNotNull(blockFac);
5.181 + @Test
5.182 + public void testBlocksUpg() throws IOException, BadLocationException {
5.183 + System.out.println("Testing blocks of an UPG file");
5.184 + FileObject fileObject = fs.getRoot().createData("test.upg");
5.185 + assertNotNull(fileObject);
5.186 + try {
5.187 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "test.upg");
5.188 + assertNotNull(blockFac);
5.189
5.190 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.191 - //printHierarchy(lstBlockFac, "");
5.192 - assertTrue(lstBlockFac.size() == 4);
5.193 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.194 + //printHierarchy(lstBlockFac, "");
5.195 + assertTrue(lstBlockFac.size() == 4);
5.196
5.197 - assertBlock(lstBlockFac, 0, PlsqlBlockType.JAVA_SOURCE, "", false, 0, 5193, 0);
5.198 - assertBlock(lstBlockFac, 1, PlsqlBlockType.DECLARE_END, "", false, 5196, 5804, 2);
5.199 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exits", true, 5207, 5389, 0);
5.200 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "rec_ IN ( * FROM company_emp_tab)", true, 5416, 5799, 1);
5.201 - assertBlock(lstBlockFac.get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (check_exits%NOTFOUND)", true, 5553, 5761, 1);
5.202 - assertBlock(lstBlockFac.get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO company_person_tab(company_id,emp_no,master_employment,operator,rowversion)", true, 5590, 5747, 0);
5.203 - assertBlock(lstBlockFac, 2, PlsqlBlockType.STATEMENT, "UPDATE search_domain_attribute_tab", false, 5808, 6299, 7);
5.204 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE datatype\n WHEN 'VARCHAR2'", true, 5867, 5935, 0);
5.205 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 1, PlsqlBlockType.CASE, "WHEN 'CHAR'", true, 5963, 5986, 0);
5.206 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 2, PlsqlBlockType.CASE, "WHEN 'NUMBER'", true, 6014, 6041, 0);
5.207 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 3, PlsqlBlockType.CASE, "WHEN 'DATE'", true, 6069, 6092, 0);
5.208 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 4, PlsqlBlockType.CASE, "WHEN 'CLOB'", true, 6120, 6148, 0);
5.209 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 5, PlsqlBlockType.CASE, "WHEN 'BLOB'", true, 6176, 6201, 0);
5.210 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 6, PlsqlBlockType.CASE, "ELSE", true, 6229, 6268, 0);
5.211 - assertBlock(lstBlockFac, 3, PlsqlBlockType.TRIGGER, "vmogss_base_tablerestrict_tr", false, 6303, 6704, 1);
5.212 - assertBlock(lstBlockFac.get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "insert into vmo_base_gss_scope(gss_id, created, source_tbl, source_info) values('ALL_GSS_ID', sysdate, 'VMO_BASE_TABLERESTRICTION', :newrec.idrole)", true, 6511, 6659, 0);
5.213 - } finally {
5.214 - if (fileObject != null) {
5.215 - fileObject.delete();
5.216 - }
5.217 - }
5.218 - }
5.219 + assertBlock(lstBlockFac, 0, PlsqlBlockType.JAVA_SOURCE, "", false, 0, 5193, 0);
5.220 + assertBlock(lstBlockFac, 1, PlsqlBlockType.DECLARE_END, "", false, 5196, 5804, 2);
5.221 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exits", true, 5207, 5389, 0);
5.222 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "rec_ IN ( * FROM company_emp_tab)", true, 5416, 5799, 1);
5.223 + assertBlock(lstBlockFac.get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (check_exits%NOTFOUND)", true, 5553, 5761, 1);
5.224 + assertBlock(lstBlockFac.get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO company_person_tab(company_id,emp_no,master_employment,operator,rowversion)", true, 5590, 5747, 0);
5.225 + assertBlock(lstBlockFac, 2, PlsqlBlockType.STATEMENT, "UPDATE search_domain_attribute_tab", false, 5808, 6299, 7);
5.226 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE datatype\n WHEN 'VARCHAR2'", true, 5867, 5935, 0);
5.227 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 1, PlsqlBlockType.CASE, "WHEN 'CHAR'", true, 5963, 5986, 0);
5.228 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 2, PlsqlBlockType.CASE, "WHEN 'NUMBER'", true, 6014, 6041, 0);
5.229 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 3, PlsqlBlockType.CASE, "WHEN 'DATE'", true, 6069, 6092, 0);
5.230 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 4, PlsqlBlockType.CASE, "WHEN 'CLOB'", true, 6120, 6148, 0);
5.231 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 5, PlsqlBlockType.CASE, "WHEN 'BLOB'", true, 6176, 6201, 0);
5.232 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 6, PlsqlBlockType.CASE, "ELSE", true, 6229, 6268, 0);
5.233 + assertBlock(lstBlockFac, 3, PlsqlBlockType.TRIGGER, "vmogss_base_tablerestrict_tr", false, 6303, 6704, 1);
5.234 + assertBlock(lstBlockFac.get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "insert into vmo_base_gss_scope(gss_id, created, source_tbl, source_info) values('ALL_GSS_ID', sysdate, 'VMO_BASE_TABLERESTRICTION', :newrec.idrole)", true, 6511, 6659, 0);
5.235 + } finally {
5.236 + if (fileObject != null) {
5.237 + fileObject.delete();
5.238 + }
5.239 + }
5.240 + }
5.241
5.242 - @Test
5.243 - public void testAdvanced1() throws IOException, BadLocationException {
5.244 - System.out.println("Advanced test case 1");
5.245 - FileObject fileObject = fs.getRoot().createData("test1.apy");
5.246 - assertNotNull(fileObject);
5.247 - try {
5.248 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "test1.apy");
5.249 - assertNotNull(blockFac);
5.250 + @Test
5.251 + public void testAdvanced1() throws IOException, BadLocationException {
5.252 + System.out.println("Advanced test case 1");
5.253 + FileObject fileObject = fs.getRoot().createData("test1.apy");
5.254 + assertNotNull(fileObject);
5.255 + try {
5.256 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "test1.apy");
5.257 + assertNotNull(blockFac);
5.258
5.259 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.260 - //printHierarchy(lstBlockFac, "");
5.261 - //generateAssert(lstBlockFac, "lstBlockFac", "false");
5.262 - assertTrue(lstBlockFac.size() == 17);
5.263 - assertBlock(lstBlockFac, 0, PlsqlBlockType.VIEW, "&VIEW", false, 27, 1231, 0);
5.264 - assertBlock(lstBlockFac, 1, PlsqlBlockType.DECLARE_END, "", false, 1234, 3604, 3);
5.265 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "Insert_Module_Data", true, 1245, 1305, 0);
5.266 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 1, PlsqlBlockType.PROCEDURE_IMPL, "Insert_data", true, 1307, 3286, 2);
5.267 - assertBlock(lstBlockFac.get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 1874, 2500, 0);
5.268 - assertBlock(lstBlockFac.get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "UPDATE language_sys_tab", true, 2566, 3207, 0);
5.269 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF NOT Installation_SYS.Is_Db_Patch_Registered('FNDBAS', '70745')", true, 3298, 3482, 1);
5.270 - assertBlock(lstBlockFac.get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "rec_ IN Insert_Module_Data", true, 3375, 3471, 0);
5.271 - assertBlock(lstBlockFac, 2, PlsqlBlockType.BEGIN_END, "", false, 3783, 5491, 1);
5.272 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Database_SYS.Is_Db_Patch_Registered('ORDER', 90590))", true, 3793, 5486, 1);
5.273 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.DECLARE_END, "", true, 3866, 5356, 1);
5.274 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE customer_order_delivery_tab cod", true, 4015, 5343, 3);
5.275 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE WHEN (cod.delnote_no IS NOT NULL)", true, 4091, 4381, 0);
5.276 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.CASE, "WHEN (cod.delnote_no IS NULL AND cod.shipment_id IS NOT NULL)", true, 4424, 4721, 0);
5.277 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.CASE, "ELSE", true, 4764, 5298, 0);
5.278 - assertBlock(lstBlockFac, 3, PlsqlBlockType.STATEMENT, "UPDATE INVOICE_TAB", false, 5646, 6296, 4);
5.279 - assertBlock(lstBlockFac.get(3).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE \n WHEN CREATOR = 'CUSTOMER_ORDER_INV_HEAD_API'", true, 5690, 5817, 0);
5.280 - assertBlock(lstBlockFac.get(3).getChildBlocks(), 1, PlsqlBlockType.CASE, "ELSE", true, 5846, 5913, 0);
5.281 - assertBlock(lstBlockFac.get(3).getChildBlocks(), 2, PlsqlBlockType.CASE, "CASE \n WHEN CREATOR = 'CUSTOMER_ORDER_INV_HEAD_API' AND INVOICE_TYPE NOT IN('CUSTORDDEB','CUSTCOLDEB','SELFBILLDEB','SELFBILLCRE','CUSTORDCRE','CUSTCOLCRE','CUSTCOLCOR','CUSTORDCOR')", true, 5940, 6189, 0);
5.282 - assertBlock(lstBlockFac.get(3).getChildBlocks(), 3, PlsqlBlockType.CASE, "ELSE", true, 6218, 6296, 0);
5.283 - assertBlock(lstBlockFac, 4, PlsqlBlockType.VIEW, "_DEF", false, 6342, 6687, 0);
5.284 - assertBlock(lstBlockFac, 5, PlsqlBlockType.TABLE_COMMENT, "_DEF", false, 6690, 6770, 0);
5.285 - assertBlock(lstBlockFac, 6, PlsqlBlockType.DECLARE_END, "", false, 6773, 6852, 0);
5.286 - assertBlock(lstBlockFac, 7, PlsqlBlockType.DECLARE_END, "", false, 6854, 7438, 2);
5.287 - assertBlock(lstBlockFac.get(7).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exits", true, 6865, 7034, 0);
5.288 - assertBlock(lstBlockFac.get(7).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "rec_ IN ( * FROM company_emp_tab)", true, 7058, 7433, 1);
5.289 - assertBlock(lstBlockFac.get(7).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (check_exits%NOTFOUND)", true, 7195, 7401, 1);
5.290 - assertBlock(lstBlockFac.get(7).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO company_person_tab(company_id,emp_no,master_employment,operator,rowversion)", true, 7232, 7389, 0);
5.291 - assertBlock(lstBlockFac, 8, PlsqlBlockType.STATEMENT, "DROP PROCEDURE Temp_Person_Document_Default", false, 7479, 7522, 0);
5.292 - assertBlock(lstBlockFac, 9, PlsqlBlockType.BEGIN_END, "", false, 7525, 7729, 0);
5.293 - assertBlock(lstBlockFac, 10, PlsqlBlockType.STATEMENT, "INDEX Report_Grouping_Detail_Ux ON Report_Grouping_Detail_Tab", false, 7733, 7917, 0);
5.294 - assertBlock(lstBlockFac, 11, PlsqlBlockType.VIEW, "&MODULE_VIEW1", false, 7920, 8259, 0);
5.295 - assertBlock(lstBlockFac, 12, PlsqlBlockType.VIEW, "&VIEW3", false, 8262, 9892, 0);
5.296 - assertBlock(lstBlockFac, 13, PlsqlBlockType.TRIGGER, "VMOL_BASE_FIELDDEPVALUES_TIB", false, 9895, 10114, 1);
5.297 - assertBlock(lstBlockFac.get(13).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT VMOL_ID_SEQ.NEXTVAL INTO :NEWREC.ID_ FROM DUAL", true, 10052, 10105, 0);
5.298 - assertBlock(lstBlockFac, 14, PlsqlBlockType.BEGIN_END, "", false, 10118, 10507, 3);
5.299 - assertBlock(lstBlockFac.get(14).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- OK if ORA ", true, 10315, 10377, 0);
5.300 - assertBlock(lstBlockFac.get(14).getChildBlocks(), 1, PlsqlBlockType.IF, "IF INSTR(SQLERRM,'-00955') != 0", true, 10386, 10428, 0);
5.301 - assertBlock(lstBlockFac.get(14).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 10437, 10502, 0);
5.302 - assertBlock(lstBlockFac, 15, PlsqlBlockType.TRIGGER, "VMO_BASE_GSS_SYNCED_RECORDS_TR", false, 10511, 11707, 2);
5.303 - assertBlock(lstBlockFac.get(15).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- This trigger is only used to make sure that an old version of GSS still can be tested", true, 10677, 10937, 0);
5.304 - assertBlock(lstBlockFac.get(15).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "GET_GSS_USER", true, 10950, 11540, 1);
5.305 - assertBlock(lstBlockFac.get(15).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT U.GSS_USER INTO GSS_USER_", true, 11150, 11392, 0);
5.306 - assertBlock(lstBlockFac, 16, PlsqlBlockType.STATEMENT, "UPDATE search_domain_attribute_tab", false, 11712, 12203, 7);
5.307 - assertBlock(lstBlockFac.get(16).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE datatype\n WHEN 'VARCHAR2'", true, 11771, 11839, 0);
5.308 - assertBlock(lstBlockFac.get(16).getChildBlocks(), 1, PlsqlBlockType.CASE, "WHEN 'CHAR'", true, 11867, 11890, 0);
5.309 - assertBlock(lstBlockFac.get(16).getChildBlocks(), 2, PlsqlBlockType.CASE, "WHEN 'NUMBER'", true, 11918, 11945, 0);
5.310 - assertBlock(lstBlockFac.get(16).getChildBlocks(), 3, PlsqlBlockType.CASE, "WHEN 'DATE'", true, 11973, 11996, 0);
5.311 - assertBlock(lstBlockFac.get(16).getChildBlocks(), 4, PlsqlBlockType.CASE, "WHEN 'CLOB'", true, 12024, 12052, 0);
5.312 - assertBlock(lstBlockFac.get(16).getChildBlocks(), 5, PlsqlBlockType.CASE, "WHEN 'BLOB'", true, 12080, 12105, 0);
5.313 - assertBlock(lstBlockFac.get(16).getChildBlocks(), 6, PlsqlBlockType.CASE, "ELSE", true, 12133, 12172, 0);
5.314 - } finally {
5.315 - if (fileObject != null) {
5.316 - fileObject.delete();
5.317 - }
5.318 - }
5.319 - }
5.320 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.321 + //printHierarchy(lstBlockFac, "");
5.322 + //generateAssert(lstBlockFac, "lstBlockFac", "false");
5.323 + assertTrue(lstBlockFac.size() == 17);
5.324 + assertBlock(lstBlockFac, 0, PlsqlBlockType.VIEW, "&VIEW", false, 27, 1231, 0);
5.325 + assertBlock(lstBlockFac, 1, PlsqlBlockType.DECLARE_END, "", false, 1234, 3604, 3);
5.326 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "Insert_Module_Data", true, 1245, 1305, 0);
5.327 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 1, PlsqlBlockType.PROCEDURE_IMPL, "Insert_data", true, 1307, 3286, 2);
5.328 + assertBlock(lstBlockFac.get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 1874, 2500, 0);
5.329 + assertBlock(lstBlockFac.get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "UPDATE language_sys_tab", true, 2566, 3207, 0);
5.330 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF NOT Installation_SYS.Is_Db_Patch_Registered('FNDBAS', '70745')", true, 3298, 3482, 1);
5.331 + assertBlock(lstBlockFac.get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "rec_ IN Insert_Module_Data", true, 3375, 3471, 0);
5.332 + assertBlock(lstBlockFac, 2, PlsqlBlockType.BEGIN_END, "", false, 3783, 5491, 1);
5.333 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Database_SYS.Is_Db_Patch_Registered('ORDER', 90590))", true, 3793, 5486, 1);
5.334 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.DECLARE_END, "", true, 3866, 5356, 1);
5.335 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE customer_order_delivery_tab cod", true, 4015, 5343, 3);
5.336 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE WHEN (cod.delnote_no IS NOT NULL)", true, 4091, 4381, 0);
5.337 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.CASE, "WHEN (cod.delnote_no IS NULL AND cod.shipment_id IS NOT NULL)", true, 4424, 4721, 0);
5.338 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.CASE, "ELSE", true, 4764, 5298, 0);
5.339 + assertBlock(lstBlockFac, 3, PlsqlBlockType.STATEMENT, "UPDATE INVOICE_TAB", false, 5646, 6296, 4);
5.340 + assertBlock(lstBlockFac.get(3).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE \n WHEN CREATOR = 'CUSTOMER_ORDER_INV_HEAD_API'", true, 5690, 5817, 0);
5.341 + assertBlock(lstBlockFac.get(3).getChildBlocks(), 1, PlsqlBlockType.CASE, "ELSE", true, 5846, 5913, 0);
5.342 + assertBlock(lstBlockFac.get(3).getChildBlocks(), 2, PlsqlBlockType.CASE, "CASE \n WHEN CREATOR = 'CUSTOMER_ORDER_INV_HEAD_API' AND INVOICE_TYPE NOT IN('CUSTORDDEB','CUSTCOLDEB','SELFBILLDEB','SELFBILLCRE','CUSTORDCRE','CUSTCOLCRE','CUSTCOLCOR','CUSTORDCOR')", true, 5940, 6189, 0);
5.343 + assertBlock(lstBlockFac.get(3).getChildBlocks(), 3, PlsqlBlockType.CASE, "ELSE", true, 6218, 6296, 0);
5.344 + assertBlock(lstBlockFac, 4, PlsqlBlockType.VIEW, "_DEF", false, 6342, 6687, 0);
5.345 + assertBlock(lstBlockFac, 5, PlsqlBlockType.TABLE_COMMENT, "_DEF", false, 6690, 6770, 0);
5.346 + assertBlock(lstBlockFac, 6, PlsqlBlockType.DECLARE_END, "", false, 6773, 6852, 0);
5.347 + assertBlock(lstBlockFac, 7, PlsqlBlockType.DECLARE_END, "", false, 6854, 7438, 2);
5.348 + assertBlock(lstBlockFac.get(7).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exits", true, 6865, 7034, 0);
5.349 + assertBlock(lstBlockFac.get(7).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "rec_ IN ( * FROM company_emp_tab)", true, 7058, 7433, 1);
5.350 + assertBlock(lstBlockFac.get(7).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (check_exits%NOTFOUND)", true, 7195, 7401, 1);
5.351 + assertBlock(lstBlockFac.get(7).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO company_person_tab(company_id,emp_no,master_employment,operator,rowversion)", true, 7232, 7389, 0);
5.352 + assertBlock(lstBlockFac, 8, PlsqlBlockType.STATEMENT, "DROP PROCEDURE Temp_Person_Document_Default", false, 7479, 7522, 0);
5.353 + assertBlock(lstBlockFac, 9, PlsqlBlockType.BEGIN_END, "", false, 7525, 7729, 0);
5.354 + assertBlock(lstBlockFac, 10, PlsqlBlockType.STATEMENT, "INDEX Report_Grouping_Detail_Ux ON Report_Grouping_Detail_Tab", false, 7733, 7917, 0);
5.355 + assertBlock(lstBlockFac, 11, PlsqlBlockType.VIEW, "&MODULE_VIEW1", false, 7920, 8259, 0);
5.356 + assertBlock(lstBlockFac, 12, PlsqlBlockType.VIEW, "&VIEW3", false, 8262, 9892, 0);
5.357 + assertBlock(lstBlockFac, 13, PlsqlBlockType.TRIGGER, "VMOL_BASE_FIELDDEPVALUES_TIB", false, 9895, 10114, 1);
5.358 + assertBlock(lstBlockFac.get(13).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT VMOL_ID_SEQ.NEXTVAL INTO :NEWREC.ID_ FROM DUAL", true, 10052, 10105, 0);
5.359 + assertBlock(lstBlockFac, 14, PlsqlBlockType.BEGIN_END, "", false, 10118, 10507, 3);
5.360 + assertBlock(lstBlockFac.get(14).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- OK if ORA ", true, 10315, 10377, 0);
5.361 + assertBlock(lstBlockFac.get(14).getChildBlocks(), 1, PlsqlBlockType.IF, "IF INSTR(SQLERRM,'-00955') != 0", true, 10386, 10428, 0);
5.362 + assertBlock(lstBlockFac.get(14).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 10437, 10502, 0);
5.363 + assertBlock(lstBlockFac, 15, PlsqlBlockType.TRIGGER, "VMO_BASE_GSS_SYNCED_RECORDS_TR", false, 10511, 11707, 2);
5.364 + assertBlock(lstBlockFac.get(15).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- This trigger is only used to make sure that an old version of GSS still can be tested", true, 10677, 10937, 0);
5.365 + assertBlock(lstBlockFac.get(15).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "GET_GSS_USER", true, 10950, 11540, 1);
5.366 + assertBlock(lstBlockFac.get(15).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT U.GSS_USER INTO GSS_USER_", true, 11150, 11392, 0);
5.367 + assertBlock(lstBlockFac, 16, PlsqlBlockType.STATEMENT, "UPDATE search_domain_attribute_tab", false, 11712, 12203, 7);
5.368 + assertBlock(lstBlockFac.get(16).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE datatype\n WHEN 'VARCHAR2'", true, 11771, 11839, 0);
5.369 + assertBlock(lstBlockFac.get(16).getChildBlocks(), 1, PlsqlBlockType.CASE, "WHEN 'CHAR'", true, 11867, 11890, 0);
5.370 + assertBlock(lstBlockFac.get(16).getChildBlocks(), 2, PlsqlBlockType.CASE, "WHEN 'NUMBER'", true, 11918, 11945, 0);
5.371 + assertBlock(lstBlockFac.get(16).getChildBlocks(), 3, PlsqlBlockType.CASE, "WHEN 'DATE'", true, 11973, 11996, 0);
5.372 + assertBlock(lstBlockFac.get(16).getChildBlocks(), 4, PlsqlBlockType.CASE, "WHEN 'CLOB'", true, 12024, 12052, 0);
5.373 + assertBlock(lstBlockFac.get(16).getChildBlocks(), 5, PlsqlBlockType.CASE, "WHEN 'BLOB'", true, 12080, 12105, 0);
5.374 + assertBlock(lstBlockFac.get(16).getChildBlocks(), 6, PlsqlBlockType.CASE, "ELSE", true, 12133, 12172, 0);
5.375 + } finally {
5.376 + if (fileObject != null) {
5.377 + fileObject.delete();
5.378 + }
5.379 + }
5.380 + }
5.381
5.382 - @Test
5.383 - public void testAdvanced2() throws IOException, BadLocationException {
5.384 - System.out.println("Advanced test case 2");
5.385 - FileObject fileObject = fs.getRoot().createData("test2.apy");
5.386 - assertNotNull(fileObject);
5.387 - try {
5.388 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "test2.apy");
5.389 - assertNotNull(blockFac);
5.390 + @Test
5.391 + public void testAdvanced2() throws IOException, BadLocationException {
5.392 + System.out.println("Advanced test case 2");
5.393 + FileObject fileObject = fs.getRoot().createData("test2.apy");
5.394 + assertNotNull(fileObject);
5.395 + try {
5.396 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "test2.apy");
5.397 + assertNotNull(blockFac);
5.398
5.399 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.400 - //printHierarchy(lstBlockFac, "");
5.401 - //generateAssert(lstBlockFac, "lstBlockFac", "false");
5.402 - assertTrue(lstBlockFac.size() == 1);
5.403 - assertBlock(lstBlockFac, 0, PlsqlBlockType.PROCEDURE_IMPL, "Evaluate_Level___", false, 1, 59599, 6);
5.404 - assertBlock(lstBlockFac.get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 783, 785, 0);
5.405 - assertBlock(lstBlockFac.get(0).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_line_item_no", true, 2780, 3073, 0);
5.406 - assertBlock(lstBlockFac.get(0).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_parent_supply", true, 3077, 3287, 0);
5.407 - assertBlock(lstBlockFac.get(0).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- FOR", true, 3367, 3442, 0);
5.408 - assertBlock(lstBlockFac.get(0).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "parent_supply_ IN get_parent_supply", true, 3446, 59496, 16);
5.409 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Set parent_supply_rec_ as Parent_supply_", true, 3497, 3540, 0);
5.410 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "COMMENT...", true, 3591, 3593, 0);
5.411 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "COMMENT...", true, 3685, 3687, 0);
5.412 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "COMMENT...", true, 3861, 3863, 0);
5.413 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "COMMENT...", true, 4222, 4224, 0);
5.414 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (part_type_code_ IN ( '1','2'))", true, 4231, 4305, 0);
5.415 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (part_type_code_ IN ('3', '4'))", true, 4312, 4403, 0);
5.416 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- begin CTP", true, 4479, 4494, 0);
5.417 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "-- If ctp planned, check multi", true, 4610, 4681, 0);
5.418 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 9, PlsqlBlockType.IF, "IF evaluation_rec_.ctp_planned = 1 AND\n \n part_type_code_ IN ('3','4')", true, 4727, 7414, 4);
5.419 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- parent_supply_.interim_structure_level > 0 AND", true, 4775, 4823, 0);
5.420 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- check for multi", true, 4875, 4910, 0);
5.421 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "IF Dictionary_SYS.Logical_Unit_Is_Installed('SupplySourcePartManager')", true, 5032, 5469, 1);
5.422 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(9).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20051221", true, 5252, 5286, 0);
5.423 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(9).getChildBlocks(), 3, PlsqlBlockType.IF, "IF check_source_ = 'TRUE'", true, 5552, 7376, 0);
5.424 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "-- No further evaluation if multisite part.", true, 7507, 7550, 0);
5.425 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 11, PlsqlBlockType.IF, "IF NOT multi_site_part_exist_", true, 7555, 58694, 10);
5.426 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- IF", true, 7653, 7770, 0);
5.427 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ((configurable_ = 'CONFIGURED') AND (part_type_code_ = '1')) OR\n ((dop_part_ = 'D') AND (part_type_code_ = '1'))", true, 7777, 15425, 10);
5.428 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (evaluation_rec_.alternate_status = 'Buildable')", true, 7915, 9530, 2);
5.429 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Manuf_Part_Attribute_API.Get_Structure_Effectivity(parent_supply_.contract, parent_supply_.part_no)\n = Effectivity_Control_API.Decode('SERIAL')", true, 8075, 8764, 0);
5.430 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 8779, 9512, 0);
5.431 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Retrieve configured part routing if manufactured part.", true, 9692, 9749, 0);
5.432 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (comp_bom_type_db_ = 'M')", true, 9759, 13111, 2);
5.433 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NVL(operation_rec_.operation_row_count,0) > 0)", true, 10889, 12718, 1);
5.434 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (routing_alternative_no_ IS NOT NULL)", true, 10960, 12698, 5);
5.435 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "ops IN 1..operation_rec_.operation_row_count", true, 11025, 11242, 0);
5.436 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Note; Set Routing_alternative on InterimOrder After DetermineRouting", true, 11261, 11332, 0);
5.437 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "COMMENT...", true, 11731, 11733, 0);
5.438 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (NOT Routing_Int_API.Is_Routing_Buildable(parent_supply_.contract,\n parent_supply_.part_no,\n parent_supply_.routing_revision,\n comp_bom_type_,\n routing_alternative_no_))", true, 11752, 12654, 0);
5.439 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "COMMENT...", true, 12673, 12675, 0);
5.440 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Note; Create Operations that is evaluated", true, 12731, 12775, 0);
5.441 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Correct the top order start date before determine the structure", true, 13163, 13229, 0);
5.442 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "IF parent_supply_.interim_order_no ='1'", true, 13239, 13689, 0);
5.443 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 13699, 13781, 0);
5.444 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- Retrieve the components for configured part.", true, 13783, 13830, 0);
5.445 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- Note; Set Structure_alternative on InterimOrder After DetermineStructure", true, 14914, 15001, 0);
5.446 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (structure_alternative_no_ IS NOT NULL)", true, 15011, 15346, 0);
5.447 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "-- IF", true, 15348, 15425, 0);
5.448 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (Part_Catalog_API.Get_Configurable_Db(evaluation_rec_.part_no) = 'NOT CONFIGURED')", true, 15432, 22718, 7);
5.449 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Note; If interim demand head part is not configured then do normal explosion", true, 15535, 15694, 0);
5.450 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Get routing revision and alternate for non", true, 15829, 15904, 0);
5.451 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (comp_bom_type_db_ = 'M')", true, 15999, 19455, 4);
5.452 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (evaluation_rec_.alternate_status = 'Buildable')", true, 16045, 17127, 1);
5.453 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF comp_routing_revision_ IS NULL", true, 16785, 17127, 0);
5.454 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 17140, 18328, 1);
5.455 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF comp_routing_revision_ IS NULL", true, 17951, 18308, 0);
5.456 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "IF comp_struct_alternative_no_ IS NULL", true, 19040, 19373, 0);
5.457 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Get routing revision and alternate for non", true, 19383, 19455, 0);
5.458 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (comp_bom_type_db_ = 'P')", true, 19465, 19916, 0);
5.459 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- If manufactured, retrieve routing operations for non", true, 19960, 20032, 0);
5.460 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (comp_bom_type_db_ = 'M')", true, 20042, 21840, 3);
5.461 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 20808, 20810, 0);
5.462 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NVL(operation_rec_.operation_row_count,0) > 0)", true, 20823, 21447, 1);
5.463 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(5).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (comp_rout_alternative_no_ IS NOT NULL)", true, 20894, 21427, 1);
5.464 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(5).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Note; Set Routing_alternative on InterimOrder After DetermineRouting", true, 20960, 21031, 0);
5.465 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Note; Create Operations that is evaluated", true, 21461, 21505, 0);
5.466 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- Retrieve components for non", true, 21842, 21889, 0);
5.467 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- End of IF", true, 22796, 22817, 0);
5.468 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- If top", true, 22900, 22981, 0);
5.469 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 5, PlsqlBlockType.IF, "IF parent_supply_.interim_order_no ='1'", true, 22988, 23330, 0);
5.470 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSE", true, 23337, 24786, 3);
5.471 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "component_line_item_rec_ IN get_line_item_no(evaluation_rec_.interim_header_id, parent_order_no_)", true, 23741, 24141, 1);
5.472 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (component_line_item_rec_.supply_interim_order_no = parent_supply_.interim_order_no)", true, 23860, 24122, 0);
5.473 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (leadtime_offset_ > 0)", true, 24151, 24456, 0);
5.474 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(6).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 24466, 24545, 0);
5.475 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- FOR", true, 24788, 24842, 0);
5.476 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 8, PlsqlBlockType.FOR_LOOP, "i IN 1..NVL(component_rec_.comp_row_count,0)", true, 24849, 58623, 6);
5.477 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- If by", true, 25656, 25720, 0);
5.478 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (component_rec_.qty_per_assembly_tab(i) < 0)", true, 25730, 27866, 0);
5.479 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.WHILE_LOOP, "(parent_interim_order_no_ > 0) and (NOT phatom_part_exist_ )", true, 28048, 28595, 1);
5.480 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF parent_part_mrp_code_ = 'P'", true, 28332, 28430, 0);
5.481 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- If expense component line, then create warning and ignore.", true, 28597, 28658, 0);
5.482 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (part_type_code_ = '6')", true, 28668, 30817, 1);
5.483 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Else if not phantom parent part, process.", true, 30773, 30817, 0);
5.484 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (parent_interim_order_no_ = 0)", true, 30827, 58528, 6);
5.485 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (part_type_code_ IN ( '1','2'))", true, 30881, 30961, 0);
5.486 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (part_type_code_ IN ('3', '4'))", true, 30974, 31077, 0);
5.487 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- IF", true, 31154, 31198, 0);
5.488 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (component_rec_.mrp_order_code_tab(i) IN ('P','K') AND\n (part_type_code_ = '1'))", true, 31211, 37738, 6);
5.489 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF component_rec_.mrp_order_code_tab(i) = 'P'", true, 31437, 32540, 2);
5.490 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (qty_avail_ >= primary_comp_qty_ ) OR (component_rec_.consumption_item_db_tab(i) = 'Not Consumed')", true, 32266, 32420, 0);
5.491 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 32440, 32517, 0);
5.492 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF get_comp_flag_ = TRUE", true, 32557, 33569, 0);
5.493 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF get_comp_flag_ = FALSE", true, 33585, 37396, 1);
5.494 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Create InterimOrderComponent", true, 35543, 35574, 0);
5.495 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (evaluation_rec_.single_level_explosion = 0)", true, 37450, 37570, 0);
5.496 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 37586, 37682, 0);
5.497 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- IF", true, 37684, 37738, 0);
5.498 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 37751, 58427, 13);
5.499 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- If ctp planned record check for orders to evaluate.", true, 37771, 37825, 0);
5.500 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "IF evaluation_rec_.ctp_planned = 1", true, 37841, 39673, 3);
5.501 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF configurable_ = 'CONFIGURED'", true, 37899, 39281, 2);
5.502 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF part_type_code_ IN ('3','4')", true, 37957, 38933, 3);
5.503 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Dictionary_SYS.Logical_Unit_Is_Installed('SupplySourcePartManager')", true, 38018, 38660, 1);
5.504 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20051221", true, 38344, 38378, 0);
5.505 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF check_source_ = 'TRUE'", true, 38686, 38794, 0);
5.506 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 38819, 38933, 0);
5.507 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 38955, 39281, 2);
5.508 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (evaluation_rec_.single_level_explosion = 0)", true, 38984, 39113, 0);
5.509 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 39138, 39252, 0);
5.510 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 39300, 39608, 2);
5.511 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (evaluation_rec_.single_level_explosion = 0)", true, 39326, 39452, 0);
5.512 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 39474, 39582, 0);
5.513 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Not ctp planned, check for orders to evaluate.", true, 39624, 39673, 0);
5.514 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 39689, 40181, 1);
5.515 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ((configurable_ = 'CONFIGURED') AND (part_type_code_ = '1')) OR\n ((dop_part_ = 'D') AND (part_type_code_ = '1'))", true, 39712, 40158, 2);
5.516 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (evaluation_rec_.single_level_explosion = 0)", true, 39875, 40001, 0);
5.517 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 40023, 40131, 0);
5.518 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Note; Create InterimOrder", true, 40579, 40689, 0);
5.519 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (comp_bom_type_db_ = 'M')", true, 40802, 47732, 3);
5.520 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Note; For Component part even tentative alternative is allowed as a leaf.", true, 40854, 41004, 0);
5.521 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "IF Manuf_Part_Attribute_API.Get_Structure_Effectivity(component_rec_.contract_tab(i), component_rec_.component_part_tab(i))\n = Effectivity_Control_API.Decode('SERIAL')", true, 41024, 44290, 0);
5.522 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 44311, 47681, 2);
5.523 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (evaluation_rec_.alternate_status = 'Buildable')", true, 45217, 46374, 1);
5.524 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF comp_routing_revision_ IS NULL", true, 45993, 46374, 0);
5.525 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 46397, 47655, 1);
5.526 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF comp_routing_revision_ IS NULL", true, 47228, 47625, 0);
5.527 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (comp_bom_type_db_ = 'P')", true, 47749, 48734, 2);
5.528 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 77319, start", true, 48143, 48162, 0);
5.529 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 77319, end", true, 48694, 48711, 0);
5.530 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (comp_eng_chg_level_ IS NULL)", true, 48787, 51225, 1);
5.531 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Note; Set a error message for part revision being null for component", true, 48843, 48914, 0);
5.532 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "COMMENT...", true, 51286, 51306, 0);
5.533 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 8, PlsqlBlockType.FOR_LOOP, "j IN 1..NVL(operation_rec_.operation_row_count,0)", true, 51352, 51628, 1);
5.534 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (component_rec_.comp_operation_no_tab(i)=operation_rec_.operation_no_tab(j))", true, 51429, 51603, 0);
5.535 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (NOT found_)", true, 51644, 51752, 0);
5.536 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (component_rec_.comp_operation_no_tab(i) IS NOT NULL)", true, 51769, 52797, 0);
5.537 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "COMMENT...", true, 52813, 52815, 0);
5.538 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 12, PlsqlBlockType.IF, "IF ( ( (component_rec_.comp_operation_no_tab(i) IS NULL) OR\n ( (component_rec_.comp_operation_no_tab(i) IS NOT NULL) AND\n (oper_valid_) ) ) AND\n ( (component_rec_.qty_per_assembly_tab(i) > 0) OR\n (component_rec_.consumption_item_db_tab(i) = 'Not Consumed') ) )", true, 52831, 58340, 4);
5.539 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.IF, "IF component_rec_.consumption_item_db_tab(i) = 'Not Consumed'", true, 53199, 53353, 0);
5.540 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(12).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Note; Create InterimOrderComponent", true, 54776, 54813, 0);
5.541 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(12).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Note; Create InterimCompWorkGuide", true, 56753, 56789, 0);
5.542 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(12).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "j IN 1..comp_work_guide_rec_.comp_work_guide_count", true, 56808, 58287, 1);
5.543 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(12).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (component_rec_.line_item_no_tab(i) = comp_work_guide_rec_.comp_line_item_no_tab(j))", true, 56889, 58259, 1);
5.544 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(12).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 57006, 57008, 0);
5.545 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- End IF", true, 58493, 58510, 0);
5.546 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "-- End FOR", true, 58624, 58682, 0);
5.547 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 12, PlsqlBlockType.COMMENT, "-- Note; Initialize all records for the next interim order", true, 58737, 58795, 0);
5.548 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "COMMENT...", true, 59312, 59314, 0);
5.549 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- Bug 74483, start", true, 59362, 59381, 0);
5.550 - assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 15, PlsqlBlockType.COMMENT, "-- Bug 74483, end", true, 59466, 59483, 0);
5.551 - assertBlock(lstBlockFac.get(0).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- End FOR", true, 59497, 59576, 0);
5.552 - } finally {
5.553 - if (fileObject != null) {
5.554 - fileObject.delete();
5.555 - }
5.556 - }
5.557 - }
5.558 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.559 + //printHierarchy(lstBlockFac, "");
5.560 + //generateAssert(lstBlockFac, "lstBlockFac", "false");
5.561 + assertTrue(lstBlockFac.size() == 1);
5.562 + assertBlock(lstBlockFac, 0, PlsqlBlockType.PROCEDURE_IMPL, "Evaluate_Level___", false, 1, 59599, 6);
5.563 + assertBlock(lstBlockFac.get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 783, 785, 0);
5.564 + assertBlock(lstBlockFac.get(0).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_line_item_no", true, 2780, 3073, 0);
5.565 + assertBlock(lstBlockFac.get(0).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_parent_supply", true, 3077, 3287, 0);
5.566 + assertBlock(lstBlockFac.get(0).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- FOR", true, 3367, 3442, 0);
5.567 + assertBlock(lstBlockFac.get(0).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "parent_supply_ IN get_parent_supply", true, 3446, 59496, 16);
5.568 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Set parent_supply_rec_ as Parent_supply_", true, 3497, 3540, 0);
5.569 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "COMMENT...", true, 3591, 3593, 0);
5.570 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "COMMENT...", true, 3685, 3687, 0);
5.571 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "COMMENT...", true, 3861, 3863, 0);
5.572 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "COMMENT...", true, 4222, 4224, 0);
5.573 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (part_type_code_ IN ( '1','2'))", true, 4231, 4305, 0);
5.574 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (part_type_code_ IN ('3', '4'))", true, 4312, 4403, 0);
5.575 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- begin CTP", true, 4479, 4494, 0);
5.576 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "-- If ctp planned, check multi", true, 4610, 4681, 0);
5.577 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 9, PlsqlBlockType.IF, "IF evaluation_rec_.ctp_planned = 1 AND\n \n part_type_code_ IN ('3','4')", true, 4727, 7414, 4);
5.578 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- parent_supply_.interim_structure_level > 0 AND", true, 4775, 4823, 0);
5.579 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- check for multi", true, 4875, 4910, 0);
5.580 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "IF Dictionary_SYS.Logical_Unit_Is_Installed('SupplySourcePartManager')", true, 5032, 5469, 1);
5.581 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(9).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20051221", true, 5252, 5286, 0);
5.582 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(9).getChildBlocks(), 3, PlsqlBlockType.IF, "IF check_source_ = 'TRUE'", true, 5552, 7376, 0);
5.583 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "-- No further evaluation if multisite part.", true, 7507, 7550, 0);
5.584 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 11, PlsqlBlockType.IF, "IF NOT multi_site_part_exist_", true, 7555, 58694, 10);
5.585 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- IF", true, 7653, 7770, 0);
5.586 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ((configurable_ = 'CONFIGURED') AND (part_type_code_ = '1')) OR\n ((dop_part_ = 'D') AND (part_type_code_ = '1'))", true, 7777, 15425, 10);
5.587 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (evaluation_rec_.alternate_status = 'Buildable')", true, 7915, 9530, 2);
5.588 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Manuf_Part_Attribute_API.Get_Structure_Effectivity(parent_supply_.contract, parent_supply_.part_no)\n = Effectivity_Control_API.Decode('SERIAL')", true, 8075, 8764, 0);
5.589 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 8779, 9512, 0);
5.590 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Retrieve configured part routing if manufactured part.", true, 9692, 9749, 0);
5.591 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (comp_bom_type_db_ = 'M')", true, 9759, 13111, 2);
5.592 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NVL(operation_rec_.operation_row_count,0) > 0)", true, 10889, 12718, 1);
5.593 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (routing_alternative_no_ IS NOT NULL)", true, 10960, 12698, 5);
5.594 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "ops IN 1..operation_rec_.operation_row_count", true, 11025, 11242, 0);
5.595 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Note; Set Routing_alternative on InterimOrder After DetermineRouting", true, 11261, 11332, 0);
5.596 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "COMMENT...", true, 11731, 11733, 0);
5.597 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (NOT Routing_Int_API.Is_Routing_Buildable(parent_supply_.contract,\n parent_supply_.part_no,\n parent_supply_.routing_revision,\n comp_bom_type_,\n routing_alternative_no_))", true, 11752, 12654, 0);
5.598 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "COMMENT...", true, 12673, 12675, 0);
5.599 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Note; Create Operations that is evaluated", true, 12731, 12775, 0);
5.600 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Correct the top order start date before determine the structure", true, 13163, 13229, 0);
5.601 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "IF parent_supply_.interim_order_no ='1'", true, 13239, 13689, 0);
5.602 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 13699, 13781, 0);
5.603 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- Retrieve the components for configured part.", true, 13783, 13830, 0);
5.604 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- Note; Set Structure_alternative on InterimOrder After DetermineStructure", true, 14914, 15001, 0);
5.605 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (structure_alternative_no_ IS NOT NULL)", true, 15011, 15346, 0);
5.606 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "-- IF", true, 15348, 15425, 0);
5.607 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (Part_Catalog_API.Get_Configurable_Db(evaluation_rec_.part_no) = 'NOT CONFIGURED')", true, 15432, 22718, 7);
5.608 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Note; If interim demand head part is not configured then do normal explosion", true, 15535, 15694, 0);
5.609 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Get routing revision and alternate for non", true, 15829, 15904, 0);
5.610 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (comp_bom_type_db_ = 'M')", true, 15999, 19455, 4);
5.611 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (evaluation_rec_.alternate_status = 'Buildable')", true, 16045, 17127, 1);
5.612 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF comp_routing_revision_ IS NULL", true, 16785, 17127, 0);
5.613 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 17140, 18328, 1);
5.614 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF comp_routing_revision_ IS NULL", true, 17951, 18308, 0);
5.615 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "IF comp_struct_alternative_no_ IS NULL", true, 19040, 19373, 0);
5.616 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Get routing revision and alternate for non", true, 19383, 19455, 0);
5.617 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (comp_bom_type_db_ = 'P')", true, 19465, 19916, 0);
5.618 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- If manufactured, retrieve routing operations for non", true, 19960, 20032, 0);
5.619 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (comp_bom_type_db_ = 'M')", true, 20042, 21840, 3);
5.620 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 20808, 20810, 0);
5.621 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NVL(operation_rec_.operation_row_count,0) > 0)", true, 20823, 21447, 1);
5.622 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(5).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (comp_rout_alternative_no_ IS NOT NULL)", true, 20894, 21427, 1);
5.623 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(5).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Note; Set Routing_alternative on InterimOrder After DetermineRouting", true, 20960, 21031, 0);
5.624 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Note; Create Operations that is evaluated", true, 21461, 21505, 0);
5.625 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(2).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- Retrieve components for non", true, 21842, 21889, 0);
5.626 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- End of IF", true, 22796, 22817, 0);
5.627 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- If top", true, 22900, 22981, 0);
5.628 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 5, PlsqlBlockType.IF, "IF parent_supply_.interim_order_no ='1'", true, 22988, 23330, 0);
5.629 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSE", true, 23337, 24786, 3);
5.630 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "component_line_item_rec_ IN get_line_item_no(evaluation_rec_.interim_header_id, parent_order_no_)", true, 23741, 24141, 1);
5.631 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (component_line_item_rec_.supply_interim_order_no = parent_supply_.interim_order_no)", true, 23860, 24122, 0);
5.632 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (leadtime_offset_ > 0)", true, 24151, 24456, 0);
5.633 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(6).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 24466, 24545, 0);
5.634 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- FOR", true, 24788, 24842, 0);
5.635 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 8, PlsqlBlockType.FOR_LOOP, "i IN 1..NVL(component_rec_.comp_row_count,0)", true, 24849, 58623, 6);
5.636 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- If by", true, 25656, 25720, 0);
5.637 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (component_rec_.qty_per_assembly_tab(i) < 0)", true, 25730, 27866, 0);
5.638 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.WHILE_LOOP, "(parent_interim_order_no_ > 0) and (NOT phatom_part_exist_ )", true, 28048, 28595, 1);
5.639 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF parent_part_mrp_code_ = 'P'", true, 28332, 28430, 0);
5.640 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- If expense component line, then create warning and ignore.", true, 28597, 28658, 0);
5.641 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (part_type_code_ = '6')", true, 28668, 30817, 1);
5.642 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Else if not phantom parent part, process.", true, 30773, 30817, 0);
5.643 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (parent_interim_order_no_ = 0)", true, 30827, 58528, 6);
5.644 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (part_type_code_ IN ( '1','2'))", true, 30881, 30961, 0);
5.645 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (part_type_code_ IN ('3', '4'))", true, 30974, 31077, 0);
5.646 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- IF", true, 31154, 31198, 0);
5.647 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (component_rec_.mrp_order_code_tab(i) IN ('P','K') AND\n (part_type_code_ = '1'))", true, 31211, 37738, 6);
5.648 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF component_rec_.mrp_order_code_tab(i) = 'P'", true, 31437, 32540, 2);
5.649 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (qty_avail_ >= primary_comp_qty_ ) OR (component_rec_.consumption_item_db_tab(i) = 'Not Consumed')", true, 32266, 32420, 0);
5.650 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 32440, 32517, 0);
5.651 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF get_comp_flag_ = TRUE", true, 32557, 33569, 0);
5.652 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF get_comp_flag_ = FALSE", true, 33585, 37396, 1);
5.653 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Create InterimOrderComponent", true, 35543, 35574, 0);
5.654 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (evaluation_rec_.single_level_explosion = 0)", true, 37450, 37570, 0);
5.655 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 37586, 37682, 0);
5.656 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(3).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- IF", true, 37684, 37738, 0);
5.657 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 37751, 58427, 13);
5.658 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- If ctp planned record check for orders to evaluate.", true, 37771, 37825, 0);
5.659 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "IF evaluation_rec_.ctp_planned = 1", true, 37841, 39673, 3);
5.660 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF configurable_ = 'CONFIGURED'", true, 37899, 39281, 2);
5.661 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF part_type_code_ IN ('3','4')", true, 37957, 38933, 3);
5.662 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Dictionary_SYS.Logical_Unit_Is_Installed('SupplySourcePartManager')", true, 38018, 38660, 1);
5.663 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20051221", true, 38344, 38378, 0);
5.664 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF check_source_ = 'TRUE'", true, 38686, 38794, 0);
5.665 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 38819, 38933, 0);
5.666 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 38955, 39281, 2);
5.667 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (evaluation_rec_.single_level_explosion = 0)", true, 38984, 39113, 0);
5.668 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 39138, 39252, 0);
5.669 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 39300, 39608, 2);
5.670 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (evaluation_rec_.single_level_explosion = 0)", true, 39326, 39452, 0);
5.671 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 39474, 39582, 0);
5.672 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Not ctp planned, check for orders to evaluate.", true, 39624, 39673, 0);
5.673 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 39689, 40181, 1);
5.674 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ((configurable_ = 'CONFIGURED') AND (part_type_code_ = '1')) OR\n ((dop_part_ = 'D') AND (part_type_code_ = '1'))", true, 39712, 40158, 2);
5.675 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (evaluation_rec_.single_level_explosion = 0)", true, 39875, 40001, 0);
5.676 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 40023, 40131, 0);
5.677 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Note; Create InterimOrder", true, 40579, 40689, 0);
5.678 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (comp_bom_type_db_ = 'M')", true, 40802, 47732, 3);
5.679 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Note; For Component part even tentative alternative is allowed as a leaf.", true, 40854, 41004, 0);
5.680 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "IF Manuf_Part_Attribute_API.Get_Structure_Effectivity(component_rec_.contract_tab(i), component_rec_.component_part_tab(i))\n = Effectivity_Control_API.Decode('SERIAL')", true, 41024, 44290, 0);
5.681 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 44311, 47681, 2);
5.682 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (evaluation_rec_.alternate_status = 'Buildable')", true, 45217, 46374, 1);
5.683 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF comp_routing_revision_ IS NULL", true, 45993, 46374, 0);
5.684 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 46397, 47655, 1);
5.685 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF comp_routing_revision_ IS NULL", true, 47228, 47625, 0);
5.686 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (comp_bom_type_db_ = 'P')", true, 47749, 48734, 2);
5.687 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 77319, start", true, 48143, 48162, 0);
5.688 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 77319, end", true, 48694, 48711, 0);
5.689 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (comp_eng_chg_level_ IS NULL)", true, 48787, 51225, 1);
5.690 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Note; Set a error message for part revision being null for component", true, 48843, 48914, 0);
5.691 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "COMMENT...", true, 51286, 51306, 0);
5.692 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 8, PlsqlBlockType.FOR_LOOP, "j IN 1..NVL(operation_rec_.operation_row_count,0)", true, 51352, 51628, 1);
5.693 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (component_rec_.comp_operation_no_tab(i)=operation_rec_.operation_no_tab(j))", true, 51429, 51603, 0);
5.694 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (NOT found_)", true, 51644, 51752, 0);
5.695 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (component_rec_.comp_operation_no_tab(i) IS NOT NULL)", true, 51769, 52797, 0);
5.696 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "COMMENT...", true, 52813, 52815, 0);
5.697 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 12, PlsqlBlockType.IF, "IF ( ( (component_rec_.comp_operation_no_tab(i) IS NULL) OR\n ( (component_rec_.comp_operation_no_tab(i) IS NOT NULL) AND\n (oper_valid_) ) ) AND\n ( (component_rec_.qty_per_assembly_tab(i) > 0) OR\n (component_rec_.consumption_item_db_tab(i) = 'Not Consumed') ) )", true, 52831, 58340, 4);
5.698 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.IF, "IF component_rec_.consumption_item_db_tab(i) = 'Not Consumed'", true, 53199, 53353, 0);
5.699 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(12).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Note; Create InterimOrderComponent", true, 54776, 54813, 0);
5.700 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(12).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Note; Create InterimCompWorkGuide", true, 56753, 56789, 0);
5.701 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(12).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "j IN 1..comp_work_guide_rec_.comp_work_guide_count", true, 56808, 58287, 1);
5.702 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(12).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (component_rec_.line_item_no_tab(i) = comp_work_guide_rec_.comp_line_item_no_tab(j))", true, 56889, 58259, 1);
5.703 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks().get(12).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 57006, 57008, 0);
5.704 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks().get(8).getChildBlocks().get(5).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- End IF", true, 58493, 58510, 0);
5.705 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks().get(11).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "-- End FOR", true, 58624, 58682, 0);
5.706 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 12, PlsqlBlockType.COMMENT, "-- Note; Initialize all records for the next interim order", true, 58737, 58795, 0);
5.707 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "COMMENT...", true, 59312, 59314, 0);
5.708 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- Bug 74483, start", true, 59362, 59381, 0);
5.709 + assertBlock(lstBlockFac.get(0).getChildBlocks().get(4).getChildBlocks(), 15, PlsqlBlockType.COMMENT, "-- Bug 74483, end", true, 59466, 59483, 0);
5.710 + assertBlock(lstBlockFac.get(0).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- End FOR", true, 59497, 59576, 0);
5.711 + } finally {
5.712 + if (fileObject != null) {
5.713 + fileObject.delete();
5.714 + }
5.715 + }
5.716 + }
5.717
5.718 - @Test
5.719 - public void testAdvanced3() throws IOException, BadLocationException {
5.720 - System.out.println("Advanced test case 3");
5.721 - FileObject fileObject = fs.getRoot().createData("080617_75132_fndbas.cdb");
5.722 - assertNotNull(fileObject);
5.723 - try {
5.724 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "080617_75132_fndbas.cdb");
5.725 - assertNotNull(blockFac);
5.726 + @Test
5.727 + public void testAdvanced3() throws IOException, BadLocationException {
5.728 + System.out.println("Advanced test case 3");
5.729 + FileObject fileObject = fs.getRoot().createData("080617_75132_fndbas.cdb");
5.730 + assertNotNull(fileObject);
5.731 + try {
5.732 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "080617_75132_fndbas.cdb");
5.733 + assertNotNull(blockFac);
5.734
5.735 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.736 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.737 // printHierarchy(lstBlockFac, "");
5.738 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.739 - assertTrue(lstBlockFac.size() == 5);
5.740 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- File : 080617_75132_Fndbas.cdb", false, 0, 760, 0);
5.741 - assertBlock(lstBlockFac, 1, PlsqlBlockType.BEGIN_END, "", false, 795, 903, 0);
5.742 - assertBlock(lstBlockFac, 2, PlsqlBlockType.DECLARE_END, "", false, 965, 1601, 1);
5.743 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF NOT &AO..Installation_SYS.Is_Db_Patch_Registered('FNDBAS', 75132)", true, 1130, 1596, 0);
5.744 - assertBlock(lstBlockFac, 3, PlsqlBlockType.DECLARE_END, "", false, 1666, 2310, 1);
5.745 - assertBlock(lstBlockFac.get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF NOT &AO..Installation_SYS.Is_Db_Patch_Registered('FNDBAS', 75132)", true, 1839, 2305, 0);
5.746 - assertBlock(lstBlockFac, 4, PlsqlBlockType.BEGIN_END, "", false, 2315, 2416, 0);
5.747 - } finally {
5.748 - if (fileObject != null) {
5.749 - fileObject.delete();
5.750 - }
5.751 - }
5.752 - }
5.753 + assertTrue(lstBlockFac.size() == 5);
5.754 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- File : 080617_75132_Fndbas.cdb", false, 0, 760, 0);
5.755 + assertBlock(lstBlockFac, 1, PlsqlBlockType.BEGIN_END, "", false, 795, 903, 0);
5.756 + assertBlock(lstBlockFac, 2, PlsqlBlockType.DECLARE_END, "", false, 965, 1601, 1);
5.757 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF NOT &AO..Installation_SYS.Is_Db_Patch_Registered('FNDBAS', 75132)", true, 1130, 1596, 0);
5.758 + assertBlock(lstBlockFac, 3, PlsqlBlockType.DECLARE_END, "", false, 1666, 2310, 1);
5.759 + assertBlock(lstBlockFac.get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF NOT &AO..Installation_SYS.Is_Db_Patch_Registered('FNDBAS', 75132)", true, 1839, 2305, 0);
5.760 + assertBlock(lstBlockFac, 4, PlsqlBlockType.BEGIN_END, "", false, 2315, 2416, 0);
5.761 + } finally {
5.762 + if (fileObject != null) {
5.763 + fileObject.delete();
5.764 + }
5.765 + }
5.766 + }
5.767
5.768 - @Test
5.769 - public void testAdvanced4() throws IOException, BadLocationException {
5.770 - System.out.println("Advanced test case 4");
5.771 - FileObject fileObject = fs.getRoot().createData("081114_78488_VMOSFA.cdb");
5.772 - assertNotNull(fileObject);
5.773 - try {
5.774 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "081114_78488_VMOSFA.cdb");
5.775 - assertNotNull(blockFac);
5.776 + @Test
5.777 + public void testAdvanced4() throws IOException, BadLocationException {
5.778 + System.out.println("Advanced test case 4");
5.779 + FileObject fileObject = fs.getRoot().createData("081114_78488_VMOSFA.cdb");
5.780 + assertNotNull(fileObject);
5.781 + try {
5.782 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "081114_78488_VMOSFA.cdb");
5.783 + assertNotNull(blockFac);
5.784
5.785 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.786 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.787 // printHierarchy(lstBlockFac, "");
5.788 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.789 - assertTrue(lstBlockFac.size() == 3);
5.790 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Module : VMOSFA", false, 0, 473, 0);
5.791 - assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "COMMENT...", false, 516, 634, 0);
5.792 - assertBlock(lstBlockFac, 2, PlsqlBlockType.TABLE_COMMENT, "VMO_BASE_SYNC_PACKAGE_VIEW", false, 636, 894, 0);
5.793 - } finally {
5.794 - if (fileObject != null) {
5.795 - fileObject.delete();
5.796 - }
5.797 - }
5.798 - }
5.799 + assertTrue(lstBlockFac.size() == 3);
5.800 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Module : VMOSFA", false, 0, 473, 0);
5.801 + assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "COMMENT...", false, 516, 634, 0);
5.802 + assertBlock(lstBlockFac, 2, PlsqlBlockType.TABLE_COMMENT, "VMO_BASE_SYNC_PACKAGE_VIEW", false, 636, 894, 0);
5.803 + } finally {
5.804 + if (fileObject != null) {
5.805 + fileObject.delete();
5.806 + }
5.807 + }
5.808 + }
5.809
5.810 - @Test
5.811 - public void testAdvanced5() throws IOException, BadLocationException {
5.812 - System.out.println("Advanced test case 5");
5.813 - FileObject fileObject = fs.getRoot().createData("Dictionary.apy");
5.814 - assertNotNull(fileObject);
5.815 - try {
5.816 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "Dictionary.apy");
5.817 - assertNotNull(blockFac);
5.818 + @Test
5.819 + public void testAdvanced5() throws IOException, BadLocationException {
5.820 + System.out.println("Advanced test case 5");
5.821 + FileObject fileObject = fs.getRoot().createData("Dictionary.apy");
5.822 + assertNotNull(fileObject);
5.823 + try {
5.824 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "Dictionary.apy");
5.825 + assertNotNull(blockFac);
5.826
5.827 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.828 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.829 // printHierarchy(lstBlockFac, "");
5.830 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.831 - assertTrue(lstBlockFac.size() == 4);
5.832 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Package: Dictionary_SYS", false, 0, 19335, 0);
5.833 - assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 19440, 19673, 0);
5.834 - assertBlock(lstBlockFac, 2, PlsqlBlockType.PACKAGE_BODY, "DICTIONARY_SYS", false, 19712, 130195, 68);
5.835 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- SERVICE SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 20170, 20403, 0);
5.836 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_DEF, "Check_Method_From_View___", true, 20405, 20525, 0);
5.837 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- SERVICE SPECIFIC IMPLEMENTATION METHODS ", true, 20527, 20760, 0);
5.838 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_IMPL, "Check_Method_From_View___", true, 20762, 21616, 1);
5.839 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(index_ > 0)", true, 21227, 21568, 1);
5.840 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Method_Is_Installed(package_name_, method_name_))", true, 21376, 21499, 0);
5.841 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 4, PlsqlBlockType.FUNCTION_IMPL, "Rebuild_Dictionary_Storage___", true, 21618, 97424, 47);
5.842 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_last_update", true, 23133, 23218, 0);
5.843 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- LAST_DDL_TIME:", true, 23223, 24026, 0);
5.844 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_pkgs_to_update", true, 24030, 24353, 0);
5.845 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Views to update (last_ddl_time has changed since last update)", true, 24398, 24462, 0);
5.846 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 4, PlsqlBlockType.CURSOR, "get_views_to_update", true, 24466, 24674, 0);
5.847 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- All packages (used when doing a full refresh for performance reasons)", true, 24679, 24751, 0);
5.848 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 6, PlsqlBlockType.CURSOR, "get_all_pkgs", true, 24755, 24964, 0);
5.849 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- All view (used when doing a full refresh for performance reasons)", true, 25009, 25077, 0);
5.850 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 8, PlsqlBlockType.CURSOR, "get_all_views", true, 25081, 25210, 0);
5.851 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "-- Package information", true, 25215, 25237, 0);
5.852 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 10, PlsqlBlockType.CURSOR, "get_package_info", true, 25241, 25892, 0);
5.853 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "-- View information", true, 25897, 25916, 0);
5.854 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 12, PlsqlBlockType.CURSOR, "get_view_comments", true, 25920, 26094, 0);
5.855 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Write_Error_Text___", true, 26099, 26631, 2);
5.856 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF write_clob_", true, 26281, 26443, 2);
5.857 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF new_line_", true, 26310, 26375, 0);
5.858 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 26385, 26443, 0);
5.859 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 26450, 26603, 2);
5.860 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(13).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF new_line_", true, 26464, 26522, 0);
5.861 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(13).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 26532, 26589, 0);
5.862 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_IMPL, "Get_Next_Pkg_Index___", true, 26637, 27027, 1);
5.863 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "next_index", true, 26753, 26896, 0);
5.864 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Get_Next_View_Index___", true, 27032, 27421, 1);
5.865 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "next_index", true, 27151, 27288, 0);
5.866 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Handle_Possible_State_Pkg___", true, 27426, 27891, 1);
5.867 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.IF, "IF method_name_ = 'Finite_State_Events__'", true, 27552, 27854, 3);
5.868 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Set global variable", true, 27608, 27630, 0);
5.869 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Update main dictionary information", true, 27674, 27711, 0);
5.870 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_package_tab", true, 27721, 27839, 0);
5.871 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 17, PlsqlBlockType.PROCEDURE_IMPL, "Fill_List_Array___", true, 27896, 31673, 3);
5.872 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Check for incorrectness in number of values and remove redundant information if it occurs", true, 28373, 28465, 0);
5.873 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks(), 1, PlsqlBlockType.IF, "IF db_values_.COUNT != client_values_.COUNT", true, 28472, 31268, 4);
5.874 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF db_count_ > client_count_", true, 28618, 29707, 2);
5.875 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Missing client values", true, 28664, 28688, 0);
5.876 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN Nvl(db_values_.FIRST, 0)..Nvl(db_values_.LAST, -1)", true, 28851, 29707, 3);
5.877 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Try to find more values by calling standard interfaces for domains,", true, 28931, 29072, 0);
5.878 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF domain_", true, 29088, 29471, 1);
5.879 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 29122, 29471, 1);
5.880 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe utgulk 20060105", true, 29149, 29183, 0);
5.881 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 29487, 29684, 1);
5.882 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Can't find the values for other types than domains...", true, 29510, 29566, 0);
5.883 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 29717, 30787, 2);
5.884 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Missing db values", true, 29734, 29754, 0);
5.885 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN Nvl(client_values_.FIRST,0)..Nvl(client_values_.LAST,-1)", true, 29917, 30770, 3);
5.886 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Try to find more values by calling standard interfaces for domains,", true, 30003, 30144, 0);
5.887 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF domain_", true, 30160, 30539, 1);
5.888 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 30194, 30539, 1);
5.889 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe utgulk 20060105", true, 30221, 30255, 0);
5.890 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 30555, 30748, 1);
5.891 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Can't find the values for other types than domains...", true, 30578, 30634, 0);
5.892 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Log information if values could not be determined...", true, 30797, 30852, 0);
5.893 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF error_", true, 30862, 31254, 0);
5.894 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "i IN Nvl(db_values_.FIRST,0)..Nvl(db_values_.LAST,-1)", true, 31275, 31646, 0);
5.895 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Rebuild_State_Machine___", true, 31678, 37787, 10);
5.896 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "state_mach", true, 31795, 32633, 0);
5.897 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "Get_Lu_Name_", true, 33226, 33747, 1);
5.898 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT lu_name INTO tmp_", true, 33384, 33504, 0);
5.899 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_IMPL, "trim_str", true, 33758, 33900, 0);
5.900 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 3, PlsqlBlockType.IF, "IF full_mode_", true, 33918, 33974, 0);
5.901 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 33981, 34100, 1);
5.902 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT NVL(MAX(updated),SYSDATE-1000) INTO last_update_ FROM dictionary_sys_state_mach_tab", true, 33995, 34085, 0);
5.903 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 5, PlsqlBlockType.WHILE_LOOP, "i < state_machine.LAST", true, 34236, 35499, 2);
5.904 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF state_machine(i-1).type ='START' AND state_machine(i).type = 'EVENT'", true, 34280, 35432, 1);
5.905 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "in_state_transistion AND i+1 <= state_machine.LAST", true, 34470, 35432, 3);
5.906 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF state_machine(i).type='EVENT' AND\n state_machine(i+1).type='END' AND\n trim_str(state_machine(i).what) IS NOT NULL", true, 34548, 35184, 0);
5.907 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF state_machine(i).type!='START' AND i < state_machine.LAST", true, 35200, 35294, 0);
5.908 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 35310, 35410, 0);
5.909 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 35442, 35483, 0);
5.910 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- This line only used when debugging", true, 35500, 35747, 0);
5.911 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 35773, 35807, 0);
5.912 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 8, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_state_mach_tab VALUES model(k)", true, 36346, 36403, 0);
5.913 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 9, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 36679, 37613, 1);
5.914 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Write_Error_Text___ (error_text_, ' Position number '||to_char(position_));", true, 36776, 36873, 0);
5.915 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 19, PlsqlBlockType.PROCEDURE_IMPL, "Rebuild_All_State_Event___", true, 37793, 44384, 9);
5.916 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_events", true, 37912, 38424, 0);
5.917 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "Get_Lu_Name_", true, 39041, 39523, 1);
5.918 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT lu_name INTO tmp_", true, 39184, 39298, 0);
5.919 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 2, PlsqlBlockType.IF, "IF full_mode_", true, 39541, 39597, 0);
5.920 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 39604, 39723, 1);
5.921 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT NVL(MAX(updated),SYSDATE-1000) INTO last_update_ FROM dictionary_sys_state_mach_tab", true, 39618, 39708, 0);
5.922 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 4, PlsqlBlockType.IF, "IF SQL%NOTFOUND", true, 39810, 39947, 0);
5.923 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 39954, 40399, 1);
5.924 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 39968, 40385, 1);
5.925 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 39986, 40020, 0);
5.926 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 6, PlsqlBlockType.FOR_LOOP, "i IN Nvl(state_events_.FIRST,0)..Nvl(state_events_.LAST,-1)", true, 40756, 42282, 1);
5.927 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.LOOP, "", true, 40908, 42266, 2);
5.928 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF event_idx_!=1", true, 41108, 41441, 1);
5.929 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j IN Nvl(event_array_.FIRST,0)..Nvl(event_array_.LAST,-1)", true, 41184, 41421, 1);
5.930 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF event_array_(j)=event_", true, 41269, 41396, 0);
5.931 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF NOT dup_event_val_", true, 41454, 42217, 1);
5.932 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ELSE", true, 41934, 42197, 0);
5.933 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 7, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_state_event_tab VALUES state_event_values_(j)", true, 42773, 42845, 0);
5.934 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 8, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 43104, 43892, 1);
5.935 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Write_Error_Text___ (error_text_, ' Position number '||to_char(position_));", true, 43198, 43292, 0);
5.936 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Rebuild_State_Transitions___", true, 44391, 50214, 9);
5.937 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_state_events_", true, 44784, 45087, 0);
5.938 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "Get_Allowed_State_Trans", true, 45370, 46212, 1);
5.939 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe utgulk 20060105", true, 45784, 45818, 0);
5.940 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 2, PlsqlBlockType.IF, "IF full_mode_", true, 46230, 46286, 0);
5.941 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 46293, 46569, 1);
5.942 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT NVL(MAX(to_date(timestamp, 'RRRR-MM-DD:HH24:MI:SS')),SYSDATE-1000) INTO last_update_", true, 46307, 46554, 0);
5.943 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 4, PlsqlBlockType.IF, "IF SQL%NOTFOUND", true, 46668, 46817, 0);
5.944 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 46824, 47269, 1);
5.945 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 46838, 47255, 1);
5.946 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 46856, 46890, 0);
5.947 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 6, PlsqlBlockType.FOR_LOOP, "i IN Nvl(state_list_.FIRST,0)..Nvl(state_list_.LAST,-1)", true, 47326, 48183, 1);
5.948 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.LOOP, "", true, 47522, 48167, 0);
5.949 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 7, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_state_trans_tab VALUES state_trans_values_(j)", true, 48677, 48749, 0);
5.950 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 8, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 49013, 49941, 1);
5.951 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Write_Error_Text___ (error_text_, ' Position number '||to_char(position_));", true, 49107, 49201, 0);
5.952 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Tokenize_Lists___", true, 50219, 51194, 1);
5.953 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "end_pos_ < len_ AND end_pos_ != 0", true, 50701, 51168, 0);
5.954 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 22, PlsqlBlockType.PROCEDURE_IMPL, "Insert_Package_Information___", true, 51199, 54616, 9);
5.955 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_tab", true, 51472, 51620, 0);
5.956 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 1, PlsqlBlockType.IF, "IF length(lu_name_) > 25", true, 51631, 51839, 0);
5.957 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 2, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_tab", true, 51904, 52085, 0);
5.958 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Insert and if already existing then update.", true, 52482, 52592, 0);
5.959 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 4, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_package_tab", true, 52672, 52880, 0);
5.960 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Fix problems with LU that has more than one _API package (e.g. for state handling).", true, 52891, 53002, 0);
5.961 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 6, PlsqlBlockType.STATEMENT, "UPDATE Dictionary_Sys_Package_Tab", true, 53012, 53697, 0);
5.962 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "COMMENT...", true, 53709, 53711, 0);
5.963 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 8, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_package_tab", true, 53776, 53939, 0);
5.964 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Insert_View_Information___", true, 54621, 57785, 12);
5.965 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find the base view according to naming conventions...", true, 54930, 55061, 0);
5.966 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 1, PlsqlBlockType.IF, "IF view_name_ = Clientnametodbname_(lu_name_)", true, 55068, 55185, 0);
5.967 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 55192, 55269, 0);
5.968 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Insert into dictionary_sys_tab. It is likely this entry already exist (from package information),", true, 55276, 55448, 0);
5.969 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 4, PlsqlBlockType.IF, "IF base_view_", true, 55455, 55845, 2);
5.970 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_tab", true, 55483, 55622, 0);
5.971 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "IF SQL%NOTFOUND", true, 55633, 55845, 1);
5.972 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_tab", true, 55666, 55827, 0);
5.973 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 55852, 56179, 2);
5.974 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_tab", true, 55866, 55965, 0);
5.975 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "IF SQL%NOTFOUND", true, 55976, 56165, 1);
5.976 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks().get(5).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_tab", true, 56009, 56147, 0);
5.977 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- Insert into dictionary_sys_view_tab", true, 56186, 56341, 0);
5.978 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 7, PlsqlBlockType.IF, "IF base_view_", true, 56419, 56468, 0);
5.979 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF substr(view_name_, -4) = '_REP'", true, 56478, 56551, 0);
5.980 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSE", true, 56561, 56613, 0);
5.981 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 10, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_view_tab", true, 56623, 56838, 0);
5.982 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 11, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_view_tab", true, 56904, 57146, 0);
5.983 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 24, PlsqlBlockType.PROCEDURE_IMPL, "Refresh_View_Columns___", true, 57790, 64140, 7);
5.984 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_view_columns", true, 57896, 58224, 0);
5.985 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_new_view_columns", true, 58232, 58678, 0);
5.986 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Fetch view column information and delete old information", true, 59249, 59326, 0);
5.987 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 3, PlsqlBlockType.IF, "IF all_views_", true, 59333, 59640, 1);
5.988 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Remove all old information", true, 59491, 59564, 0);
5.989 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 59647, 60151, 2);
5.990 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Remove old information for all of the methods that is being updated", true, 59803, 59873, 0);
5.991 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_view_column_tab c", true, 59883, 60136, 0);
5.992 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Process all of the view column information", true, 60159, 60204, 0);
5.993 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 6, PlsqlBlockType.IF, "IF view_columns_.COUNT > 0", true, 60211, 64108, 3);
5.994 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(view_columns_.FIRST,0)..Nvl(view_columns_.LAST,-1)", true, 60252, 62822, 3);
5.995 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find the lu name for the view if view has changed", true, 60333, 60385, 0);
5.996 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (prev_view_ <> view_columns_(i).view_name)", true, 60398, 60606, 0);
5.997 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF lu_name_ IS NOT NULL", true, 60619, 62803, 1);
5.998 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 60663, 62754, 0);
5.999 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Insert all the values into dictionary_sys_view_column_tab", true, 62833, 62893, 0);
5.1000 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks(), 2, PlsqlBlockType.BEGIN_END, "", true, 62903, 64094, 2);
5.1001 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_view_column_tab VALUES complete_columns_(j)", true, 63027, 63097, 0);
5.1002 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 63371, 64080, 0);
5.1003 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 25, PlsqlBlockType.COMMENT, "-- Handles both domain and state information, behaves different depending on info_type", true, 64145, 64231, 0);
5.1004 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 26, PlsqlBlockType.PROCEDURE_IMPL, "Refresh_Domain_State_Info___", true, 64235, 70207, 11);
5.1005 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Domain information", true, 64388, 64409, 0);
5.1006 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_domain_info", true, 64416, 65703, 0);
5.1007 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- State information", true, 65717, 65737, 0);
5.1008 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_state_info", true, 65744, 66259, 0);
5.1009 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- AND line BETWEEN 2 AND 11;", true, 66260, 66300, 0);
5.1010 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Delete old values (they can only exist if this is not a full refresh)", true, 66671, 66743, 0);
5.1011 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 6, PlsqlBlockType.IF, "IF NOT refresh_all_", true, 66750, 67129, 2);
5.1012 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF refresh_domain_", true, 66784, 66946, 1);
5.1013 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_domain_tab", true, 66820, 66945, 0);
5.1014 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 66956, 67115, 1);
5.1015 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(6).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_state_tab", true, 66973, 67097, 0);
5.1016 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- Clear variables", true, 67137, 67155, 0);
5.1017 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 8, PlsqlBlockType.IF, "IF refresh_domain_", true, 67248, 67904, 2);
5.1018 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN Nvl(list_.FIRST,0)..Nvl(list_.LAST,-1)", true, 67434, 67572, 0);
5.1019 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "j_ IN Nvl(list_.FIRST,0)..Nvl(list_.LAST,-1)", true, 67762, 67904, 0);
5.1020 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSE", true, 67911, 68423, 2);
5.1021 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "list IN get_state_info(package_name_)", true, 67925, 68323, 3);
5.1022 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Break down the list into single values in an array", true, 67984, 68037, 0);
5.1023 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF list.list_type = 'db_state_list_'", true, 68050, 68155, 0);
5.1024 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF list.list_type = 'client_state_list_'", true, 68168, 68304, 0);
5.1025 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Get state events", true, 68333, 68408, 0);
5.1026 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 10, PlsqlBlockType.IF, "IF db_values_.count > 0", true, 68431, 70170, 3);
5.1027 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Fill the result array with the rest of the necessary information", true, 68469, 68536, 0);
5.1028 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Insert all of the values into dictionary_sys_domain_tab", true, 68659, 68717, 0);
5.1029 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks(), 2, PlsqlBlockType.BEGIN_END, "", true, 68727, 70156, 3);
5.1030 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF refresh_domain_", true, 68745, 68956, 1);
5.1031 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_domain_tab VALUES complete_values_(j)", true, 68891, 68955, 0);
5.1032 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 68969, 69180, 1);
5.1033 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_state_tab VALUES complete_values_(j)", true, 69096, 69159, 0);
5.1034 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 69490, 70142, 1);
5.1035 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Write_Error_Text___ (error_text_, ' Position number '||to_char(position_));", true, 69591, 69688, 0);
5.1036 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 27, PlsqlBlockType.PROCEDURE_IMPL, "Refresh_Method_Arguments___", true, 70212, 75509, 7);
5.1037 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_met_arguments", true, 70326, 70705, 0);
5.1038 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_new_met_arguments", true, 70713, 71255, 0);
5.1039 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Fetch method argument information and delete old information", true, 71784, 71865, 0);
5.1040 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 3, PlsqlBlockType.IF, "IF all_methods_", true, 71872, 72181, 1);
5.1041 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Remove all old information", true, 72035, 72108, 0);
5.1042 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 72188, 72701, 2);
5.1043 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Remove old information for all of the methods that is being updated", true, 72347, 72417, 0);
5.1044 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_argument_tab a", true, 72427, 72686, 0);
5.1045 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Process method argument information", true, 72708, 72764, 0);
5.1046 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 6, PlsqlBlockType.IF, "IF met_arguments.COUNT > 0", true, 72771, 75473, 3);
5.1047 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(met_arguments.FIRST,0)..Nvl(met_arguments.LAST,-1)", true, 72812, 74065, 3);
5.1048 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find the lu name for the package if package has changed", true, 72893, 72951, 0);
5.1049 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (prev_pkg_ <> met_arguments(i).package_name)", true, 72964, 73182, 0);
5.1050 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF lu_name_ IS NOT NULL", true, 73195, 74046, 1);
5.1051 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Insert the values into the complete array", true, 73239, 73283, 0);
5.1052 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Insert all the values into dictionary_sys_argument_tab", true, 74076, 74133, 0);
5.1053 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks(), 2, PlsqlBlockType.BEGIN_END, "", true, 74143, 75458, 2);
5.1054 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_argument_tab VALUES all_arguments_(j)", true, 74261, 74325, 0);
5.1055 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 74603, 75444, 0);
5.1056 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 28, PlsqlBlockType.PROCEDURE_IMPL, "Refresh_Methods___", true, 75514, 84605, 17);
5.1057 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_methods", true, 75619, 75913, 0);
5.1058 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_pragma_methods", true, 75921, 76333, 0);
5.1059 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_new_methods", true, 76341, 76773, 0);
5.1060 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_new_pragma_methods", true, 76781, 77323, 0);
5.1061 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Fetch method information and delete old information", true, 77830, 77902, 0);
5.1062 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 5, PlsqlBlockType.IF, "IF all_methods_", true, 77909, 78205, 1);
5.1063 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Remove all old information for methods", true, 78049, 78134, 0);
5.1064 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSE", true, 78212, 78700, 2);
5.1065 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Remove old information for all of the methods that is being updated", true, 78348, 78418, 0);
5.1066 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_method_tab m", true, 78428, 78685, 0);
5.1067 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- Process method information", true, 78707, 78754, 0);
5.1068 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 8, PlsqlBlockType.IF, "IF methods_.COUNT > 0", true, 78761, 80891, 3);
5.1069 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(methods_.FIRST,0)..Nvl(methods_.LAST,-1)", true, 78797, 79614, 2);
5.1070 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (prev_pkg_ <> methods_(i).pkg)", true, 78868, 79044, 0);
5.1071 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF lu_name_ IS NOT NULL", true, 79057, 79595, 1);
5.1072 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Insert the values into the complete array", true, 79187, 79231, 0);
5.1073 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Insert all the values into dictionary_sys_method_tab", true, 79625, 79680, 0);
5.1074 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.BEGIN_END, "", true, 79690, 80877, 2);
5.1075 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_method_tab VALUES complete_methods_(j)", true, 79814, 79879, 0);
5.1076 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 80148, 80863, 0);
5.1077 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "-- Clear arrays", true, 80899, 80914, 0);
5.1078 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "-- Fetch pragma method information", true, 80977, 81029, 0);
5.1079 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 11, PlsqlBlockType.IF, "IF all_methods_", true, 81036, 81187, 0);
5.1080 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSE", true, 81194, 81355, 0);
5.1081 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "-- Process pragma method information", true, 81362, 81416, 0);
5.1082 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 14, PlsqlBlockType.IF, "IF methods_.COUNT > 0", true, 81423, 84036, 2);
5.1083 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Initiate sub type", true, 81459, 81479, 0);
5.1084 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN Nvl(methods_.FIRST,0)..Nvl(methods_.LAST,-1)", true, 81523, 84022, 3);
5.1085 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find the name of the LU for every new package", true, 81594, 81642, 0);
5.1086 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (prev_pkg_ <> methods_(i).pkg)", true, 81655, 81831, 0);
5.1087 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF lu_name_ IS NOT NULL", true, 81844, 84003, 5);
5.1088 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Update the record in dictionary_sys_method_tab", true, 81974, 82023, 0);
5.1089 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.BEGIN_END, "", true, 82039, 83287, 2);
5.1090 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_method_tab", true, 82063, 82338, 0);
5.1091 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF SQL%NOTFOUND", true, 82358, 82653, 1);
5.1092 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_method_tab", true, 82400, 82626, 0);
5.1093 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Handle if current package contains a state machine (identified by a specific PRAGMA method)", true, 83303, 83465, 0);
5.1094 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Fetch and insert state information if current package contains a state machine", true, 83545, 83626, 0);
5.1095 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.IF, "IF pkg_lu_sub_type_ = 'S'", true, 83642, 83983, 2);
5.1096 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (refresh_mode_ != 'LIGHT')", true, 83691, 83838, 0);
5.1097 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Reset the sub_type to avoid multiple unnecessary searches", true, 83857, 83917, 0);
5.1098 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 15, PlsqlBlockType.COMMENT, "-- Update special handled methods to PRAGMA (Read", true, 84043, 84124, 0);
5.1099 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 16, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_method_tab t", true, 84131, 84577, 0);
5.1100 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 29, PlsqlBlockType.COMMENT, "-- Validate refresh mode before proceeding", true, 84965, 85019, 0);
5.1101 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 30, PlsqlBlockType.IF, "IF refresh_mode_ IS NULL OR refresh_mode_ NOT IN ('FULL', 'PARTIAL', 'VIEWS', 'PACKAGES', 'LIGHT')", true, 85023, 85288, 0);
5.1102 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 31, PlsqlBlockType.COMMENT, "-- If a refresh is not necessary and a full refresh is not ordered, abort immediately...", true, 85292, 85601, 0);
5.1103 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 32, PlsqlBlockType.IF, "IF NOT refresh_all_", true, 85605, 86131, 4);
5.1104 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(32).getChildBlocks(), 0, PlsqlBlockType.IF, "IF rebuild_needed_ = 0", true, 85686, 85844, 0);
5.1105 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(32).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Find last update time", true, 85852, 85876, 0);
5.1106 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(32).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Set full refresh mode if no dictionary data exist", true, 85988, 86040, 0);
5.1107 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(32).getChildBlocks(), 3, PlsqlBlockType.IF, "IF last_update_ IS NULL", true, 86047, 86120, 0);
5.1108 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 33, PlsqlBlockType.IF, "IF refresh_all_", true, 86136, 86483, 1);
5.1109 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(33).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Fetch the objects to update", true, 86242, 86272, 0);
5.1110 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 34, PlsqlBlockType.IF, "ELSE", true, 86487, 87516, 7);
5.1111 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Spool information about what \"mode\" is used", true, 86498, 86544, 0);
5.1112 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 1, PlsqlBlockType.IF, "IF refresh_views_ AND refresh_pkgs_", true, 86551, 86675, 0);
5.1113 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF refresh_pkgs_", true, 86682, 86808, 0);
5.1114 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF refresh_views_", true, 86815, 86953, 0);
5.1115 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Fetch the objects to update", true, 87097, 87127, 0);
5.1116 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 5, PlsqlBlockType.IF, "IF refresh_pkgs_", true, 87134, 87315, 0);
5.1117 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 6, PlsqlBlockType.IF, "IF refresh_views_", true, 87323, 87505, 0);
5.1118 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 35, PlsqlBlockType.COMMENT, "-- Refresh package and method information", true, 87520, 87573, 0);
5.1119 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 36, PlsqlBlockType.IF, "IF packages_.COUNT > 0", true, 87911, 91240, 7);
5.1120 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Save start date for package refresh", true, 87945, 87983, 0);
5.1121 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Remove old information if full refresh", true, 88020, 88061, 0);
5.1122 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 2, PlsqlBlockType.IF, "IF refresh_all_", true, 88068, 88675, 5);
5.1123 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 88098, 88132, 0);
5.1124 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 88206, 88240, 0);
5.1125 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 88322, 88356, 0);
5.1126 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 88437, 88471, 0);
5.1127 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 88551, 88585, 0);
5.1128 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "i IN Nvl(packages_.FIRST,0)..Nvl(packages_.LAST,-1)", true, 88683, 90462, 3);
5.1129 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "pkg_info IN get_package_info(packages_(i))", true, 88892, 89394, 4);
5.1130 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Investigate module, lu name and sub type of the lu", true, 88956, 89009, 0);
5.1131 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (pkg_info.gtype = 'M')", true, 89022, 89113, 0);
5.1132 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF pkg_info.gtype IN ('L', 'S')", true, 89126, 89260, 0);
5.1133 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF pkg_info.gtype = 'D'", true, 89273, 89375, 0);
5.1134 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF pkg_lu_name_ IS NOT NULL AND pkg_module_ IS NOT NULL", true, 89404, 90225, 3);
5.1135 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Insert the information into the dictionary", true, 89477, 89522, 0);
5.1136 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Refresh domain or state information depending on sub type of the LU (stored in global variable)", true, 89820, 89918, 0);
5.1137 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF pkg_lu_sub_type_ = 'D'", true, 89931, 90225, 2);
5.1138 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Refresh domain information if this is identified as an IID package", true, 89977, 90046, 0);
5.1139 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (refresh_mode_ != 'LIGHT')", true, 90062, 90205, 0);
5.1140 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 90235, 90446, 0);
5.1141 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Refresh methods once all packages are updated", true, 90469, 90535, 0);
5.1142 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Refresh arguments for methods once all methods are updated", true, 90595, 90674, 0);
5.1143 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 90738, 91229, 0);
5.1144 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 37, PlsqlBlockType.COMMENT, "-- Refresh view information", true, 91244, 91283, 0);
5.1145 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 38, PlsqlBlockType.IF, "IF views_.COUNT > 0", true, 91615, 93635, 6);
5.1146 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Save start date for view refresh", true, 91646, 91681, 0);
5.1147 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Remove old information if full refresh", true, 91718, 91759, 0);
5.1148 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks(), 2, PlsqlBlockType.IF, "IF refresh_all_", true, 91766, 91899, 1);
5.1149 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 91796, 91830, 0);
5.1150 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 91906, 92078, 1);
5.1151 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_view_tab", true, 91985, 92063, 0);
5.1152 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "i IN Nvl(views_.FIRST,0)..Nvl(views_.LAST,-1)", true, 92086, 93491, 4);
5.1153 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF view_module_ = 'IGNORE'", true, 92448, 92535, 0);
5.1154 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "IF view_lu_name_ IS NULL", true, 92545, 92823, 1);
5.1155 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF view_lu_name_ IS NULL", true, 92668, 92806, 0);
5.1156 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.IF, "IF view_module_ IS NOT NULL AND view_lu_name_ IS NOT NULL", true, 92915, 93265, 1);
5.1157 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF view_module_ != 'IGNORE'", true, 92990, 93265, 0);
5.1158 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(4).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 93275, 93475, 0);
5.1159 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Refresh view columns once all view are updated", true, 93498, 93565, 0);
5.1160 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 39, PlsqlBlockType.IF, "IF NOT refresh_all_", true, 93640, 95104, 6);
5.1161 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(39).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Delete information for objects no longer in the database", true, 93671, 93748, 0);
5.1162 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(39).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_package_tab p", true, 93755, 94000, 0);
5.1163 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(39).getChildBlocks(), 2, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_method_tab m", true, 94009, 94211, 0);
5.1164 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(39).getChildBlocks(), 3, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_view_tab v", true, 94220, 94456, 0);
5.1165 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(39).getChildBlocks(), 4, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_view_column_tab c", true, 94465, 94716, 0);
5.1166 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(39).getChildBlocks(), 5, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_tab l", true, 94725, 95092, 0);
5.1167 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 40, PlsqlBlockType.COMMENT, "-- Attempt 1:", true, 95109, 95280, 0);
5.1168 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 41, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_view_tab", true, 95284, 95803, 0);
5.1169 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 42, PlsqlBlockType.COMMENT, "-- Attempt 2:", true, 95809, 95983, 0);
5.1170 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 43, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_view_tab", true, 95987, 96219, 0);
5.1171 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 44, PlsqlBlockType.COMMENT, "-- Set prompts for all Logical Units that didn't have a clearly defined view with a prompt.", true, 96224, 96379, 0);
5.1172 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 45, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_tab", true, 96383, 96527, 0);
5.1173 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 46, PlsqlBlockType.COMMENT, "-- Call activity ManageApplicationServerCache.ClearDataDictionaryCache", true, 96590, 96672, 0);
5.1174 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- SERVICE SPECIFIC PRIVATE METHODS ", true, 97427, 97966, 0);
5.1175 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_IMPL, "Enumerate_Logical_Units__", true, 97967, 98926, 5);
5.1176 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "units", true, 98197, 98315, 0);
5.1177 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Init used elements", true, 98325, 98358, 0);
5.1178 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Fetch all packages and views associated with a logical unit", true, 98446, 98570, 0);
5.1179 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "unit IN units", true, 98574, 98751, 1);
5.1180 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (length(temp_(n_)) > limit_)", true, 98665, 98738, 0);
5.1181 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Return complete lists", true, 98755, 98791, 0);
5.1182 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 7, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Properties__", true, 98928, 99371, 0);
5.1183 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Properties2__", true, 99373, 99799, 0);
5.1184 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 9, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Views__", true, 99801, 99996, 0);
5.1185 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 10, PlsqlBlockType.FUNCTION_IMPL, "Get_Logical_Unit_Views__", true, 99998, 100655, 2);
5.1186 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_lu_views", true, 100158, 100296, 0);
5.1187 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.IF, "IF view_array_.count > 0", true, 100405, 100603, 1);
5.1188 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(10).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(view_array_.first, 0)..Nvl(view_array_.last, -1)", true, 100441, 100592, 0);
5.1189 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 11, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Packages__", true, 100657, 100864, 0);
5.1190 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 12, PlsqlBlockType.FUNCTION_IMPL, "Get_Logical_Unit_Packages__", true, 100867, 101576, 2);
5.1191 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_lu_packages", true, 101031, 101181, 0);
5.1192 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks(), 1, PlsqlBlockType.IF, "IF package_array_.count > 0", true, 101302, 101518, 1);
5.1193 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(package_array_.first, 0)..Nvl(package_array_.last, -1)", true, 101341, 101507, 0);
5.1194 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Methods__", true, 101578, 102791, 5);
5.1195 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_all_lu_methods", true, 101803, 101967, 0);
5.1196 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_lu_methods", true, 101972, 102160, 0);
5.1197 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 2, PlsqlBlockType.IF, "IF all_methods_ = 'TRUE'", true, 102171, 102343, 0);
5.1198 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 102347, 102493, 0);
5.1199 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 4, PlsqlBlockType.IF, "IF method_array_.count > 0", true, 102498, 102759, 1);
5.1200 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "lu_methods IN Nvl(method_array_.first, 0)..Nvl(method_array_.last, -1)", true, 102536, 102748, 0);
5.1201 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_IMPL, "Get_LU_Method_Types__", true, 102793, 103665, 2);
5.1202 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_all_lu_methods", true, 102997, 103174, 0);
5.1203 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 1, PlsqlBlockType.IF, "IF method_array_.count > 0", true, 103333, 103638, 1);
5.1204 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "lu_methods IN Nvl(method_array_.first, 0)..Nvl(method_array_.last, -1)", true, 103371, 103627, 0);
5.1205 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 15, PlsqlBlockType.FUNCTION_IMPL, "Get_State_Encode_Method__", true, 103667, 103868, 0);
5.1206 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 16, PlsqlBlockType.FUNCTION_IMPL, "Get_State_Enumerate_Method__", true, 103870, 104074, 0);
5.1207 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "-- SERVICE SPECIFIC PROTECTED METHODS ", true, 104076, 104528, 0);
5.1208 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 18, PlsqlBlockType.FUNCTION_IMPL, "Dbnametoclientname_", true, 104530, 105067, 4);
5.1209 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find number of trailing underscores", true, 104632, 104670, 0);
5.1210 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Return client name with leading underscores", true, 104733, 104779, 0);
5.1211 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (cnt_ = 1)", true, 104783, 104855, 0);
5.1212 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (cnt_ = 2)", true, 104859, 104946, 0);
5.1213 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 19, PlsqlBlockType.FUNCTION_IMPL, "Clientnametodbname_", true, 105070, 105977, 6);
5.1214 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find number of leading underscores", true, 105242, 105279, 0);
5.1215 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Add intermediate underscores where needed", true, 105350, 105394, 0);
5.1216 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "index_ IN cnt_+1..length(client_name_)", true, 105398, 105665, 2);
5.1217 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (char_ between 'A' and 'Z') AND (temp_ IS NOT NULL)", true, 105498, 105595, 0);
5.1218 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 105602, 105652, 0);
5.1219 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Return database name with trailing underscores", true, 105669, 105718, 0);
5.1220 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (cnt_ = 1)", true, 105722, 105785, 0);
5.1221 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (cnt_ = 2)", true, 105789, 105866, 0);
5.1222 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 20, PlsqlBlockType.COMMENT, "-- Comment decoding routines for LU", true, 105979, 106181, 0);
5.1223 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 21, PlsqlBlockType.FUNCTION_IMPL, "Comment_Value_", true, 106183, 106898, 5);
5.1224 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find keyword name position within comment", true, 106339, 106383, 0);
5.1225 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- New fix to support ambigous names in report definitions in IFS/Info Services", true, 106414, 106493, 0);
5.1226 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- If found, return value from comment", true, 106555, 106593, 0);
5.1227 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (from_ > 0)", true, 106597, 106839, 2);
5.1228 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( to_ = 0 )", true, 106665, 106735, 0);
5.1229 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- If not found, return null value", true, 106805, 106839, 0);
5.1230 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 106843, 106878, 0);
5.1231 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 22, PlsqlBlockType.COMMENT, "-- Prompt fetching routines, mainly used for localization", true, 106900, 107113, 0);
5.1232 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 23, PlsqlBlockType.FUNCTION_IMPL, "Get_View_Prompt_", true, 107115, 107467, 1);
5.1233 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_prompt", true, 107226, 107345, 0);
5.1234 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 24, PlsqlBlockType.FUNCTION_IMPL, "Get_Lu_Prompt_", true, 107469, 107936, 3);
5.1235 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(24).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_prompt", true, 107589, 107697, 0);
5.1236 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(24).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Check that inparameters make sense before proceeding.", true, 107707, 107763, 0);
5.1237 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(24).getChildBlocks(), 2, PlsqlBlockType.IF, "IF lu_name_ IS NULL", true, 107767, 107821, 0);
5.1238 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 25, PlsqlBlockType.FUNCTION_IMPL, "Get_Item_Prompt_", true, 107938, 108579, 2);
5.1239 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_prompt", true, 108187, 108373, 0);
5.1240 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (view_ IS NULL)", true, 108383, 108463, 0);
5.1241 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 26, PlsqlBlockType.COMMENT, "-- Property fetching routines for run", true, 108581, 108795, 0);
5.1242 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 27, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Keys_", true, 108797, 110903, 7);
5.1243 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- To check that the suggested base view actually contain an objid...", true, 109080, 109149, 0);
5.1244 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "find_objid", true, 109153, 109383, 0);
5.1245 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_keys", true, 109388, 109624, 0);
5.1246 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Fetch the view name from LU", true, 109755, 109796, 0);
5.1247 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Verify that this view contains an objid", true, 109837, 109879, 0);
5.1248 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 5, PlsqlBlockType.IF, "IF find_objid%FOUND", true, 109953, 110832, 3);
5.1249 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- View found, fetch the keys!", true, 110008, 110038, 0);
5.1250 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "keyrec IN get_keys(view_)", true, 110045, 110167, 0);
5.1251 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (objid_ IS NOT NULL)", true, 110206, 110832, 2);
5.1252 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Fetch instance key information by using dynamic SQL", true, 110244, 110298, 0);
5.1253 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.BEGIN_END, "", true, 110308, 110818, 1);
5.1254 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe utgulk 20060105", true, 110622, 110656, 0);
5.1255 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSE", true, 110836, 110875, 0);
5.1256 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 28, PlsqlBlockType.COMMENT, "-- Could not completely rely on cached information, since table information is not extracted to the cache", true, 110905, 111010, 0);
5.1257 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 29, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Tables_", true, 111011, 112151, 4);
5.1258 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(29).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "view_tables", true, 111169, 111809, 0);
5.1259 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(29).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Check that inparameters make sense before proceeding.", true, 111819, 111875, 0);
5.1260 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(29).getChildBlocks(), 2, PlsqlBlockType.IF, "IF lu_name_ IS NULL", true, 111879, 111928, 0);
5.1261 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(29).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "t IN view_tables", true, 112023, 112121, 0);
5.1262 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 30, PlsqlBlockType.COMMENT, "-- Introduced new method and implemented to use dictionary cache.", true, 112153, 112218, 0);
5.1263 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 31, PlsqlBlockType.PROCEDURE_IMPL, "Enum_Modules_", true, 112219, 112520, 2);
5.1264 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(31).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "modules", true, 112282, 112383, 0);
5.1265 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(31).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "module IN modules", true, 112393, 112501, 0);
5.1266 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 32, PlsqlBlockType.PROCEDURE_IMPL, "Enum_Module_Names_", true, 112522, 113189, 2);
5.1267 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(32).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "modules", true, 112687, 112775, 0);
5.1268 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(32).getChildBlocks(), 1, PlsqlBlockType.IF, "IF module_array_.count > 0", true, 112884, 113165, 1);
5.1269 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(32).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(module_array_.first, 0)..Nvl(module_array_.last, -1)", true, 112922, 113154, 0);
5.1270 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 33, PlsqlBlockType.COMMENT, "-- Modified implementation to use dictionary cache. Designtime version moved to Design_SYS", true, 113191, 113281, 0);
5.1271 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 34, PlsqlBlockType.PROCEDURE_IMPL, "Enum_Module_All_Logical_Units_", true, 113282, 113875, 2);
5.1272 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(34).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "units", true, 113413, 113567, 0);
5.1273 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(34).getChildBlocks(), 1, PlsqlBlockType.IF, "IF lu_array_.count > 0", true, 113653, 113839, 1);
5.1274 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(34).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(lu_array_.first, 0)..Nvl(lu_array_.last, -1)", true, 113687, 113828, 0);
5.1275 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 35, PlsqlBlockType.COMMENT, "-- Modified implementation to use dictionary cache. Designtime version moved to Design_SYS", true, 113877, 113967, 0);
5.1276 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 36, PlsqlBlockType.PROCEDURE_IMPL, "Enum_Module_Logical_Units_", true, 113968, 114545, 2);
5.1277 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(36).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "units", true, 114095, 114241, 0);
5.1278 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(36).getChildBlocks(), 1, PlsqlBlockType.IF, "IF lu_array_.count > 0", true, 114327, 114513, 1);
5.1279 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(36).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(lu_array_.first, 0)..Nvl(lu_array_.last, -1)", true, 114361, 114502, 0);
5.1280 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 37, PlsqlBlockType.COMMENT, "-- Modified implementation using dictionary cache.", true, 114547, 114597, 0);
5.1281 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 38, PlsqlBlockType.PROCEDURE_IMPL, "Enum_Module_System_Services_", true, 114598, 114987, 2);
5.1282 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(38).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "units", true, 114700, 114846, 0);
5.1283 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(38).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "unit IN units", true, 114856, 114953, 0);
5.1284 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 39, PlsqlBlockType.COMMENT, "-- Runtime performance refreshment routines", true, 114989, 115202, 0);
5.1285 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 40, PlsqlBlockType.PROCEDURE_IMPL, "Activate_Language_Refresh_", true, 115203, 115521, 0);
5.1286 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 41, PlsqlBlockType.PROCEDURE_IMPL, "Rebuild_Dictionary_Storage_", true, 115523, 115781, 0);
5.1287 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 42, PlsqlBlockType.PROCEDURE_IMPL, "Rebuild_Dictionary_Storage_", true, 115783, 116056, 0);
5.1288 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 43, PlsqlBlockType.PROCEDURE_IMPL, "Check_Dictionary_Storage_", true, 116058, 117150, 4);
5.1289 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(43).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_last_update", true, 116181, 116266, 0);
5.1290 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(43).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_objects", true, 116271, 116631, 0);
5.1291 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(43).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (last_update_ IS NULL)", true, 116710, 116797, 0);
5.1292 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(43).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 116801, 117093, 2);
5.1293 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(43).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_objects%NOTFOUND)", true, 116887, 116975, 0);
5.1294 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(43).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 116982, 117057, 0);
5.1295 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 44, PlsqlBlockType.COMMENT, "-- SERVICE SPECIFIC PUBLIC METHODS ", true, 117152, 117603, 0);
5.1296 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 45, PlsqlBlockType.FUNCTION_IMPL, "Get_Base_View", true, 117605, 117953, 1);
5.1297 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(45).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_view", true, 117708, 117844, 0);
5.1298 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 46, PlsqlBlockType.FUNCTION_IMPL, "Get_Component", true, 117955, 118883, 5);
5.1299 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(46).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_pkg_component", true, 118088, 118287, 0);
5.1300 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(46).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_view_component", true, 118292, 118486, 0);
5.1301 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(46).getChildBlocks(), 2, PlsqlBlockType.IF, "IF upper(object_type_) = 'PACKAGE'", true, 118496, 118643, 0);
5.1302 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(46).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF upper(object_type_) = 'VIEW'", true, 118647, 118797, 0);
5.1303 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(46).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 118801, 118842, 0);
5.1304 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 47, PlsqlBlockType.FUNCTION_IMPL, "Get_Logical_Unit", true, 118885, 119630, 5);
5.1305 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(47).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_pkg_lu", true, 119020, 119150, 0);
5.1306 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(47).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_view_lu", true, 119155, 119280, 0);
5.1307 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(47).getChildBlocks(), 2, PlsqlBlockType.IF, "IF upper(object_type_) = 'PACKAGE'", true, 119290, 119414, 0);
5.1308 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(47).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF upper(object_type_) = 'VIEW'", true, 119418, 119545, 0);
5.1309 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(47).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 119549, 119588, 0);
5.1310 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 48, PlsqlBlockType.FUNCTION_IMPL, "Get_Logical_Unit_Module", true, 119632, 119973, 1);
5.1311 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(48).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_module", true, 119739, 119843, 0);
5.1312 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 49, PlsqlBlockType.FUNCTION_IMPL, "Package_Is_Installed", true, 119975, 120584, 4);
5.1313 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(49).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_pkg", true, 120077, 120199, 0);
5.1314 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(49).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Reroute to Database_SYS during installation", true, 120209, 120255, 0);
5.1315 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(49).getChildBlocks(), 2, PlsqlBlockType.IF, "IF installation_", true, 120259, 120337, 0);
5.1316 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(49).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 120341, 120558, 2);
5.1317 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(49).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_pkg%FOUND)", true, 120406, 120475, 0);
5.1318 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(49).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 120482, 120547, 0);
5.1319 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 50, PlsqlBlockType.FUNCTION_IMPL, "Method_Is_Installed", true, 120586, 121303, 4);
5.1320 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(50).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_method", true, 120717, 120891, 0);
5.1321 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(50).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Reroute to Database_SYS during installation", true, 120901, 120947, 0);
5.1322 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(50).getChildBlocks(), 2, PlsqlBlockType.IF, "IF installation_", true, 120951, 121042, 0);
5.1323 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(50).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 121046, 121278, 2);
5.1324 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(50).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_method%FOUND)", true, 121117, 121192, 0);
5.1325 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(50).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 121199, 121267, 0);
5.1326 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 51, PlsqlBlockType.FUNCTION_IMPL, "View_Is_Installed", true, 121305, 121896, 4);
5.1327 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(51).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_view", true, 121401, 121515, 0);
5.1328 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(51).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Reroute to Database_SYS during installation", true, 121525, 121571, 0);
5.1329 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(51).getChildBlocks(), 2, PlsqlBlockType.IF, "IF installation_", true, 121575, 121647, 0);
5.1330 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(51).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 121651, 121873, 2);
5.1331 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(51).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_view%FOUND)", true, 121718, 121789, 0);
5.1332 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(51).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 121796, 121862, 0);
5.1333 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 52, PlsqlBlockType.FUNCTION_IMPL, "Logical_Unit_Is_Installed", true, 121898, 122514, 4);
5.1334 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(52).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_lu", true, 122009, 122105, 0);
5.1335 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(52).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Reroute to Database_SYS during installation", true, 122115, 122161, 0);
5.1336 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(52).getChildBlocks(), 2, PlsqlBlockType.IF, "IF installation_", true, 122165, 122267, 0);
5.1337 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(52).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 122271, 122483, 2);
5.1338 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(52).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_lu%FOUND)", true, 122334, 122401, 0);
5.1339 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(52).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 122408, 122472, 0);
5.1340 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 53, PlsqlBlockType.FUNCTION_IMPL, "Component_Is_Installed", true, 122516, 123054, 3);
5.1341 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(53).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_component", true, 122657, 122815, 0);
5.1342 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(53).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (get_component%FOUND)", true, 122885, 122960, 0);
5.1343 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(53).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 122964, 123026, 0);
5.1344 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 54, PlsqlBlockType.FUNCTION_IMPL, "Package_Is_Installed_Num", true, 123056, 123277, 2);
5.1345 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(54).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Package_Is_Installed(package_name_)", true, 123149, 123210, 0);
5.1346 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(54).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 123214, 123247, 0);
5.1347 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 55, PlsqlBlockType.FUNCTION_IMPL, "Method_Is_Installed_Num", true, 123279, 123541, 2);
5.1348 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(55).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Method_Is_Installed(package_name_, method_name_)", true, 123401, 123475, 0);
5.1349 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(55).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 123479, 123512, 0);
5.1350 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 56, PlsqlBlockType.FUNCTION_IMPL, "View_Is_Installed_Num", true, 123543, 123749, 2);
5.1351 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(56).getChildBlocks(), 0, PlsqlBlockType.IF, "IF View_Is_Installed(view_name_)", true, 123630, 123685, 0);
5.1352 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(56).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 123689, 123722, 0);
5.1353 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 57, PlsqlBlockType.FUNCTION_IMPL, "Logical_Unit_Is_Installed_Num", true, 123751, 123977, 2);
5.1354 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(57).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Logical_Unit_Is_Installed(lu_name_)", true, 123844, 123905, 0);
5.1355 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(57).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 123909, 123942, 0);
5.1356 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 58, PlsqlBlockType.FUNCTION_IMPL, "Component_Is_Installed_Num", true, 123979, 124250, 2);
5.1357 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(58).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Component_Is_Installed(component_, version_)", true, 124111, 124181, 0);
5.1358 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(58).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 124185, 124218, 0);
5.1359 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 59, PlsqlBlockType.FUNCTION_IMPL, "Get_No_Overloads", true, 124252, 125156, 3);
5.1360 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(59).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_no_overloads_", true, 124372, 124546, 0);
5.1361 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(59).getChildBlocks(), 1, PlsqlBlockType.IF, "IF package_name_ IS NULL OR method_name_ IS NULL", true, 124600, 124818, 1);
5.1362 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(59).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 124654, 124788, 0);
5.1363 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(59).getChildBlocks(), 2, PlsqlBlockType.IF, "IF get_no_overloads_%NOTFOUND", true, 124889, 125088, 1);
5.1364 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(59).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 124924, 125058, 0);
5.1365 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 60, PlsqlBlockType.FUNCTION_IMPL, "Get_No_Arguments", true, 125158, 126091, 3);
5.1366 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(60).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_no_args_", true, 125279, 125501, 0);
5.1367 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(60).getChildBlocks(), 1, PlsqlBlockType.IF, "IF package_name_ IS NULL OR method_name_ IS NULL", true, 125555, 125773, 1);
5.1368 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(60).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 125609, 125743, 0);
5.1369 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(60).getChildBlocks(), 2, PlsqlBlockType.IF, "IF get_no_args_%NOTFOUND", true, 125834, 126028, 1);
5.1370 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(60).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 125864, 125998, 0);
5.1371 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 61, PlsqlBlockType.FUNCTION_IMPL, "Get_Min_No_Arguments", true, 126093, 127120, 3);
5.1372 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(61).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_min_no_args_", true, 126221, 126510, 0);
5.1373 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(61).getChildBlocks(), 1, PlsqlBlockType.IF, "IF package_name_ IS NULL OR method_name_ IS NULL", true, 126564, 126782, 1);
5.1374 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(61).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 126618, 126752, 0);
5.1375 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(61).getChildBlocks(), 2, PlsqlBlockType.IF, "IF get_min_no_args_%NOTFOUND", true, 126851, 127049, 1);
5.1376 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(61).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 126885, 127019, 0);
5.1377 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 62, PlsqlBlockType.FUNCTION_IMPL, "Get_Max_No_Arguments", true, 127122, 128149, 3);
5.1378 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(62).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_max_no_args_", true, 127250, 127539, 0);
5.1379 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(62).getChildBlocks(), 1, PlsqlBlockType.IF, "IF package_name_ IS NULL OR method_name_ IS NULL", true, 127593, 127811, 1);
5.1380 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(62).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 127653, 127781, 0);
5.1381 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(62).getChildBlocks(), 2, PlsqlBlockType.IF, "IF get_max_no_args_%NOTFOUND", true, 127880, 128078, 1);
5.1382 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(62).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 127920, 128048, 0);
5.1383 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 63, PlsqlBlockType.FUNCTION_IMPL, "Get_Argument_Type", true, 128151, 129262, 4);
5.1384 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(63).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_arg_type_", true, 128324, 128536, 0);
5.1385 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(63).getChildBlocks(), 1, PlsqlBlockType.IF, "IF package_name_ IS NULL OR method_name_ IS NULL", true, 128632, 128850, 1);
5.1386 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(63).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 128692, 128820, 0);
5.1387 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(63).getChildBlocks(), 2, PlsqlBlockType.IF, "IF Get_No_Overloads(package_name_, method_name_) > 1", true, 128854, 128941, 0);
5.1388 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(63).getChildBlocks(), 3, PlsqlBlockType.IF, "IF get_arg_type_%NOTFOUND", true, 129003, 129198, 1);
5.1389 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(63).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 129040, 129168, 0);
5.1390 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 64, PlsqlBlockType.PROCEDURE_IMPL, "Set_Installation_Mode", true, 129264, 129493, 0);
5.1391 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 65, PlsqlBlockType.FUNCTION_IMPL, "Get_Installation_Mode", true, 129495, 129673, 0);
5.1392 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 66, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 129675, 130139, 0);
5.1393 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 67, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 130141, 130183, 0);
5.1394 - assertBlock(lstBlockFac, 3, PlsqlBlockType.COMMENT, "COMMENT...", false, 130405, 130482, 0);
5.1395 - } finally {
5.1396 - if (fileObject != null) {
5.1397 - fileObject.delete();
5.1398 - }
5.1399 - }
5.1400 - }
5.1401 + assertTrue(lstBlockFac.size() == 4);
5.1402 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Package: Dictionary_SYS", false, 0, 19335, 0);
5.1403 + assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 19440, 19673, 0);
5.1404 + assertBlock(lstBlockFac, 2, PlsqlBlockType.PACKAGE_BODY, "DICTIONARY_SYS", false, 19712, 130195, 68);
5.1405 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- SERVICE SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 20170, 20403, 0);
5.1406 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_DEF, "Check_Method_From_View___", true, 20405, 20525, 0);
5.1407 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- SERVICE SPECIFIC IMPLEMENTATION METHODS ", true, 20527, 20760, 0);
5.1408 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_IMPL, "Check_Method_From_View___", true, 20762, 21616, 1);
5.1409 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(index_ > 0)", true, 21227, 21568, 1);
5.1410 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Method_Is_Installed(package_name_, method_name_))", true, 21376, 21499, 0);
5.1411 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 4, PlsqlBlockType.FUNCTION_IMPL, "Rebuild_Dictionary_Storage___", true, 21618, 97424, 47);
5.1412 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_last_update", true, 23133, 23218, 0);
5.1413 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- LAST_DDL_TIME:", true, 23223, 24026, 0);
5.1414 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_pkgs_to_update", true, 24030, 24353, 0);
5.1415 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Views to update (last_ddl_time has changed since last update)", true, 24398, 24462, 0);
5.1416 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 4, PlsqlBlockType.CURSOR, "get_views_to_update", true, 24466, 24674, 0);
5.1417 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- All packages (used when doing a full refresh for performance reasons)", true, 24679, 24751, 0);
5.1418 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 6, PlsqlBlockType.CURSOR, "get_all_pkgs", true, 24755, 24964, 0);
5.1419 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- All view (used when doing a full refresh for performance reasons)", true, 25009, 25077, 0);
5.1420 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 8, PlsqlBlockType.CURSOR, "get_all_views", true, 25081, 25210, 0);
5.1421 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "-- Package information", true, 25215, 25237, 0);
5.1422 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 10, PlsqlBlockType.CURSOR, "get_package_info", true, 25241, 25892, 0);
5.1423 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "-- View information", true, 25897, 25916, 0);
5.1424 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 12, PlsqlBlockType.CURSOR, "get_view_comments", true, 25920, 26094, 0);
5.1425 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Write_Error_Text___", true, 26099, 26631, 2);
5.1426 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF write_clob_", true, 26281, 26443, 2);
5.1427 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF new_line_", true, 26310, 26375, 0);
5.1428 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 26385, 26443, 0);
5.1429 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 26450, 26603, 2);
5.1430 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(13).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF new_line_", true, 26464, 26522, 0);
5.1431 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(13).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 26532, 26589, 0);
5.1432 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_IMPL, "Get_Next_Pkg_Index___", true, 26637, 27027, 1);
5.1433 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "next_index", true, 26753, 26896, 0);
5.1434 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Get_Next_View_Index___", true, 27032, 27421, 1);
5.1435 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "next_index", true, 27151, 27288, 0);
5.1436 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Handle_Possible_State_Pkg___", true, 27426, 27891, 1);
5.1437 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.IF, "IF method_name_ = 'Finite_State_Events__'", true, 27552, 27854, 3);
5.1438 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Set global variable", true, 27608, 27630, 0);
5.1439 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Update main dictionary information", true, 27674, 27711, 0);
5.1440 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_package_tab", true, 27721, 27839, 0);
5.1441 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 17, PlsqlBlockType.PROCEDURE_IMPL, "Fill_List_Array___", true, 27896, 31673, 3);
5.1442 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Check for incorrectness in number of values and remove redundant information if it occurs", true, 28373, 28465, 0);
5.1443 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks(), 1, PlsqlBlockType.IF, "IF db_values_.COUNT != client_values_.COUNT", true, 28472, 31268, 4);
5.1444 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF db_count_ > client_count_", true, 28618, 29707, 2);
5.1445 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Missing client values", true, 28664, 28688, 0);
5.1446 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN Nvl(db_values_.FIRST, 0)..Nvl(db_values_.LAST, -1)", true, 28851, 29707, 3);
5.1447 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Try to find more values by calling standard interfaces for domains,", true, 28931, 29072, 0);
5.1448 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF domain_", true, 29088, 29471, 1);
5.1449 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 29122, 29471, 1);
5.1450 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe utgulk 20060105", true, 29149, 29183, 0);
5.1451 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 29487, 29684, 1);
5.1452 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Can't find the values for other types than domains...", true, 29510, 29566, 0);
5.1453 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 29717, 30787, 2);
5.1454 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Missing db values", true, 29734, 29754, 0);
5.1455 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN Nvl(client_values_.FIRST,0)..Nvl(client_values_.LAST,-1)", true, 29917, 30770, 3);
5.1456 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Try to find more values by calling standard interfaces for domains,", true, 30003, 30144, 0);
5.1457 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF domain_", true, 30160, 30539, 1);
5.1458 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 30194, 30539, 1);
5.1459 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe utgulk 20060105", true, 30221, 30255, 0);
5.1460 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 30555, 30748, 1);
5.1461 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Can't find the values for other types than domains...", true, 30578, 30634, 0);
5.1462 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Log information if values could not be determined...", true, 30797, 30852, 0);
5.1463 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF error_", true, 30862, 31254, 0);
5.1464 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(17).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "i IN Nvl(db_values_.FIRST,0)..Nvl(db_values_.LAST,-1)", true, 31275, 31646, 0);
5.1465 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Rebuild_State_Machine___", true, 31678, 37787, 10);
5.1466 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "state_mach", true, 31795, 32633, 0);
5.1467 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "Get_Lu_Name_", true, 33226, 33747, 1);
5.1468 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT lu_name INTO tmp_", true, 33384, 33504, 0);
5.1469 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_IMPL, "trim_str", true, 33758, 33900, 0);
5.1470 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 3, PlsqlBlockType.IF, "IF full_mode_", true, 33918, 33974, 0);
5.1471 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 33981, 34100, 1);
5.1472 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT NVL(MAX(updated),SYSDATE-1000) INTO last_update_ FROM dictionary_sys_state_mach_tab", true, 33995, 34085, 0);
5.1473 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 5, PlsqlBlockType.WHILE_LOOP, "i < state_machine.LAST", true, 34236, 35499, 2);
5.1474 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF state_machine(i-1).type ='START' AND state_machine(i).type = 'EVENT'", true, 34280, 35432, 1);
5.1475 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "in_state_transistion AND i+1 <= state_machine.LAST", true, 34470, 35432, 3);
5.1476 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF state_machine(i).type='EVENT' AND\n state_machine(i+1).type='END' AND\n trim_str(state_machine(i).what) IS NOT NULL", true, 34548, 35184, 0);
5.1477 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF state_machine(i).type!='START' AND i < state_machine.LAST", true, 35200, 35294, 0);
5.1478 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 35310, 35410, 0);
5.1479 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 35442, 35483, 0);
5.1480 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- This line only used when debugging", true, 35500, 35747, 0);
5.1481 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 35773, 35807, 0);
5.1482 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 8, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_state_mach_tab VALUES model(k)", true, 36346, 36403, 0);
5.1483 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks(), 9, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 36679, 37613, 1);
5.1484 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(18).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Write_Error_Text___ (error_text_, ' Position number '||to_char(position_));", true, 36776, 36873, 0);
5.1485 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 19, PlsqlBlockType.PROCEDURE_IMPL, "Rebuild_All_State_Event___", true, 37793, 44384, 9);
5.1486 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_events", true, 37912, 38424, 0);
5.1487 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "Get_Lu_Name_", true, 39041, 39523, 1);
5.1488 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT lu_name INTO tmp_", true, 39184, 39298, 0);
5.1489 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 2, PlsqlBlockType.IF, "IF full_mode_", true, 39541, 39597, 0);
5.1490 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 39604, 39723, 1);
5.1491 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT NVL(MAX(updated),SYSDATE-1000) INTO last_update_ FROM dictionary_sys_state_mach_tab", true, 39618, 39708, 0);
5.1492 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 4, PlsqlBlockType.IF, "IF SQL%NOTFOUND", true, 39810, 39947, 0);
5.1493 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 39954, 40399, 1);
5.1494 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 39968, 40385, 1);
5.1495 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 39986, 40020, 0);
5.1496 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 6, PlsqlBlockType.FOR_LOOP, "i IN Nvl(state_events_.FIRST,0)..Nvl(state_events_.LAST,-1)", true, 40756, 42282, 1);
5.1497 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.LOOP, "", true, 40908, 42266, 2);
5.1498 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF event_idx_!=1", true, 41108, 41441, 1);
5.1499 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j IN Nvl(event_array_.FIRST,0)..Nvl(event_array_.LAST,-1)", true, 41184, 41421, 1);
5.1500 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF event_array_(j)=event_", true, 41269, 41396, 0);
5.1501 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF NOT dup_event_val_", true, 41454, 42217, 1);
5.1502 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ELSE", true, 41934, 42197, 0);
5.1503 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 7, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_state_event_tab VALUES state_event_values_(j)", true, 42773, 42845, 0);
5.1504 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks(), 8, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 43104, 43892, 1);
5.1505 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(19).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Write_Error_Text___ (error_text_, ' Position number '||to_char(position_));", true, 43198, 43292, 0);
5.1506 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Rebuild_State_Transitions___", true, 44391, 50214, 9);
5.1507 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_state_events_", true, 44784, 45087, 0);
5.1508 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "Get_Allowed_State_Trans", true, 45370, 46212, 1);
5.1509 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe utgulk 20060105", true, 45784, 45818, 0);
5.1510 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 2, PlsqlBlockType.IF, "IF full_mode_", true, 46230, 46286, 0);
5.1511 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 46293, 46569, 1);
5.1512 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT NVL(MAX(to_date(timestamp, 'RRRR-MM-DD:HH24:MI:SS')),SYSDATE-1000) INTO last_update_", true, 46307, 46554, 0);
5.1513 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 4, PlsqlBlockType.IF, "IF SQL%NOTFOUND", true, 46668, 46817, 0);
5.1514 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 46824, 47269, 1);
5.1515 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 46838, 47255, 1);
5.1516 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 46856, 46890, 0);
5.1517 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 6, PlsqlBlockType.FOR_LOOP, "i IN Nvl(state_list_.FIRST,0)..Nvl(state_list_.LAST,-1)", true, 47326, 48183, 1);
5.1518 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.LOOP, "", true, 47522, 48167, 0);
5.1519 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 7, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_state_trans_tab VALUES state_trans_values_(j)", true, 48677, 48749, 0);
5.1520 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks(), 8, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 49013, 49941, 1);
5.1521 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(20).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Write_Error_Text___ (error_text_, ' Position number '||to_char(position_));", true, 49107, 49201, 0);
5.1522 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Tokenize_Lists___", true, 50219, 51194, 1);
5.1523 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "end_pos_ < len_ AND end_pos_ != 0", true, 50701, 51168, 0);
5.1524 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 22, PlsqlBlockType.PROCEDURE_IMPL, "Insert_Package_Information___", true, 51199, 54616, 9);
5.1525 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_tab", true, 51472, 51620, 0);
5.1526 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 1, PlsqlBlockType.IF, "IF length(lu_name_) > 25", true, 51631, 51839, 0);
5.1527 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 2, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_tab", true, 51904, 52085, 0);
5.1528 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Insert and if already existing then update.", true, 52482, 52592, 0);
5.1529 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 4, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_package_tab", true, 52672, 52880, 0);
5.1530 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Fix problems with LU that has more than one _API package (e.g. for state handling).", true, 52891, 53002, 0);
5.1531 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 6, PlsqlBlockType.STATEMENT, "UPDATE Dictionary_Sys_Package_Tab", true, 53012, 53697, 0);
5.1532 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "COMMENT...", true, 53709, 53711, 0);
5.1533 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(22).getChildBlocks(), 8, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_package_tab", true, 53776, 53939, 0);
5.1534 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Insert_View_Information___", true, 54621, 57785, 12);
5.1535 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find the base view according to naming conventions...", true, 54930, 55061, 0);
5.1536 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 1, PlsqlBlockType.IF, "IF view_name_ = Clientnametodbname_(lu_name_)", true, 55068, 55185, 0);
5.1537 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 55192, 55269, 0);
5.1538 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Insert into dictionary_sys_tab. It is likely this entry already exist (from package information),", true, 55276, 55448, 0);
5.1539 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 4, PlsqlBlockType.IF, "IF base_view_", true, 55455, 55845, 2);
5.1540 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_tab", true, 55483, 55622, 0);
5.1541 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "IF SQL%NOTFOUND", true, 55633, 55845, 1);
5.1542 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_tab", true, 55666, 55827, 0);
5.1543 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 55852, 56179, 2);
5.1544 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_tab", true, 55866, 55965, 0);
5.1545 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "IF SQL%NOTFOUND", true, 55976, 56165, 1);
5.1546 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks().get(5).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_tab", true, 56009, 56147, 0);
5.1547 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- Insert into dictionary_sys_view_tab", true, 56186, 56341, 0);
5.1548 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 7, PlsqlBlockType.IF, "IF base_view_", true, 56419, 56468, 0);
5.1549 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF substr(view_name_, -4) = '_REP'", true, 56478, 56551, 0);
5.1550 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSE", true, 56561, 56613, 0);
5.1551 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 10, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_view_tab", true, 56623, 56838, 0);
5.1552 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(23).getChildBlocks(), 11, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_view_tab", true, 56904, 57146, 0);
5.1553 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 24, PlsqlBlockType.PROCEDURE_IMPL, "Refresh_View_Columns___", true, 57790, 64140, 7);
5.1554 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_view_columns", true, 57896, 58224, 0);
5.1555 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_new_view_columns", true, 58232, 58678, 0);
5.1556 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Fetch view column information and delete old information", true, 59249, 59326, 0);
5.1557 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 3, PlsqlBlockType.IF, "IF all_views_", true, 59333, 59640, 1);
5.1558 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Remove all old information", true, 59491, 59564, 0);
5.1559 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 59647, 60151, 2);
5.1560 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Remove old information for all of the methods that is being updated", true, 59803, 59873, 0);
5.1561 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_view_column_tab c", true, 59883, 60136, 0);
5.1562 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Process all of the view column information", true, 60159, 60204, 0);
5.1563 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks(), 6, PlsqlBlockType.IF, "IF view_columns_.COUNT > 0", true, 60211, 64108, 3);
5.1564 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(view_columns_.FIRST,0)..Nvl(view_columns_.LAST,-1)", true, 60252, 62822, 3);
5.1565 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find the lu name for the view if view has changed", true, 60333, 60385, 0);
5.1566 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (prev_view_ <> view_columns_(i).view_name)", true, 60398, 60606, 0);
5.1567 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF lu_name_ IS NOT NULL", true, 60619, 62803, 1);
5.1568 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 60663, 62754, 0);
5.1569 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Insert all the values into dictionary_sys_view_column_tab", true, 62833, 62893, 0);
5.1570 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks(), 2, PlsqlBlockType.BEGIN_END, "", true, 62903, 64094, 2);
5.1571 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_view_column_tab VALUES complete_columns_(j)", true, 63027, 63097, 0);
5.1572 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(24).getChildBlocks().get(6).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 63371, 64080, 0);
5.1573 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 25, PlsqlBlockType.COMMENT, "-- Handles both domain and state information, behaves different depending on info_type", true, 64145, 64231, 0);
5.1574 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 26, PlsqlBlockType.PROCEDURE_IMPL, "Refresh_Domain_State_Info___", true, 64235, 70207, 11);
5.1575 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Domain information", true, 64388, 64409, 0);
5.1576 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_domain_info", true, 64416, 65703, 0);
5.1577 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- State information", true, 65717, 65737, 0);
5.1578 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_state_info", true, 65744, 66259, 0);
5.1579 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- AND line BETWEEN 2 AND 11;", true, 66260, 66300, 0);
5.1580 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Delete old values (they can only exist if this is not a full refresh)", true, 66671, 66743, 0);
5.1581 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 6, PlsqlBlockType.IF, "IF NOT refresh_all_", true, 66750, 67129, 2);
5.1582 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF refresh_domain_", true, 66784, 66946, 1);
5.1583 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_domain_tab", true, 66820, 66945, 0);
5.1584 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 66956, 67115, 1);
5.1585 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(6).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_state_tab", true, 66973, 67097, 0);
5.1586 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- Clear variables", true, 67137, 67155, 0);
5.1587 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 8, PlsqlBlockType.IF, "IF refresh_domain_", true, 67248, 67904, 2);
5.1588 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN Nvl(list_.FIRST,0)..Nvl(list_.LAST,-1)", true, 67434, 67572, 0);
5.1589 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "j_ IN Nvl(list_.FIRST,0)..Nvl(list_.LAST,-1)", true, 67762, 67904, 0);
5.1590 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSE", true, 67911, 68423, 2);
5.1591 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "list IN get_state_info(package_name_)", true, 67925, 68323, 3);
5.1592 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Break down the list into single values in an array", true, 67984, 68037, 0);
5.1593 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF list.list_type = 'db_state_list_'", true, 68050, 68155, 0);
5.1594 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF list.list_type = 'client_state_list_'", true, 68168, 68304, 0);
5.1595 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Get state events", true, 68333, 68408, 0);
5.1596 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks(), 10, PlsqlBlockType.IF, "IF db_values_.count > 0", true, 68431, 70170, 3);
5.1597 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Fill the result array with the rest of the necessary information", true, 68469, 68536, 0);
5.1598 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Insert all of the values into dictionary_sys_domain_tab", true, 68659, 68717, 0);
5.1599 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks(), 2, PlsqlBlockType.BEGIN_END, "", true, 68727, 70156, 3);
5.1600 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF refresh_domain_", true, 68745, 68956, 1);
5.1601 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_domain_tab VALUES complete_values_(j)", true, 68891, 68955, 0);
5.1602 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 68969, 69180, 1);
5.1603 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_state_tab VALUES complete_values_(j)", true, 69096, 69159, 0);
5.1604 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 69490, 70142, 1);
5.1605 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(26).getChildBlocks().get(10).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Write_Error_Text___ (error_text_, ' Position number '||to_char(position_));", true, 69591, 69688, 0);
5.1606 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 27, PlsqlBlockType.PROCEDURE_IMPL, "Refresh_Method_Arguments___", true, 70212, 75509, 7);
5.1607 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_met_arguments", true, 70326, 70705, 0);
5.1608 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_new_met_arguments", true, 70713, 71255, 0);
5.1609 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Fetch method argument information and delete old information", true, 71784, 71865, 0);
5.1610 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 3, PlsqlBlockType.IF, "IF all_methods_", true, 71872, 72181, 1);
5.1611 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Remove all old information", true, 72035, 72108, 0);
5.1612 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 72188, 72701, 2);
5.1613 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Remove old information for all of the methods that is being updated", true, 72347, 72417, 0);
5.1614 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_argument_tab a", true, 72427, 72686, 0);
5.1615 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Process method argument information", true, 72708, 72764, 0);
5.1616 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks(), 6, PlsqlBlockType.IF, "IF met_arguments.COUNT > 0", true, 72771, 75473, 3);
5.1617 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(met_arguments.FIRST,0)..Nvl(met_arguments.LAST,-1)", true, 72812, 74065, 3);
5.1618 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find the lu name for the package if package has changed", true, 72893, 72951, 0);
5.1619 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (prev_pkg_ <> met_arguments(i).package_name)", true, 72964, 73182, 0);
5.1620 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF lu_name_ IS NOT NULL", true, 73195, 74046, 1);
5.1621 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Insert the values into the complete array", true, 73239, 73283, 0);
5.1622 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Insert all the values into dictionary_sys_argument_tab", true, 74076, 74133, 0);
5.1623 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks(), 2, PlsqlBlockType.BEGIN_END, "", true, 74143, 75458, 2);
5.1624 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_argument_tab VALUES all_arguments_(j)", true, 74261, 74325, 0);
5.1625 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(27).getChildBlocks().get(6).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 74603, 75444, 0);
5.1626 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 28, PlsqlBlockType.PROCEDURE_IMPL, "Refresh_Methods___", true, 75514, 84605, 17);
5.1627 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_methods", true, 75619, 75913, 0);
5.1628 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_pragma_methods", true, 75921, 76333, 0);
5.1629 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_new_methods", true, 76341, 76773, 0);
5.1630 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_new_pragma_methods", true, 76781, 77323, 0);
5.1631 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Fetch method information and delete old information", true, 77830, 77902, 0);
5.1632 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 5, PlsqlBlockType.IF, "IF all_methods_", true, 77909, 78205, 1);
5.1633 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Remove all old information for methods", true, 78049, 78134, 0);
5.1634 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSE", true, 78212, 78700, 2);
5.1635 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Remove old information for all of the methods that is being updated", true, 78348, 78418, 0);
5.1636 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_method_tab m", true, 78428, 78685, 0);
5.1637 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- Process method information", true, 78707, 78754, 0);
5.1638 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 8, PlsqlBlockType.IF, "IF methods_.COUNT > 0", true, 78761, 80891, 3);
5.1639 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(methods_.FIRST,0)..Nvl(methods_.LAST,-1)", true, 78797, 79614, 2);
5.1640 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (prev_pkg_ <> methods_(i).pkg)", true, 78868, 79044, 0);
5.1641 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF lu_name_ IS NOT NULL", true, 79057, 79595, 1);
5.1642 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Insert the values into the complete array", true, 79187, 79231, 0);
5.1643 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Insert all the values into dictionary_sys_method_tab", true, 79625, 79680, 0);
5.1644 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.BEGIN_END, "", true, 79690, 80877, 2);
5.1645 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_method_tab VALUES complete_methods_(j)", true, 79814, 79879, 0);
5.1646 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN 1..error_count_", true, 80148, 80863, 0);
5.1647 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "-- Clear arrays", true, 80899, 80914, 0);
5.1648 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "-- Fetch pragma method information", true, 80977, 81029, 0);
5.1649 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 11, PlsqlBlockType.IF, "IF all_methods_", true, 81036, 81187, 0);
5.1650 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSE", true, 81194, 81355, 0);
5.1651 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "-- Process pragma method information", true, 81362, 81416, 0);
5.1652 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 14, PlsqlBlockType.IF, "IF methods_.COUNT > 0", true, 81423, 84036, 2);
5.1653 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Initiate sub type", true, 81459, 81479, 0);
5.1654 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN Nvl(methods_.FIRST,0)..Nvl(methods_.LAST,-1)", true, 81523, 84022, 3);
5.1655 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find the name of the LU for every new package", true, 81594, 81642, 0);
5.1656 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (prev_pkg_ <> methods_(i).pkg)", true, 81655, 81831, 0);
5.1657 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF lu_name_ IS NOT NULL", true, 81844, 84003, 5);
5.1658 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Update the record in dictionary_sys_method_tab", true, 81974, 82023, 0);
5.1659 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.BEGIN_END, "", true, 82039, 83287, 2);
5.1660 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_method_tab", true, 82063, 82338, 0);
5.1661 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF SQL%NOTFOUND", true, 82358, 82653, 1);
5.1662 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO dictionary_sys_method_tab", true, 82400, 82626, 0);
5.1663 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Handle if current package contains a state machine (identified by a specific PRAGMA method)", true, 83303, 83465, 0);
5.1664 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Fetch and insert state information if current package contains a state machine", true, 83545, 83626, 0);
5.1665 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.IF, "IF pkg_lu_sub_type_ = 'S'", true, 83642, 83983, 2);
5.1666 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (refresh_mode_ != 'LIGHT')", true, 83691, 83838, 0);
5.1667 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Reset the sub_type to avoid multiple unnecessary searches", true, 83857, 83917, 0);
5.1668 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 15, PlsqlBlockType.COMMENT, "-- Update special handled methods to PRAGMA (Read", true, 84043, 84124, 0);
5.1669 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(28).getChildBlocks(), 16, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_method_tab t", true, 84131, 84577, 0);
5.1670 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 29, PlsqlBlockType.COMMENT, "-- Validate refresh mode before proceeding", true, 84965, 85019, 0);
5.1671 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 30, PlsqlBlockType.IF, "IF refresh_mode_ IS NULL OR refresh_mode_ NOT IN ('FULL', 'PARTIAL', 'VIEWS', 'PACKAGES', 'LIGHT')", true, 85023, 85288, 0);
5.1672 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 31, PlsqlBlockType.COMMENT, "-- If a refresh is not necessary and a full refresh is not ordered, abort immediately...", true, 85292, 85601, 0);
5.1673 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 32, PlsqlBlockType.IF, "IF NOT refresh_all_", true, 85605, 86131, 4);
5.1674 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(32).getChildBlocks(), 0, PlsqlBlockType.IF, "IF rebuild_needed_ = 0", true, 85686, 85844, 0);
5.1675 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(32).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Find last update time", true, 85852, 85876, 0);
5.1676 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(32).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Set full refresh mode if no dictionary data exist", true, 85988, 86040, 0);
5.1677 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(32).getChildBlocks(), 3, PlsqlBlockType.IF, "IF last_update_ IS NULL", true, 86047, 86120, 0);
5.1678 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 33, PlsqlBlockType.IF, "IF refresh_all_", true, 86136, 86483, 1);
5.1679 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(33).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Fetch the objects to update", true, 86242, 86272, 0);
5.1680 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 34, PlsqlBlockType.IF, "ELSE", true, 86487, 87516, 7);
5.1681 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Spool information about what \"mode\" is used", true, 86498, 86544, 0);
5.1682 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 1, PlsqlBlockType.IF, "IF refresh_views_ AND refresh_pkgs_", true, 86551, 86675, 0);
5.1683 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF refresh_pkgs_", true, 86682, 86808, 0);
5.1684 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF refresh_views_", true, 86815, 86953, 0);
5.1685 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Fetch the objects to update", true, 87097, 87127, 0);
5.1686 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 5, PlsqlBlockType.IF, "IF refresh_pkgs_", true, 87134, 87315, 0);
5.1687 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(34).getChildBlocks(), 6, PlsqlBlockType.IF, "IF refresh_views_", true, 87323, 87505, 0);
5.1688 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 35, PlsqlBlockType.COMMENT, "-- Refresh package and method information", true, 87520, 87573, 0);
5.1689 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 36, PlsqlBlockType.IF, "IF packages_.COUNT > 0", true, 87911, 91240, 7);
5.1690 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Save start date for package refresh", true, 87945, 87983, 0);
5.1691 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Remove old information if full refresh", true, 88020, 88061, 0);
5.1692 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 2, PlsqlBlockType.IF, "IF refresh_all_", true, 88068, 88675, 5);
5.1693 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 88098, 88132, 0);
5.1694 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 88206, 88240, 0);
5.1695 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 88322, 88356, 0);
5.1696 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 88437, 88471, 0);
5.1697 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 88551, 88585, 0);
5.1698 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "i IN Nvl(packages_.FIRST,0)..Nvl(packages_.LAST,-1)", true, 88683, 90462, 3);
5.1699 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "pkg_info IN get_package_info(packages_(i))", true, 88892, 89394, 4);
5.1700 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Investigate module, lu name and sub type of the lu", true, 88956, 89009, 0);
5.1701 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (pkg_info.gtype = 'M')", true, 89022, 89113, 0);
5.1702 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF pkg_info.gtype IN ('L', 'S')", true, 89126, 89260, 0);
5.1703 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF pkg_info.gtype = 'D'", true, 89273, 89375, 0);
5.1704 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF pkg_lu_name_ IS NOT NULL AND pkg_module_ IS NOT NULL", true, 89404, 90225, 3);
5.1705 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Insert the information into the dictionary", true, 89477, 89522, 0);
5.1706 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Refresh domain or state information depending on sub type of the LU (stored in global variable)", true, 89820, 89918, 0);
5.1707 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF pkg_lu_sub_type_ = 'D'", true, 89931, 90225, 2);
5.1708 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Refresh domain information if this is identified as an IID package", true, 89977, 90046, 0);
5.1709 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (refresh_mode_ != 'LIGHT')", true, 90062, 90205, 0);
5.1710 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 90235, 90446, 0);
5.1711 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Refresh methods once all packages are updated", true, 90469, 90535, 0);
5.1712 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Refresh arguments for methods once all methods are updated", true, 90595, 90674, 0);
5.1713 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(36).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 90738, 91229, 0);
5.1714 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 37, PlsqlBlockType.COMMENT, "-- Refresh view information", true, 91244, 91283, 0);
5.1715 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 38, PlsqlBlockType.IF, "IF views_.COUNT > 0", true, 91615, 93635, 6);
5.1716 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Save start date for view refresh", true, 91646, 91681, 0);
5.1717 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Remove old information if full refresh", true, 91718, 91759, 0);
5.1718 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks(), 2, PlsqlBlockType.IF, "IF refresh_all_", true, 91766, 91899, 1);
5.1719 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe pemase 20060215", true, 91796, 91830, 0);
5.1720 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 91906, 92078, 1);
5.1721 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_view_tab", true, 91985, 92063, 0);
5.1722 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "i IN Nvl(views_.FIRST,0)..Nvl(views_.LAST,-1)", true, 92086, 93491, 4);
5.1723 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF view_module_ = 'IGNORE'", true, 92448, 92535, 0);
5.1724 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "IF view_lu_name_ IS NULL", true, 92545, 92823, 1);
5.1725 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF view_lu_name_ IS NULL", true, 92668, 92806, 0);
5.1726 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.IF, "IF view_module_ IS NOT NULL AND view_lu_name_ IS NOT NULL", true, 92915, 93265, 1);
5.1727 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF view_module_ != 'IGNORE'", true, 92990, 93265, 0);
5.1728 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks().get(4).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 93275, 93475, 0);
5.1729 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(38).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Refresh view columns once all view are updated", true, 93498, 93565, 0);
5.1730 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 39, PlsqlBlockType.IF, "IF NOT refresh_all_", true, 93640, 95104, 6);
5.1731 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(39).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Delete information for objects no longer in the database", true, 93671, 93748, 0);
5.1732 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(39).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_package_tab p", true, 93755, 94000, 0);
5.1733 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(39).getChildBlocks(), 2, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_method_tab m", true, 94009, 94211, 0);
5.1734 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(39).getChildBlocks(), 3, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_view_tab v", true, 94220, 94456, 0);
5.1735 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(39).getChildBlocks(), 4, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_view_column_tab c", true, 94465, 94716, 0);
5.1736 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks().get(39).getChildBlocks(), 5, PlsqlBlockType.STATEMENT, "DELETE FROM dictionary_sys_tab l", true, 94725, 95092, 0);
5.1737 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 40, PlsqlBlockType.COMMENT, "-- Attempt 1:", true, 95109, 95280, 0);
5.1738 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 41, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_view_tab", true, 95284, 95803, 0);
5.1739 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 42, PlsqlBlockType.COMMENT, "-- Attempt 2:", true, 95809, 95983, 0);
5.1740 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 43, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_view_tab", true, 95987, 96219, 0);
5.1741 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 44, PlsqlBlockType.COMMENT, "-- Set prompts for all Logical Units that didn't have a clearly defined view with a prompt.", true, 96224, 96379, 0);
5.1742 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 45, PlsqlBlockType.STATEMENT, "UPDATE dictionary_sys_tab", true, 96383, 96527, 0);
5.1743 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(4).getChildBlocks(), 46, PlsqlBlockType.COMMENT, "-- Call activity ManageApplicationServerCache.ClearDataDictionaryCache", true, 96590, 96672, 0);
5.1744 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- SERVICE SPECIFIC PRIVATE METHODS ", true, 97427, 97966, 0);
5.1745 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_IMPL, "Enumerate_Logical_Units__", true, 97967, 98926, 5);
5.1746 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "units", true, 98197, 98315, 0);
5.1747 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Init used elements", true, 98325, 98358, 0);
5.1748 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Fetch all packages and views associated with a logical unit", true, 98446, 98570, 0);
5.1749 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "unit IN units", true, 98574, 98751, 1);
5.1750 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (length(temp_(n_)) > limit_)", true, 98665, 98738, 0);
5.1751 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Return complete lists", true, 98755, 98791, 0);
5.1752 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 7, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Properties__", true, 98928, 99371, 0);
5.1753 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Properties2__", true, 99373, 99799, 0);
5.1754 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 9, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Views__", true, 99801, 99996, 0);
5.1755 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 10, PlsqlBlockType.FUNCTION_IMPL, "Get_Logical_Unit_Views__", true, 99998, 100655, 2);
5.1756 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_lu_views", true, 100158, 100296, 0);
5.1757 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.IF, "IF view_array_.count > 0", true, 100405, 100603, 1);
5.1758 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(10).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(view_array_.first, 0)..Nvl(view_array_.last, -1)", true, 100441, 100592, 0);
5.1759 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 11, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Packages__", true, 100657, 100864, 0);
5.1760 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 12, PlsqlBlockType.FUNCTION_IMPL, "Get_Logical_Unit_Packages__", true, 100867, 101576, 2);
5.1761 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_lu_packages", true, 101031, 101181, 0);
5.1762 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks(), 1, PlsqlBlockType.IF, "IF package_array_.count > 0", true, 101302, 101518, 1);
5.1763 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(package_array_.first, 0)..Nvl(package_array_.last, -1)", true, 101341, 101507, 0);
5.1764 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Methods__", true, 101578, 102791, 5);
5.1765 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_all_lu_methods", true, 101803, 101967, 0);
5.1766 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_lu_methods", true, 101972, 102160, 0);
5.1767 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 2, PlsqlBlockType.IF, "IF all_methods_ = 'TRUE'", true, 102171, 102343, 0);
5.1768 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 102347, 102493, 0);
5.1769 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 4, PlsqlBlockType.IF, "IF method_array_.count > 0", true, 102498, 102759, 1);
5.1770 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "lu_methods IN Nvl(method_array_.first, 0)..Nvl(method_array_.last, -1)", true, 102536, 102748, 0);
5.1771 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_IMPL, "Get_LU_Method_Types__", true, 102793, 103665, 2);
5.1772 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_all_lu_methods", true, 102997, 103174, 0);
5.1773 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 1, PlsqlBlockType.IF, "IF method_array_.count > 0", true, 103333, 103638, 1);
5.1774 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "lu_methods IN Nvl(method_array_.first, 0)..Nvl(method_array_.last, -1)", true, 103371, 103627, 0);
5.1775 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 15, PlsqlBlockType.FUNCTION_IMPL, "Get_State_Encode_Method__", true, 103667, 103868, 0);
5.1776 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 16, PlsqlBlockType.FUNCTION_IMPL, "Get_State_Enumerate_Method__", true, 103870, 104074, 0);
5.1777 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "-- SERVICE SPECIFIC PROTECTED METHODS ", true, 104076, 104528, 0);
5.1778 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 18, PlsqlBlockType.FUNCTION_IMPL, "Dbnametoclientname_", true, 104530, 105067, 4);
5.1779 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find number of trailing underscores", true, 104632, 104670, 0);
5.1780 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Return client name with leading underscores", true, 104733, 104779, 0);
5.1781 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (cnt_ = 1)", true, 104783, 104855, 0);
5.1782 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (cnt_ = 2)", true, 104859, 104946, 0);
5.1783 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 19, PlsqlBlockType.FUNCTION_IMPL, "Clientnametodbname_", true, 105070, 105977, 6);
5.1784 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find number of leading underscores", true, 105242, 105279, 0);
5.1785 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Add intermediate underscores where needed", true, 105350, 105394, 0);
5.1786 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "index_ IN cnt_+1..length(client_name_)", true, 105398, 105665, 2);
5.1787 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (char_ between 'A' and 'Z') AND (temp_ IS NOT NULL)", true, 105498, 105595, 0);
5.1788 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 105602, 105652, 0);
5.1789 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Return database name with trailing underscores", true, 105669, 105718, 0);
5.1790 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (cnt_ = 1)", true, 105722, 105785, 0);
5.1791 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (cnt_ = 2)", true, 105789, 105866, 0);
5.1792 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 20, PlsqlBlockType.COMMENT, "-- Comment decoding routines for LU", true, 105979, 106181, 0);
5.1793 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 21, PlsqlBlockType.FUNCTION_IMPL, "Comment_Value_", true, 106183, 106898, 5);
5.1794 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find keyword name position within comment", true, 106339, 106383, 0);
5.1795 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- New fix to support ambigous names in report definitions in IFS/Info Services", true, 106414, 106493, 0);
5.1796 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- If found, return value from comment", true, 106555, 106593, 0);
5.1797 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (from_ > 0)", true, 106597, 106839, 2);
5.1798 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( to_ = 0 )", true, 106665, 106735, 0);
5.1799 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- If not found, return null value", true, 106805, 106839, 0);
5.1800 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 106843, 106878, 0);
5.1801 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 22, PlsqlBlockType.COMMENT, "-- Prompt fetching routines, mainly used for localization", true, 106900, 107113, 0);
5.1802 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 23, PlsqlBlockType.FUNCTION_IMPL, "Get_View_Prompt_", true, 107115, 107467, 1);
5.1803 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_prompt", true, 107226, 107345, 0);
5.1804 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 24, PlsqlBlockType.FUNCTION_IMPL, "Get_Lu_Prompt_", true, 107469, 107936, 3);
5.1805 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(24).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_prompt", true, 107589, 107697, 0);
5.1806 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(24).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Check that inparameters make sense before proceeding.", true, 107707, 107763, 0);
5.1807 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(24).getChildBlocks(), 2, PlsqlBlockType.IF, "IF lu_name_ IS NULL", true, 107767, 107821, 0);
5.1808 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 25, PlsqlBlockType.FUNCTION_IMPL, "Get_Item_Prompt_", true, 107938, 108579, 2);
5.1809 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_prompt", true, 108187, 108373, 0);
5.1810 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (view_ IS NULL)", true, 108383, 108463, 0);
5.1811 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 26, PlsqlBlockType.COMMENT, "-- Property fetching routines for run", true, 108581, 108795, 0);
5.1812 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 27, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Keys_", true, 108797, 110903, 7);
5.1813 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- To check that the suggested base view actually contain an objid...", true, 109080, 109149, 0);
5.1814 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "find_objid", true, 109153, 109383, 0);
5.1815 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_keys", true, 109388, 109624, 0);
5.1816 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Fetch the view name from LU", true, 109755, 109796, 0);
5.1817 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Verify that this view contains an objid", true, 109837, 109879, 0);
5.1818 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 5, PlsqlBlockType.IF, "IF find_objid%FOUND", true, 109953, 110832, 3);
5.1819 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- View found, fetch the keys!", true, 110008, 110038, 0);
5.1820 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "keyrec IN get_keys(view_)", true, 110045, 110167, 0);
5.1821 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (objid_ IS NOT NULL)", true, 110206, 110832, 2);
5.1822 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Fetch instance key information by using dynamic SQL", true, 110244, 110298, 0);
5.1823 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.BEGIN_END, "", true, 110308, 110818, 1);
5.1824 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe utgulk 20060105", true, 110622, 110656, 0);
5.1825 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(27).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSE", true, 110836, 110875, 0);
5.1826 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 28, PlsqlBlockType.COMMENT, "-- Could not completely rely on cached information, since table information is not extracted to the cache", true, 110905, 111010, 0);
5.1827 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 29, PlsqlBlockType.PROCEDURE_IMPL, "Get_Logical_Unit_Tables_", true, 111011, 112151, 4);
5.1828 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(29).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "view_tables", true, 111169, 111809, 0);
5.1829 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(29).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Check that inparameters make sense before proceeding.", true, 111819, 111875, 0);
5.1830 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(29).getChildBlocks(), 2, PlsqlBlockType.IF, "IF lu_name_ IS NULL", true, 111879, 111928, 0);
5.1831 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(29).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "t IN view_tables", true, 112023, 112121, 0);
5.1832 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 30, PlsqlBlockType.COMMENT, "-- Introduced new method and implemented to use dictionary cache.", true, 112153, 112218, 0);
5.1833 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 31, PlsqlBlockType.PROCEDURE_IMPL, "Enum_Modules_", true, 112219, 112520, 2);
5.1834 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(31).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "modules", true, 112282, 112383, 0);
5.1835 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(31).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "module IN modules", true, 112393, 112501, 0);
5.1836 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 32, PlsqlBlockType.PROCEDURE_IMPL, "Enum_Module_Names_", true, 112522, 113189, 2);
5.1837 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(32).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "modules", true, 112687, 112775, 0);
5.1838 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(32).getChildBlocks(), 1, PlsqlBlockType.IF, "IF module_array_.count > 0", true, 112884, 113165, 1);
5.1839 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(32).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(module_array_.first, 0)..Nvl(module_array_.last, -1)", true, 112922, 113154, 0);
5.1840 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 33, PlsqlBlockType.COMMENT, "-- Modified implementation to use dictionary cache. Designtime version moved to Design_SYS", true, 113191, 113281, 0);
5.1841 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 34, PlsqlBlockType.PROCEDURE_IMPL, "Enum_Module_All_Logical_Units_", true, 113282, 113875, 2);
5.1842 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(34).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "units", true, 113413, 113567, 0);
5.1843 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(34).getChildBlocks(), 1, PlsqlBlockType.IF, "IF lu_array_.count > 0", true, 113653, 113839, 1);
5.1844 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(34).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(lu_array_.first, 0)..Nvl(lu_array_.last, -1)", true, 113687, 113828, 0);
5.1845 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 35, PlsqlBlockType.COMMENT, "-- Modified implementation to use dictionary cache. Designtime version moved to Design_SYS", true, 113877, 113967, 0);
5.1846 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 36, PlsqlBlockType.PROCEDURE_IMPL, "Enum_Module_Logical_Units_", true, 113968, 114545, 2);
5.1847 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(36).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "units", true, 114095, 114241, 0);
5.1848 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(36).getChildBlocks(), 1, PlsqlBlockType.IF, "IF lu_array_.count > 0", true, 114327, 114513, 1);
5.1849 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(36).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN Nvl(lu_array_.first, 0)..Nvl(lu_array_.last, -1)", true, 114361, 114502, 0);
5.1850 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 37, PlsqlBlockType.COMMENT, "-- Modified implementation using dictionary cache.", true, 114547, 114597, 0);
5.1851 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 38, PlsqlBlockType.PROCEDURE_IMPL, "Enum_Module_System_Services_", true, 114598, 114987, 2);
5.1852 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(38).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "units", true, 114700, 114846, 0);
5.1853 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(38).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "unit IN units", true, 114856, 114953, 0);
5.1854 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 39, PlsqlBlockType.COMMENT, "-- Runtime performance refreshment routines", true, 114989, 115202, 0);
5.1855 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 40, PlsqlBlockType.PROCEDURE_IMPL, "Activate_Language_Refresh_", true, 115203, 115521, 0);
5.1856 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 41, PlsqlBlockType.PROCEDURE_IMPL, "Rebuild_Dictionary_Storage_", true, 115523, 115781, 0);
5.1857 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 42, PlsqlBlockType.PROCEDURE_IMPL, "Rebuild_Dictionary_Storage_", true, 115783, 116056, 0);
5.1858 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 43, PlsqlBlockType.PROCEDURE_IMPL, "Check_Dictionary_Storage_", true, 116058, 117150, 4);
5.1859 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(43).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_last_update", true, 116181, 116266, 0);
5.1860 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(43).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_objects", true, 116271, 116631, 0);
5.1861 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(43).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (last_update_ IS NULL)", true, 116710, 116797, 0);
5.1862 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(43).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 116801, 117093, 2);
5.1863 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(43).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_objects%NOTFOUND)", true, 116887, 116975, 0);
5.1864 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(43).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 116982, 117057, 0);
5.1865 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 44, PlsqlBlockType.COMMENT, "-- SERVICE SPECIFIC PUBLIC METHODS ", true, 117152, 117603, 0);
5.1866 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 45, PlsqlBlockType.FUNCTION_IMPL, "Get_Base_View", true, 117605, 117953, 1);
5.1867 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(45).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_view", true, 117708, 117844, 0);
5.1868 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 46, PlsqlBlockType.FUNCTION_IMPL, "Get_Component", true, 117955, 118883, 5);
5.1869 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(46).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_pkg_component", true, 118088, 118287, 0);
5.1870 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(46).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_view_component", true, 118292, 118486, 0);
5.1871 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(46).getChildBlocks(), 2, PlsqlBlockType.IF, "IF upper(object_type_) = 'PACKAGE'", true, 118496, 118643, 0);
5.1872 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(46).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF upper(object_type_) = 'VIEW'", true, 118647, 118797, 0);
5.1873 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(46).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 118801, 118842, 0);
5.1874 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 47, PlsqlBlockType.FUNCTION_IMPL, "Get_Logical_Unit", true, 118885, 119630, 5);
5.1875 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(47).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_pkg_lu", true, 119020, 119150, 0);
5.1876 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(47).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_view_lu", true, 119155, 119280, 0);
5.1877 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(47).getChildBlocks(), 2, PlsqlBlockType.IF, "IF upper(object_type_) = 'PACKAGE'", true, 119290, 119414, 0);
5.1878 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(47).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF upper(object_type_) = 'VIEW'", true, 119418, 119545, 0);
5.1879 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(47).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 119549, 119588, 0);
5.1880 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 48, PlsqlBlockType.FUNCTION_IMPL, "Get_Logical_Unit_Module", true, 119632, 119973, 1);
5.1881 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(48).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_module", true, 119739, 119843, 0);
5.1882 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 49, PlsqlBlockType.FUNCTION_IMPL, "Package_Is_Installed", true, 119975, 120584, 4);
5.1883 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(49).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_pkg", true, 120077, 120199, 0);
5.1884 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(49).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Reroute to Database_SYS during installation", true, 120209, 120255, 0);
5.1885 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(49).getChildBlocks(), 2, PlsqlBlockType.IF, "IF installation_", true, 120259, 120337, 0);
5.1886 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(49).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 120341, 120558, 2);
5.1887 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(49).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_pkg%FOUND)", true, 120406, 120475, 0);
5.1888 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(49).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 120482, 120547, 0);
5.1889 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 50, PlsqlBlockType.FUNCTION_IMPL, "Method_Is_Installed", true, 120586, 121303, 4);
5.1890 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(50).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_method", true, 120717, 120891, 0);
5.1891 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(50).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Reroute to Database_SYS during installation", true, 120901, 120947, 0);
5.1892 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(50).getChildBlocks(), 2, PlsqlBlockType.IF, "IF installation_", true, 120951, 121042, 0);
5.1893 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(50).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 121046, 121278, 2);
5.1894 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(50).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_method%FOUND)", true, 121117, 121192, 0);
5.1895 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(50).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 121199, 121267, 0);
5.1896 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 51, PlsqlBlockType.FUNCTION_IMPL, "View_Is_Installed", true, 121305, 121896, 4);
5.1897 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(51).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_view", true, 121401, 121515, 0);
5.1898 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(51).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Reroute to Database_SYS during installation", true, 121525, 121571, 0);
5.1899 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(51).getChildBlocks(), 2, PlsqlBlockType.IF, "IF installation_", true, 121575, 121647, 0);
5.1900 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(51).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 121651, 121873, 2);
5.1901 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(51).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_view%FOUND)", true, 121718, 121789, 0);
5.1902 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(51).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 121796, 121862, 0);
5.1903 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 52, PlsqlBlockType.FUNCTION_IMPL, "Logical_Unit_Is_Installed", true, 121898, 122514, 4);
5.1904 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(52).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_lu", true, 122009, 122105, 0);
5.1905 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(52).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Reroute to Database_SYS during installation", true, 122115, 122161, 0);
5.1906 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(52).getChildBlocks(), 2, PlsqlBlockType.IF, "IF installation_", true, 122165, 122267, 0);
5.1907 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(52).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 122271, 122483, 2);
5.1908 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(52).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_lu%FOUND)", true, 122334, 122401, 0);
5.1909 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(52).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 122408, 122472, 0);
5.1910 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 53, PlsqlBlockType.FUNCTION_IMPL, "Component_Is_Installed", true, 122516, 123054, 3);
5.1911 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(53).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_component", true, 122657, 122815, 0);
5.1912 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(53).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (get_component%FOUND)", true, 122885, 122960, 0);
5.1913 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(53).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 122964, 123026, 0);
5.1914 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 54, PlsqlBlockType.FUNCTION_IMPL, "Package_Is_Installed_Num", true, 123056, 123277, 2);
5.1915 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(54).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Package_Is_Installed(package_name_)", true, 123149, 123210, 0);
5.1916 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(54).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 123214, 123247, 0);
5.1917 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 55, PlsqlBlockType.FUNCTION_IMPL, "Method_Is_Installed_Num", true, 123279, 123541, 2);
5.1918 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(55).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Method_Is_Installed(package_name_, method_name_)", true, 123401, 123475, 0);
5.1919 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(55).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 123479, 123512, 0);
5.1920 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 56, PlsqlBlockType.FUNCTION_IMPL, "View_Is_Installed_Num", true, 123543, 123749, 2);
5.1921 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(56).getChildBlocks(), 0, PlsqlBlockType.IF, "IF View_Is_Installed(view_name_)", true, 123630, 123685, 0);
5.1922 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(56).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 123689, 123722, 0);
5.1923 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 57, PlsqlBlockType.FUNCTION_IMPL, "Logical_Unit_Is_Installed_Num", true, 123751, 123977, 2);
5.1924 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(57).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Logical_Unit_Is_Installed(lu_name_)", true, 123844, 123905, 0);
5.1925 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(57).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 123909, 123942, 0);
5.1926 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 58, PlsqlBlockType.FUNCTION_IMPL, "Component_Is_Installed_Num", true, 123979, 124250, 2);
5.1927 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(58).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Component_Is_Installed(component_, version_)", true, 124111, 124181, 0);
5.1928 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(58).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 124185, 124218, 0);
5.1929 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 59, PlsqlBlockType.FUNCTION_IMPL, "Get_No_Overloads", true, 124252, 125156, 3);
5.1930 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(59).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_no_overloads_", true, 124372, 124546, 0);
5.1931 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(59).getChildBlocks(), 1, PlsqlBlockType.IF, "IF package_name_ IS NULL OR method_name_ IS NULL", true, 124600, 124818, 1);
5.1932 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(59).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 124654, 124788, 0);
5.1933 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(59).getChildBlocks(), 2, PlsqlBlockType.IF, "IF get_no_overloads_%NOTFOUND", true, 124889, 125088, 1);
5.1934 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(59).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 124924, 125058, 0);
5.1935 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 60, PlsqlBlockType.FUNCTION_IMPL, "Get_No_Arguments", true, 125158, 126091, 3);
5.1936 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(60).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_no_args_", true, 125279, 125501, 0);
5.1937 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(60).getChildBlocks(), 1, PlsqlBlockType.IF, "IF package_name_ IS NULL OR method_name_ IS NULL", true, 125555, 125773, 1);
5.1938 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(60).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 125609, 125743, 0);
5.1939 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(60).getChildBlocks(), 2, PlsqlBlockType.IF, "IF get_no_args_%NOTFOUND", true, 125834, 126028, 1);
5.1940 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(60).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 125864, 125998, 0);
5.1941 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 61, PlsqlBlockType.FUNCTION_IMPL, "Get_Min_No_Arguments", true, 126093, 127120, 3);
5.1942 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(61).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_min_no_args_", true, 126221, 126510, 0);
5.1943 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(61).getChildBlocks(), 1, PlsqlBlockType.IF, "IF package_name_ IS NULL OR method_name_ IS NULL", true, 126564, 126782, 1);
5.1944 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(61).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 126618, 126752, 0);
5.1945 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(61).getChildBlocks(), 2, PlsqlBlockType.IF, "IF get_min_no_args_%NOTFOUND", true, 126851, 127049, 1);
5.1946 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(61).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 126885, 127019, 0);
5.1947 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 62, PlsqlBlockType.FUNCTION_IMPL, "Get_Max_No_Arguments", true, 127122, 128149, 3);
5.1948 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(62).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_max_no_args_", true, 127250, 127539, 0);
5.1949 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(62).getChildBlocks(), 1, PlsqlBlockType.IF, "IF package_name_ IS NULL OR method_name_ IS NULL", true, 127593, 127811, 1);
5.1950 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(62).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 127653, 127781, 0);
5.1951 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(62).getChildBlocks(), 2, PlsqlBlockType.IF, "IF get_max_no_args_%NOTFOUND", true, 127880, 128078, 1);
5.1952 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(62).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 127920, 128048, 0);
5.1953 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 63, PlsqlBlockType.FUNCTION_IMPL, "Get_Argument_Type", true, 128151, 129262, 4);
5.1954 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(63).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_arg_type_", true, 128324, 128536, 0);
5.1955 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(63).getChildBlocks(), 1, PlsqlBlockType.IF, "IF package_name_ IS NULL OR method_name_ IS NULL", true, 128632, 128850, 1);
5.1956 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(63).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 128692, 128820, 0);
5.1957 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(63).getChildBlocks(), 2, PlsqlBlockType.IF, "IF Get_No_Overloads(package_name_, method_name_) > 1", true, 128854, 128941, 0);
5.1958 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(63).getChildBlocks(), 3, PlsqlBlockType.IF, "IF get_arg_type_%NOTFOUND", true, 129003, 129198, 1);
5.1959 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(63).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Error_SYS.Appl_General(service_, 'NON_EXISTING_METHOD: [:P1,:P2] method is non existing method', package_name_, method_name_);", true, 129040, 129168, 0);
5.1960 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 64, PlsqlBlockType.PROCEDURE_IMPL, "Set_Installation_Mode", true, 129264, 129493, 0);
5.1961 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 65, PlsqlBlockType.FUNCTION_IMPL, "Get_Installation_Mode", true, 129495, 129673, 0);
5.1962 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 66, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 129675, 130139, 0);
5.1963 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 67, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 130141, 130183, 0);
5.1964 + assertBlock(lstBlockFac, 3, PlsqlBlockType.COMMENT, "COMMENT...", false, 130405, 130482, 0);
5.1965 + } finally {
5.1966 + if (fileObject != null) {
5.1967 + fileObject.delete();
5.1968 + }
5.1969 + }
5.1970 + }
5.1971
5.1972 - @Test
5.1973 - public void testAdvanced6() throws IOException, BadLocationException {
5.1974 - System.out.println("Advanced test case 6");
5.1975 - FileObject fileObject = fs.getRoot().createData("FavoriteSchedules.apy");
5.1976 - assertNotNull(fileObject);
5.1977 - try {
5.1978 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "FavoriteSchedules.apy");
5.1979 - assertNotNull(blockFac);
5.1980 + @Test
5.1981 + public void testAdvanced6() throws IOException, BadLocationException {
5.1982 + System.out.println("Advanced test case 6");
5.1983 + FileObject fileObject = fs.getRoot().createData("FavoriteSchedules.apy");
5.1984 + assertNotNull(fileObject);
5.1985 + try {
5.1986 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "FavoriteSchedules.apy");
5.1987 + assertNotNull(blockFac);
5.1988
5.1989 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.1990 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.1991 // printHierarchy(lstBlockFac, "");
5.1992 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.1993 - assertTrue(lstBlockFac.size() == 8);
5.1994 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: FavoriteSchedules", false, 0, 386, 0);
5.1995 - assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- VIEWS FOR SELECTS ", false, 667, 900, 0);
5.1996 - assertBlock(lstBlockFac, 2, PlsqlBlockType.VIEW, "FAVORITE_SCHEDULES", false, 930, 1362, 0);
5.1997 - assertBlock(lstBlockFac, 3, PlsqlBlockType.TABLE_COMMENT, "FAVORITE_SCHEDULES", false, 1365, 1444, 0);
5.1998 - assertBlock(lstBlockFac, 4, PlsqlBlockType.COLUMN_COMMENT, "FAVORITE_SCHEDULES", false, 1447, 2009, 0);
5.1999 - assertBlock(lstBlockFac, 5, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 2012, 2245, 0);
5.2000 - assertBlock(lstBlockFac, 6, PlsqlBlockType.PACKAGE_BODY, "FAVORITE_SCHEDULES_API", false, 2284, 23580, 29);
5.2001 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 2324, 3435, 0);
5.2002 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Id___", true, 3437, 4589, 5);
5.2003 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 3731, 3881, 0);
5.2004 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "exist_control", true, 3885, 3973, 0);
5.2005 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 4038, 4122, 0);
5.2006 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 4208, 4289, 0);
5.2007 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 4293, 4360, 0);
5.2008 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Keys___", true, 4591, 5421, 3);
5.2009 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 4848, 5115, 0);
5.2010 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 5180, 5253, 0);
5.2011 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 5257, 5323, 0);
5.2012 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Id___", true, 5423, 5830, 2);
5.2013 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 5533, 5614, 0);
5.2014 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%NOTFOUND)", true, 5670, 5768, 0);
5.2015 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 4, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Keys___", true, 5833, 6426, 1);
5.2016 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 6066, 6310, 0);
5.2017 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 5, PlsqlBlockType.FUNCTION_IMPL, "Check_Exist___", true, 6428, 7108, 2);
5.2018 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 6638, 6890, 0);
5.2019 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 6959, 7046, 0);
5.2020 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_IMPL, "Get_Id_Version_By_Keys___", true, 7110, 7753, 1);
5.2021 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_version", true, 7362, 7626, 0);
5.2022 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR INSERT ", true, 7755, 8500, 0);
5.2023 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Insert___", true, 8502, 8623, 0);
5.2024 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 9, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Insert___", true, 8626, 10038, 1);
5.2025 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 8821, 9515, 6);
5.2026 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'IDENTITY')", true, 8898, 9018, 0);
5.2027 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'SCHEDULE_TYPE')", true, 9025, 9103, 0);
5.2028 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'SCHEDULE_CODE')", true, 9110, 9188, 0);
5.2029 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'COMPANY_ID')", true, 9195, 9267, 0);
5.2030 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'WAGE_CLASS')", true, 9274, 9417, 0);
5.2031 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 9424, 9502, 0);
5.2032 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 10, PlsqlBlockType.PROCEDURE_IMPL, "Insert___", true, 10041, 10778, 1);
5.2033 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 10285, 10682, 0);
5.2034 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR UPDATE ", true, 10780, 11364, 0);
5.2035 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Update___", true, 11366, 12392, 1);
5.2036 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 11589, 12242, 6);
5.2037 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'IDENTITY')", true, 11666, 11748, 0);
5.2038 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'SCHEDULE_TYPE')", true, 11755, 11850, 0);
5.2039 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'SCHEDULE_CODE')", true, 11857, 11952, 0);
5.2040 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'COMPANY_ID')", true, 11959, 12048, 0);
5.2041 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'WAGE_CLASS')", true, 12055, 12144, 0);
5.2042 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 12151, 12229, 0);
5.2043 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Update___", true, 12395, 13729, 2);
5.2044 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF by_keys_", true, 12739, 13285, 1);
5.2045 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE favorite_schedules_tab", true, 12762, 13284, 0);
5.2046 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 13289, 13634, 1);
5.2047 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(13).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE favorite_schedules_tab", true, 13300, 13622, 0);
5.2048 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR DELETE ", true, 13731, 14328, 0);
5.2049 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Check_Delete___", true, 14330, 14658, 0);
5.2050 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Delete___", true, 14661, 15069, 1);
5.2051 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 14984, 15053, 0);
5.2052 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 15071, 17372, 0);
5.2053 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Lock__", true, 17374, 17669, 0);
5.2054 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 19, PlsqlBlockType.PROCEDURE_IMPL, "New__", true, 17672, 18276, 3);
5.2055 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'PREPARE')", true, 17945, 18006, 0);
5.2056 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'CHECK')", true, 18010, 18086, 0);
5.2057 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 18090, 18228, 0);
5.2058 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Modify__", true, 18279, 19001, 2);
5.2059 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 18585, 18712, 0);
5.2060 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 18716, 18950, 0);
5.2061 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Remove__", true, 19004, 19556, 2);
5.2062 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 19239, 19344, 0);
5.2063 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(21).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 19348, 19505, 0);
5.2064 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 22, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 19558, 20011, 0);
5.2065 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 20013, 20412, 1);
5.2066 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(identity_, schedule_type_, schedule_code_, company_id_, wage_class_))", true, 20249, 20401, 0);
5.2067 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 24, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 20414, 21355, 0);
5.2068 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 25, PlsqlBlockType.PROCEDURE_IMPL, "Add_Remove", true, 21357, 22709, 2);
5.2069 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.IF, "IF favorite_ = 1", true, 21801, 22380, 1);
5.2070 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(25).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(identity_, schedule_type_, schedule_code_, company_id_, wage_class_))", true, 21829, 22380, 0);
5.2071 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(25).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 22384, 22692, 1);
5.2072 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(25).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Check_Exist___(identity_, schedule_type_, schedule_code_, company_id_, wage_class_))", true, 22395, 22681, 0);
5.2073 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 26, PlsqlBlockType.FUNCTION_IMPL, "Get_Favorite", true, 22712, 23058, 1);
5.2074 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(26).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Check_Exist___(identity_, schedule_type_, schedule_code_, company_id_, wage_class_))", true, 22907, 23027, 0);
5.2075 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 27, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 23060, 23524, 0);
5.2076 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 28, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 23526, 23568, 0);
5.2077 - assertBlock(lstBlockFac, 7, PlsqlBlockType.COMMENT, "COMMENT...", false, 23702, 23779, 0);
5.2078 - } finally {
5.2079 - if (fileObject != null) {
5.2080 - fileObject.delete();
5.2081 - }
5.2082 - }
5.2083 - }
5.2084 + assertTrue(lstBlockFac.size() == 8);
5.2085 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: FavoriteSchedules", false, 0, 386, 0);
5.2086 + assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- VIEWS FOR SELECTS ", false, 667, 900, 0);
5.2087 + assertBlock(lstBlockFac, 2, PlsqlBlockType.VIEW, "FAVORITE_SCHEDULES", false, 930, 1362, 0);
5.2088 + assertBlock(lstBlockFac, 3, PlsqlBlockType.TABLE_COMMENT, "FAVORITE_SCHEDULES", false, 1365, 1444, 0);
5.2089 + assertBlock(lstBlockFac, 4, PlsqlBlockType.COLUMN_COMMENT, "FAVORITE_SCHEDULES", false, 1447, 2009, 0);
5.2090 + assertBlock(lstBlockFac, 5, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 2012, 2245, 0);
5.2091 + assertBlock(lstBlockFac, 6, PlsqlBlockType.PACKAGE_BODY, "FAVORITE_SCHEDULES_API", false, 2284, 23580, 29);
5.2092 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 2324, 3435, 0);
5.2093 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Id___", true, 3437, 4589, 5);
5.2094 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 3731, 3881, 0);
5.2095 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "exist_control", true, 3885, 3973, 0);
5.2096 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 4038, 4122, 0);
5.2097 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 4208, 4289, 0);
5.2098 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 4293, 4360, 0);
5.2099 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Keys___", true, 4591, 5421, 3);
5.2100 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 4848, 5115, 0);
5.2101 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 5180, 5253, 0);
5.2102 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 5257, 5323, 0);
5.2103 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Id___", true, 5423, 5830, 2);
5.2104 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 5533, 5614, 0);
5.2105 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%NOTFOUND)", true, 5670, 5768, 0);
5.2106 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 4, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Keys___", true, 5833, 6426, 1);
5.2107 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 6066, 6310, 0);
5.2108 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 5, PlsqlBlockType.FUNCTION_IMPL, "Check_Exist___", true, 6428, 7108, 2);
5.2109 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 6638, 6890, 0);
5.2110 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 6959, 7046, 0);
5.2111 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_IMPL, "Get_Id_Version_By_Keys___", true, 7110, 7753, 1);
5.2112 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_version", true, 7362, 7626, 0);
5.2113 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR INSERT ", true, 7755, 8500, 0);
5.2114 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Insert___", true, 8502, 8623, 0);
5.2115 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 9, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Insert___", true, 8626, 10038, 1);
5.2116 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 8821, 9515, 6);
5.2117 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'IDENTITY')", true, 8898, 9018, 0);
5.2118 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'SCHEDULE_TYPE')", true, 9025, 9103, 0);
5.2119 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'SCHEDULE_CODE')", true, 9110, 9188, 0);
5.2120 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'COMPANY_ID')", true, 9195, 9267, 0);
5.2121 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'WAGE_CLASS')", true, 9274, 9417, 0);
5.2122 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 9424, 9502, 0);
5.2123 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 10, PlsqlBlockType.PROCEDURE_IMPL, "Insert___", true, 10041, 10778, 1);
5.2124 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 10285, 10682, 0);
5.2125 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR UPDATE ", true, 10780, 11364, 0);
5.2126 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Update___", true, 11366, 12392, 1);
5.2127 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 11589, 12242, 6);
5.2128 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'IDENTITY')", true, 11666, 11748, 0);
5.2129 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'SCHEDULE_TYPE')", true, 11755, 11850, 0);
5.2130 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'SCHEDULE_CODE')", true, 11857, 11952, 0);
5.2131 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'COMPANY_ID')", true, 11959, 12048, 0);
5.2132 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'WAGE_CLASS')", true, 12055, 12144, 0);
5.2133 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 12151, 12229, 0);
5.2134 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Update___", true, 12395, 13729, 2);
5.2135 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF by_keys_", true, 12739, 13285, 1);
5.2136 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE favorite_schedules_tab", true, 12762, 13284, 0);
5.2137 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 13289, 13634, 1);
5.2138 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(13).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE favorite_schedules_tab", true, 13300, 13622, 0);
5.2139 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR DELETE ", true, 13731, 14328, 0);
5.2140 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Check_Delete___", true, 14330, 14658, 0);
5.2141 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Delete___", true, 14661, 15069, 1);
5.2142 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 14984, 15053, 0);
5.2143 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 15071, 17372, 0);
5.2144 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Lock__", true, 17374, 17669, 0);
5.2145 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 19, PlsqlBlockType.PROCEDURE_IMPL, "New__", true, 17672, 18276, 3);
5.2146 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'PREPARE')", true, 17945, 18006, 0);
5.2147 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'CHECK')", true, 18010, 18086, 0);
5.2148 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 18090, 18228, 0);
5.2149 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Modify__", true, 18279, 19001, 2);
5.2150 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 18585, 18712, 0);
5.2151 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 18716, 18950, 0);
5.2152 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Remove__", true, 19004, 19556, 2);
5.2153 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 19239, 19344, 0);
5.2154 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(21).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 19348, 19505, 0);
5.2155 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 22, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 19558, 20011, 0);
5.2156 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 20013, 20412, 1);
5.2157 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(identity_, schedule_type_, schedule_code_, company_id_, wage_class_))", true, 20249, 20401, 0);
5.2158 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 24, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 20414, 21355, 0);
5.2159 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 25, PlsqlBlockType.PROCEDURE_IMPL, "Add_Remove", true, 21357, 22709, 2);
5.2160 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.IF, "IF favorite_ = 1", true, 21801, 22380, 1);
5.2161 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(25).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(identity_, schedule_type_, schedule_code_, company_id_, wage_class_))", true, 21829, 22380, 0);
5.2162 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(25).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 22384, 22692, 1);
5.2163 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(25).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Check_Exist___(identity_, schedule_type_, schedule_code_, company_id_, wage_class_))", true, 22395, 22681, 0);
5.2164 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 26, PlsqlBlockType.FUNCTION_IMPL, "Get_Favorite", true, 22712, 23058, 1);
5.2165 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(26).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Check_Exist___(identity_, schedule_type_, schedule_code_, company_id_, wage_class_))", true, 22907, 23027, 0);
5.2166 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 27, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 23060, 23524, 0);
5.2167 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 28, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 23526, 23568, 0);
5.2168 + assertBlock(lstBlockFac, 7, PlsqlBlockType.COMMENT, "COMMENT...", false, 23702, 23779, 0);
5.2169 + } finally {
5.2170 + if (fileObject != null) {
5.2171 + fileObject.delete();
5.2172 + }
5.2173 + }
5.2174 + }
5.2175
5.2176 - @Test
5.2177 - public void testAdvanced7() throws IOException, BadLocationException {
5.2178 - System.out.println("Advanced test case 7");
5.2179 - FileObject fileObject = fs.getRoot().createData("FndEvent.api");
5.2180 - assertNotNull(fileObject);
5.2181 - try {
5.2182 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "FndEvent.api");
5.2183 - assertNotNull(blockFac);
5.2184 + @Test
5.2185 + public void testAdvanced7() throws IOException, BadLocationException {
5.2186 + System.out.println("Advanced test case 7");
5.2187 + FileObject fileObject = fs.getRoot().createData("FndEvent.api");
5.2188 + assertNotNull(fileObject);
5.2189 + try {
5.2190 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "FndEvent.api");
5.2191 + assertNotNull(blockFac);
5.2192
5.2193 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.2194 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.2195 // printHierarchy(lstBlockFac, "");
5.2196 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.2197 - assertTrue(lstBlockFac.size() == 3);
5.2198 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: FndEvent", false, 0, 628, 0);
5.2199 - assertBlock(lstBlockFac, 1, PlsqlBlockType.PACKAGE, "FND_EVENT_API", false, 772, 4523, 19);
5.2200 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 1037, 1270, 0);
5.2201 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 1, PlsqlBlockType.PROCEDURE_DEF, "Lock__", true, 1272, 1379, 0);
5.2202 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 2, PlsqlBlockType.PROCEDURE_DEF, "New__", true, 1381, 1560, 0);
5.2203 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 3, PlsqlBlockType.PROCEDURE_DEF, "Modify__", true, 1562, 1744, 0);
5.2204 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 4, PlsqlBlockType.PROCEDURE_DEF, "Remove__", true, 1746, 1884, 0);
5.2205 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 1886, 2119, 0);
5.2206 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_DEF, "Exist", true, 2121, 2202, 0);
5.2207 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 2204, 2437, 0);
5.2208 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_DEF, "Export__", true, 2439, 2557, 0);
5.2209 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PROTECTED METHODS ", true, 2559, 3028, 0);
5.2210 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 10, PlsqlBlockType.FUNCTION_DEF, "Get_Event_Description", true, 3030, 3142, 0);
5.2211 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 11, PlsqlBlockType.FUNCTION_DEF, "Get_Event_Enable", true, 3202, 3309, 0);
5.2212 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_DEF, "Set_Event_Enable", true, 3364, 3456, 0);
5.2213 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_DEF, "Refresh", true, 3459, 3908, 0);
5.2214 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_DEF, "Register_Custom_Event", true, 3910, 4038, 0);
5.2215 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_DEF, "Unfresh", true, 4041, 4124, 0);
5.2216 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 16, PlsqlBlockType.FUNCTION_DEF, "Get", true, 4127, 4218, 0);
5.2217 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 4261, 4494, 0);
5.2218 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_DEF, "Init", true, 4496, 4511, 0);
5.2219 - assertBlock(lstBlockFac, 2, PlsqlBlockType.COMMENT, "COMMENT...", false, 4580, 4657, 0);
5.2220 - } finally {
5.2221 - if (fileObject != null) {
5.2222 - fileObject.delete();
5.2223 - }
5.2224 - }
5.2225 - }
5.2226 + assertTrue(lstBlockFac.size() == 3);
5.2227 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: FndEvent", false, 0, 628, 0);
5.2228 + assertBlock(lstBlockFac, 1, PlsqlBlockType.PACKAGE, "FND_EVENT_API", false, 772, 4523, 19);
5.2229 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 1037, 1270, 0);
5.2230 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 1, PlsqlBlockType.PROCEDURE_DEF, "Lock__", true, 1272, 1379, 0);
5.2231 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 2, PlsqlBlockType.PROCEDURE_DEF, "New__", true, 1381, 1560, 0);
5.2232 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 3, PlsqlBlockType.PROCEDURE_DEF, "Modify__", true, 1562, 1744, 0);
5.2233 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 4, PlsqlBlockType.PROCEDURE_DEF, "Remove__", true, 1746, 1884, 0);
5.2234 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 1886, 2119, 0);
5.2235 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_DEF, "Exist", true, 2121, 2202, 0);
5.2236 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 2204, 2437, 0);
5.2237 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_DEF, "Export__", true, 2439, 2557, 0);
5.2238 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PROTECTED METHODS ", true, 2559, 3028, 0);
5.2239 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 10, PlsqlBlockType.FUNCTION_DEF, "Get_Event_Description", true, 3030, 3142, 0);
5.2240 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 11, PlsqlBlockType.FUNCTION_DEF, "Get_Event_Enable", true, 3202, 3309, 0);
5.2241 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_DEF, "Set_Event_Enable", true, 3364, 3456, 0);
5.2242 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_DEF, "Refresh", true, 3459, 3908, 0);
5.2243 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_DEF, "Register_Custom_Event", true, 3910, 4038, 0);
5.2244 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_DEF, "Unfresh", true, 4041, 4124, 0);
5.2245 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 16, PlsqlBlockType.FUNCTION_DEF, "Get", true, 4127, 4218, 0);
5.2246 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 4261, 4494, 0);
5.2247 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_DEF, "Init", true, 4496, 4511, 0);
5.2248 + assertBlock(lstBlockFac, 2, PlsqlBlockType.COMMENT, "COMMENT...", false, 4580, 4657, 0);
5.2249 + } finally {
5.2250 + if (fileObject != null) {
5.2251 + fileObject.delete();
5.2252 + }
5.2253 + }
5.2254 + }
5.2255
5.2256 - @Test
5.2257 - public void testAdvanced8() throws IOException, BadLocationException {
5.2258 - System.out.println("Advanced test case 8");
5.2259 - FileObject fileObject = fs.getRoot().createData("FndEvent.apy");
5.2260 - assertNotNull(fileObject);
5.2261 - try {
5.2262 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "FndEvent.apy");
5.2263 - assertNotNull(blockFac);
5.2264 + @Test
5.2265 + public void testAdvanced8() throws IOException, BadLocationException {
5.2266 + System.out.println("Advanced test case 8");
5.2267 + FileObject fileObject = fs.getRoot().createData("FndEvent.apy");
5.2268 + assertNotNull(fileObject);
5.2269 + try {
5.2270 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "FndEvent.apy");
5.2271 + assertNotNull(blockFac);
5.2272
5.2273 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.2274 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.2275 // printHierarchy(lstBlockFac, "");
5.2276 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.2277 - assertTrue(lstBlockFac.size() == 8);
5.2278 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: FndEvent", false, 0, 1577, 0);
5.2279 - assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- VIEWS FOR SELECTS ", false, 1861, 2094, 0);
5.2280 - assertBlock(lstBlockFac, 2, PlsqlBlockType.VIEW, "FND_EVENT", false, 2129, 3044, 0);
5.2281 - assertBlock(lstBlockFac, 3, PlsqlBlockType.TABLE_COMMENT, "FND_EVENT", false, 3047, 3122, 0);
5.2282 - assertBlock(lstBlockFac, 4, PlsqlBlockType.COLUMN_COMMENT, "&AO", false, 3125, 4663, 0);
5.2283 - assertBlock(lstBlockFac, 5, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 4666, 4899, 0);
5.2284 - assertBlock(lstBlockFac, 6, PlsqlBlockType.PACKAGE_BODY, "FND_EVENT_API", false, 4943, 53148, 50);
5.2285 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 5227, 5460, 0);
5.2286 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 1, PlsqlBlockType.PROCEDURE_DEF, "Create_Custom_Trigger___", true, 5462, 5582, 0);
5.2287 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 2, PlsqlBlockType.PROCEDURE_DEF, "Create_Custom_Triggers___", true, 5584, 5656, 0);
5.2288 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_DEF, "Get_Trigger_Name___", true, 5658, 5767, 0);
5.2289 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 4, PlsqlBlockType.PROCEDURE_DEF, "Remove_Custom_Trigger___", true, 5769, 5889, 0);
5.2290 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 5, PlsqlBlockType.PROCEDURE_DEF, "Remove_Custom_Triggers___", true, 5891, 5963, 0);
5.2291 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 6, PlsqlBlockType.FUNCTION_DEF, "Create_Trigger_Name___", true, 5965, 6042, 0);
5.2292 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS ", true, 6043, 6918, 0);
5.2293 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 8, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Id___", true, 6920, 8072, 5);
5.2294 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 7214, 7364, 0);
5.2295 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "exist_control", true, 7368, 7456, 0);
5.2296 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 7521, 7605, 0);
5.2297 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(8).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 7691, 7772, 0);
5.2298 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(8).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 7776, 7843, 0);
5.2299 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 9, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Keys___", true, 8074, 8705, 3);
5.2300 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 8249, 8399, 0);
5.2301 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 8464, 8537, 0);
5.2302 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 8541, 8607, 0);
5.2303 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 10, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Id___", true, 8707, 9114, 2);
5.2304 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 8817, 8898, 0);
5.2305 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%NOTFOUND)", true, 8954, 9052, 0);
5.2306 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 11, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Keys___", true, 9117, 9511, 1);
5.2307 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 9268, 9395, 0);
5.2308 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 12, PlsqlBlockType.FUNCTION_IMPL, "Check_Exist___", true, 9513, 9994, 2);
5.2309 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 9641, 9776, 0);
5.2310 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 9845, 9932, 0);
5.2311 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Get_Id_Version_By_Keys___", true, 9996, 10457, 1);
5.2312 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_version", true, 10180, 10330, 0);
5.2313 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR INSERT ", true, 10459, 11204, 0);
5.2314 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Insert___", true, 11206, 11890, 0);
5.2315 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Insert___", true, 11893, 14969, 1);
5.2316 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 12088, 14317, 15);
5.2317 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'EVENT_LU_NAME')", true, 12165, 12240, 0);
5.2318 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_ID')", true, 12247, 12322, 0);
5.2319 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_DESCRIPTION')", true, 12329, 12415, 0);
5.2320 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_ENABLE')", true, 12422, 12498, 0);
5.2321 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_TABLE_NAME')", true, 12505, 12589, 0);
5.2322 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_TYPE')", true, 12596, 12796, 1);
5.2323 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 12705, 12796, 0);
5.2324 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_TYPE_DB')", true, 12803, 12982, 1);
5.2325 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 12888, 12982, 0);
5.2326 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'MODIFIED_ATTRIBUTES')", true, 12989, 13079, 0);
5.2327 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (name_ = 'NEW_ROW')", true, 13086, 13274, 1);
5.2328 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 13186, 13274, 0);
5.2329 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (name_ = 'NEW_ROW_DB')", true, 13281, 13451, 1);
5.2330 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 13360, 13451, 0);
5.2331 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (name_ = 'MODIFY_ROW')", true, 13458, 13652, 1);
5.2332 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 13564, 13652, 0);
5.2333 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (name_ = 'MODIFY_ROW_DB')", true, 13659, 13835, 1);
5.2334 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 13744, 13835, 0);
5.2335 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (name_ = 'REMOVE_ROW')", true, 13842, 14036, 1);
5.2336 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 13948, 14036, 0);
5.2337 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (name_ = 'REMOVE_ROW_DB')", true, 14043, 14219, 1);
5.2338 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 14128, 14219, 0);
5.2339 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSE", true, 14226, 14304, 0);
5.2340 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 17, PlsqlBlockType.PROCEDURE_IMPL, "Insert___", true, 14972, 16385, 6);
5.2341 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 15241, 15243, 0);
5.2342 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (nvl(newrec_.event_enable, 'FALSE') = 'TRUE')", true, 15247, 15409, 0);
5.2343 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "COMMENT...", true, 15413, 15415, 0);
5.2344 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks(), 3, PlsqlBlockType.STATEMENT, "INSERT", true, 15419, 16093, 0);
5.2345 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Create Custom Defined triggers", true, 16098, 16131, 0);
5.2346 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (newrec_.event_type = 'CUSTOM')", true, 16135, 16290, 1);
5.2347 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.event_enable = 'TRUE')", true, 16181, 16279, 0);
5.2348 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 18, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR UPDATE ", true, 16387, 16971, 0);
5.2349 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 19, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Update___", true, 16973, 19888, 1);
5.2350 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 17196, 19452, 15);
5.2351 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'EVENT_LU_NAME')", true, 17273, 17365, 0);
5.2352 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_ID')", true, 17372, 17457, 0);
5.2353 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_DESCRIPTION')", true, 17464, 17550, 0);
5.2354 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_ENABLE')", true, 17557, 17633, 0);
5.2355 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_TABLE_NAME')", true, 17640, 17724, 0);
5.2356 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_TYPE')", true, 17731, 17931, 1);
5.2357 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 17840, 17931, 0);
5.2358 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_TYPE_DB')", true, 17938, 18117, 1);
5.2359 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 18023, 18117, 0);
5.2360 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'MODIFIED_ATTRIBUTES')", true, 18124, 18214, 0);
5.2361 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (name_ = 'NEW_ROW')", true, 18221, 18409, 1);
5.2362 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 18321, 18409, 0);
5.2363 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (name_ = 'NEW_ROW_DB')", true, 18416, 18586, 1);
5.2364 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 18495, 18586, 0);
5.2365 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (name_ = 'MODIFY_ROW')", true, 18593, 18787, 1);
5.2366 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 18699, 18787, 0);
5.2367 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (name_ = 'MODIFY_ROW_DB')", true, 18794, 18970, 1);
5.2368 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 18879, 18970, 0);
5.2369 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (name_ = 'REMOVE_ROW')", true, 18977, 19171, 1);
5.2370 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 19083, 19171, 0);
5.2371 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (name_ = 'REMOVE_ROW_DB')", true, 19178, 19354, 1);
5.2372 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 19263, 19354, 0);
5.2373 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSE", true, 19361, 19439, 0);
5.2374 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Update___", true, 19891, 22450, 7);
5.2375 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_event_count", true, 20152, 20350, 0);
5.2376 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (nvl(oldrec_.event_enable, 'FALSE') = 'FALSE' AND newrec_.event_enable = 'TRUE')", true, 20360, 20700, 1);
5.2377 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dummy_ = 0)", true, 20554, 20689, 0);
5.2378 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "COMMENT...", true, 20704, 20706, 0);
5.2379 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 3, PlsqlBlockType.IF, "IF by_keys_", true, 20810, 21460, 1);
5.2380 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE fnd_event_tab", true, 20833, 21459, 0);
5.2381 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 21464, 22051, 1);
5.2382 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE fnd_event_tab", true, 21475, 22039, 0);
5.2383 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Create/remove Custom Defined triggers", true, 22055, 22095, 0);
5.2384 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (newrec_.event_type = 'CUSTOM')", true, 22099, 22355, 2);
5.2385 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.event_enable = 'TRUE')", true, 22145, 22274, 0);
5.2386 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 22281, 22344, 0);
5.2387 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 21, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR DELETE ", true, 22452, 23049, 0);
5.2388 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 22, PlsqlBlockType.PROCEDURE_IMPL, "Check_Delete___", true, 23051, 23289, 0);
5.2389 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Delete___", true, 23292, 23734, 3);
5.2390 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 23525, 23585, 0);
5.2391 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(23).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Remove Custom Defined triggers", true, 23590, 23623, 0);
5.2392 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(23).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (remrec_.event_type = 'CUSTOM')", true, 23627, 23719, 0);
5.2393 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 24, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 23736, 26037, 0);
5.2394 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 25, PlsqlBlockType.PROCEDURE_IMPL, "Lock__", true, 26039, 26334, 0);
5.2395 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 26, PlsqlBlockType.PROCEDURE_IMPL, "New__", true, 26337, 26941, 3);
5.2396 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(26).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'PREPARE')", true, 26610, 26671, 0);
5.2397 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(26).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'CHECK')", true, 26675, 26751, 0);
5.2398 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(26).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 26755, 26893, 0);
5.2399 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 27, PlsqlBlockType.PROCEDURE_IMPL, "Modify__", true, 26944, 27666, 2);
5.2400 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 27250, 27377, 0);
5.2401 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(27).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 27381, 27615, 0);
5.2402 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 28, PlsqlBlockType.PROCEDURE_IMPL, "Remove__", true, 27669, 28221, 2);
5.2403 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(28).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 27904, 28009, 0);
5.2404 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(28).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 28013, 28170, 0);
5.2405 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 29, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 28223, 28676, 0);
5.2406 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 30, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 28678, 28953, 1);
5.2407 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(30).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(event_lu_name_, event_id_))", true, 28832, 28942, 0);
5.2408 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 31, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 28955, 29188, 0);
5.2409 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 32, PlsqlBlockType.PROCEDURE_IMPL, "Create_Custom_Triggers___", true, 29190, 29720, 4);
5.2410 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(32).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Create triggers per type (New, Modify, Remove)", true, 29355, 29404, 0);
5.2411 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(32).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (rec_.new_row = 'TRUE')", true, 29408, 29495, 0);
5.2412 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(32).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_.modify_row = 'TRUE')", true, 29499, 29592, 0);
5.2413 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(32).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (rec_.remove_row = 'TRUE')", true, 29596, 29689, 0);
5.2414 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 33, PlsqlBlockType.PROCEDURE_IMPL, "Create_Custom_Trigger___", true, 29722, 38974, 18);
5.2415 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 30211, 30213, 0);
5.2416 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_param", true, 30217, 30363, 0);
5.2417 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "COMMENT...", true, 30367, 30369, 0);
5.2418 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_IMPL, "space___", true, 30373, 30539, 0);
5.2419 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "COMMENT...", true, 30543, 30545, 0);
5.2420 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 5, PlsqlBlockType.FUNCTION_IMPL, "Get_Dml_Event___", true, 30549, 30884, 3);
5.2421 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE trigger_type_\n WHEN 'NEW'", true, 30654, 30727, 0);
5.2422 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.CASE, "WHEN 'MODIFY'", true, 30737, 30785, 0);
5.2423 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.CASE, "WHEN 'REMOVE'", true, 30795, 30859, 0);
5.2424 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "COMMENT...", true, 30888, 30890, 0);
5.2425 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 7, PlsqlBlockType.FUNCTION_IMPL, "Get_Columns___", true, 30894, 32204, 3);
5.2426 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.IF, "IF column_list_ IS NULL", true, 31323, 31392, 0);
5.2427 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Find all attributes in Search Domain Title", true, 31399, 31444, 0);
5.2428 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks(), 2, PlsqlBlockType.LOOP, "", true, 31508, 32157, 4);
5.2429 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find column name", true, 31522, 31541, 0);
5.2430 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF column_name_ IS NOT NULL", true, 31625, 31745, 0);
5.2431 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Find new attribute", true, 31755, 31776, 0);
5.2432 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "IF pos_ = 0", true, 31879, 32141, 1);
5.2433 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find column name", true, 31954, 31973, 0);
5.2434 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "COMMENT...", true, 32208, 32210, 0);
5.2435 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 9, PlsqlBlockType.FUNCTION_IMPL, "Create_If_Stmt___", true, 32214, 34491, 4);
5.2436 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF column_list_ IS NULL", true, 32715, 32780, 0);
5.2437 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Find all attributes in Search Domain Title", true, 32787, 32832, 0);
5.2438 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (tmp_column_list_ IS NOT NULL)", true, 32918, 33004, 0);
5.2439 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks(), 3, PlsqlBlockType.LOOP, "", true, 33011, 34444, 5);
5.2440 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (i_ > 1)", true, 33025, 33113, 0);
5.2441 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Find column name", true, 33123, 33142, 0);
5.2442 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "IF column_name_ IS NOT NULL", true, 33226, 33623, 0);
5.2443 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Find new attribute", true, 33633, 33654, 0);
5.2444 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks(), 4, PlsqlBlockType.IF, "IF pos_ = 0", true, 33784, 34428, 2);
5.2445 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (i_ > 1 AND found_)", true, 33813, 33918, 0);
5.2446 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Find column name", true, 33977, 33996, 0);
5.2447 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "COMMENT...", true, 34495, 34497, 0);
5.2448 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 11, PlsqlBlockType.FUNCTION_IMPL, "Replace_Parameter___", true, 34501, 35656, 5);
5.2449 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 34766, 34768, 0);
5.2450 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_param", true, 34775, 34933, 0);
5.2451 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (pos_ = 0)", true, 34994, 35052, 0);
5.2452 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Replace all parameters used as parameters to PL/SQL method", true, 35059, 35120, 0);
5.2453 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "par IN get_param", true, 35127, 35604, 3);
5.2454 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF par.current_value = 'TRUE'", true, 35162, 35312, 0);
5.2455 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "IF par.new_value = 'TRUE'", true, 35322, 35468, 0);
5.2456 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.IF, "IF pos_ = 0", true, 35526, 35588, 0);
5.2457 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 12, PlsqlBlockType.CASE, "CASE trigger_type_\n WHEN 'NEW'", true, 35763, 35881, 0);
5.2458 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 13, PlsqlBlockType.CASE, "WHEN 'MODIFY'", true, 35888, 36353, 3);
5.2459 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Build If statement for modify", true, 35994, 36026, 0);
5.2460 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (if_stmt_start_ IS NOT NULL)", true, 36108, 36219, 0);
5.2461 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(13).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 36229, 36319, 0);
5.2462 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 14, PlsqlBlockType.CASE, "WHEN 'REMOVE'", true, 36360, 36469, 0);
5.2463 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 15, PlsqlBlockType.COMMENT, "-- Build PL/SQL statement", true, 36473, 36498, 0);
5.2464 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 16, PlsqlBlockType.FOR_LOOP, "par_ IN get_param", true, 37005, 38309, 7);
5.2465 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (par_.id_type = 'DATETIME')", true, 37038, 37174, 0);
5.2466 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (par_.id_type = 'DATE')", true, 37181, 37312, 0);
5.2467 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (par_.id_type = 'TIME')", true, 37319, 37450, 0);
5.2468 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 37457, 37543, 0);
5.2469 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "COMMENT...", true, 37550, 37552, 0);
5.2470 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 5, PlsqlBlockType.IF, "IF par_.plsql_method IS NOT NULL", true, 37559, 37803, 0);
5.2471 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSE", true, 37810, 38296, 2);
5.2472 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF par_.current_value = 'TRUE'", true, 37824, 38050, 0);
5.2473 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.IF, "IF par_.new_value = 'TRUE'", true, 38060, 38282, 0);
5.2474 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "COMMENT...", true, 38703, 38705, 0);
5.2475 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 34, PlsqlBlockType.FUNCTION_IMPL, "Get_Trigger_Name___", true, 38976, 39426, 3);
5.2476 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(34).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE trigger_type_\n WHEN 'NEW'", true, 39097, 39204, 0);
5.2477 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(34).getChildBlocks(), 1, PlsqlBlockType.CASE, "WHEN 'MODIFY'", true, 39211, 39296, 0);
5.2478 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(34).getChildBlocks(), 2, PlsqlBlockType.CASE, "WHEN 'REMOVE'", true, 39303, 39401, 0);
5.2479 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 35, PlsqlBlockType.PROCEDURE_IMPL, "Remove_Custom_Triggers___", true, 39428, 39958, 4);
5.2480 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(35).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Create triggers per type (New, Modify, Remove)", true, 39593, 39642, 0);
5.2481 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(35).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (rec_.new_row = 'TRUE')", true, 39646, 39733, 0);
5.2482 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(35).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_.modify_row = 'TRUE')", true, 39737, 39830, 0);
5.2483 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(35).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (rec_.remove_row = 'TRUE')", true, 39834, 39927, 0);
5.2484 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 36, PlsqlBlockType.PROCEDURE_IMPL, "Remove_Custom_Trigger___", true, 39960, 40323, 1);
5.2485 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(36).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 40112, 40114, 0);
5.2486 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 37, PlsqlBlockType.FUNCTION_IMPL, "Create_Trigger_Name___", true, 40325, 40707, 0);
5.2487 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 38, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 40708, 40941, 0);
5.2488 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 39, PlsqlBlockType.PROCEDURE_IMPL, "Export__", true, 40943, 45806, 7);
5.2489 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_param", true, 41203, 41391, 0);
5.2490 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Fetch the event details", true, 41459, 41485, 0);
5.2491 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Only allowed to export Custom Events", true, 41553, 41592, 0);
5.2492 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (nvl(rec.event_type, 'APPLICATION') != 'CUSTOM')", true, 41596, 41763, 0);
5.2493 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Create Export file", true, 41767, 41800, 0);
5.2494 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Create Main Message", true, 43274, 43308, 0);
5.2495 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 6, PlsqlBlockType.FOR_LOOP, "rec2 IN get_param", true, 44698, 45652, 0);
5.2496 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 40, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PROTECTED METHODS ", true, 45808, 46277, 0);
5.2497 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 41, PlsqlBlockType.FUNCTION_IMPL, "Get_Event_Description", true, 46279, 46699, 1);
5.2498 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(41).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 46438, 46582, 0);
5.2499 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 42, PlsqlBlockType.FUNCTION_IMPL, "Get_Event_Enable", true, 46702, 47171, 3);
5.2500 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(42).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 46851, 46990, 0);
5.2501 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(42).getChildBlocks(), 1, PlsqlBlockType.IF, "IF temp_ IS NULL", true, 47067, 47110, 0);
5.2502 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(42).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 47114, 47149, 0);
5.2503 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 43, PlsqlBlockType.PROCEDURE_IMPL, "Set_Event_Enable", true, 47174, 48557, 4);
5.2504 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(43).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (event_id_ <> upper(event_id_))", true, 47534, 47695, 0);
5.2505 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(43).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "SELECT COUNT(*)", true, 47699, 47870, 0);
5.2506 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(43).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (temp_ > 0)", true, 47954, 48244, 0);
5.2507 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(43).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 48248, 48535, 0);
5.2508 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 44, PlsqlBlockType.PROCEDURE_IMPL, "Refresh", true, 48560, 50005, 4);
5.2509 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(44).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (event_id_ <> upper(event_id_))", true, 49095, 49256, 0);
5.2510 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(44).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "SELECT COUNT(*)", true, 49260, 49383, 0);
5.2511 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(44).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (temp_ = 0)", true, 49388, 49818, 1);
5.2512 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(44).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO fnd_event_tab", true, 49414, 49817, 0);
5.2513 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(44).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 49822, 49992, 1);
5.2514 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(44).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE fnd_event_tab", true, 49833, 49980, 0);
5.2515 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 45, PlsqlBlockType.PROCEDURE_IMPL, "Register_Custom_Event", true, 50007, 51787, 1);
5.2516 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(45).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Check_Exist___(event_lu_name_, event_id_))", true, 51447, 51709, 2);
5.2517 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(45).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE FROM fnd_event_tab WHERE event_lu_name = event_lu_name_ AND event_id = event_id_", true, 51505, 51592, 0);
5.2518 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(45).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "DELETE FROM fnd_event_parameter_tab WHERE event_lu_name = event_lu_name_ AND event_id = event_id_", true, 51600, 51697, 0);
5.2519 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 46, PlsqlBlockType.PROCEDURE_IMPL, "Unfresh", true, 51789, 52246, 2);
5.2520 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(46).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT COUNT(*)", true, 51958, 52083, 0);
5.2521 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(46).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (temp_ > 0)", true, 52088, 52233, 1);
5.2522 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE FROM fnd_event_tab", true, 52114, 52221, 0);
5.2523 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 47, PlsqlBlockType.FUNCTION_IMPL, "Get", true, 52249, 52624, 1);
5.2524 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(47).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 52367, 52525, 0);
5.2525 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 48, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 52628, 53092, 0);
5.2526 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 49, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 53094, 53136, 0);
5.2527 - assertBlock(lstBlockFac, 7, PlsqlBlockType.COMMENT, "COMMENT...", false, 53270, 53347, 0);
5.2528 - } finally {
5.2529 - if (fileObject != null) {
5.2530 - fileObject.delete();
5.2531 - }
5.2532 - }
5.2533 - }
5.2534 + assertTrue(lstBlockFac.size() == 8);
5.2535 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: FndEvent", false, 0, 1577, 0);
5.2536 + assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- VIEWS FOR SELECTS ", false, 1861, 2094, 0);
5.2537 + assertBlock(lstBlockFac, 2, PlsqlBlockType.VIEW, "FND_EVENT", false, 2129, 3044, 0);
5.2538 + assertBlock(lstBlockFac, 3, PlsqlBlockType.TABLE_COMMENT, "FND_EVENT", false, 3047, 3122, 0);
5.2539 + assertBlock(lstBlockFac, 4, PlsqlBlockType.COLUMN_COMMENT, "&AO", false, 3125, 4663, 0);
5.2540 + assertBlock(lstBlockFac, 5, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 4666, 4899, 0);
5.2541 + assertBlock(lstBlockFac, 6, PlsqlBlockType.PACKAGE_BODY, "FND_EVENT_API", false, 4943, 53148, 50);
5.2542 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 5227, 5460, 0);
5.2543 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 1, PlsqlBlockType.PROCEDURE_DEF, "Create_Custom_Trigger___", true, 5462, 5582, 0);
5.2544 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 2, PlsqlBlockType.PROCEDURE_DEF, "Create_Custom_Triggers___", true, 5584, 5656, 0);
5.2545 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_DEF, "Get_Trigger_Name___", true, 5658, 5767, 0);
5.2546 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 4, PlsqlBlockType.PROCEDURE_DEF, "Remove_Custom_Trigger___", true, 5769, 5889, 0);
5.2547 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 5, PlsqlBlockType.PROCEDURE_DEF, "Remove_Custom_Triggers___", true, 5891, 5963, 0);
5.2548 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 6, PlsqlBlockType.FUNCTION_DEF, "Create_Trigger_Name___", true, 5965, 6042, 0);
5.2549 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS ", true, 6043, 6918, 0);
5.2550 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 8, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Id___", true, 6920, 8072, 5);
5.2551 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 7214, 7364, 0);
5.2552 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "exist_control", true, 7368, 7456, 0);
5.2553 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 7521, 7605, 0);
5.2554 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(8).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 7691, 7772, 0);
5.2555 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(8).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 7776, 7843, 0);
5.2556 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 9, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Keys___", true, 8074, 8705, 3);
5.2557 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 8249, 8399, 0);
5.2558 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 8464, 8537, 0);
5.2559 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 8541, 8607, 0);
5.2560 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 10, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Id___", true, 8707, 9114, 2);
5.2561 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 8817, 8898, 0);
5.2562 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%NOTFOUND)", true, 8954, 9052, 0);
5.2563 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 11, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Keys___", true, 9117, 9511, 1);
5.2564 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 9268, 9395, 0);
5.2565 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 12, PlsqlBlockType.FUNCTION_IMPL, "Check_Exist___", true, 9513, 9994, 2);
5.2566 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 9641, 9776, 0);
5.2567 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(12).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 9845, 9932, 0);
5.2568 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Get_Id_Version_By_Keys___", true, 9996, 10457, 1);
5.2569 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_version", true, 10180, 10330, 0);
5.2570 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR INSERT ", true, 10459, 11204, 0);
5.2571 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Insert___", true, 11206, 11890, 0);
5.2572 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Insert___", true, 11893, 14969, 1);
5.2573 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 12088, 14317, 15);
5.2574 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'EVENT_LU_NAME')", true, 12165, 12240, 0);
5.2575 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_ID')", true, 12247, 12322, 0);
5.2576 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_DESCRIPTION')", true, 12329, 12415, 0);
5.2577 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_ENABLE')", true, 12422, 12498, 0);
5.2578 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_TABLE_NAME')", true, 12505, 12589, 0);
5.2579 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_TYPE')", true, 12596, 12796, 1);
5.2580 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 12705, 12796, 0);
5.2581 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_TYPE_DB')", true, 12803, 12982, 1);
5.2582 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 12888, 12982, 0);
5.2583 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'MODIFIED_ATTRIBUTES')", true, 12989, 13079, 0);
5.2584 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (name_ = 'NEW_ROW')", true, 13086, 13274, 1);
5.2585 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 13186, 13274, 0);
5.2586 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (name_ = 'NEW_ROW_DB')", true, 13281, 13451, 1);
5.2587 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 13360, 13451, 0);
5.2588 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (name_ = 'MODIFY_ROW')", true, 13458, 13652, 1);
5.2589 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 13564, 13652, 0);
5.2590 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (name_ = 'MODIFY_ROW_DB')", true, 13659, 13835, 1);
5.2591 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 13744, 13835, 0);
5.2592 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (name_ = 'REMOVE_ROW')", true, 13842, 14036, 1);
5.2593 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 13948, 14036, 0);
5.2594 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (name_ = 'REMOVE_ROW_DB')", true, 14043, 14219, 1);
5.2595 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 14128, 14219, 0);
5.2596 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSE", true, 14226, 14304, 0);
5.2597 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 17, PlsqlBlockType.PROCEDURE_IMPL, "Insert___", true, 14972, 16385, 6);
5.2598 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 15241, 15243, 0);
5.2599 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (nvl(newrec_.event_enable, 'FALSE') = 'TRUE')", true, 15247, 15409, 0);
5.2600 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "COMMENT...", true, 15413, 15415, 0);
5.2601 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks(), 3, PlsqlBlockType.STATEMENT, "INSERT", true, 15419, 16093, 0);
5.2602 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Create Custom Defined triggers", true, 16098, 16131, 0);
5.2603 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (newrec_.event_type = 'CUSTOM')", true, 16135, 16290, 1);
5.2604 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(17).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.event_enable = 'TRUE')", true, 16181, 16279, 0);
5.2605 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 18, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR UPDATE ", true, 16387, 16971, 0);
5.2606 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 19, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Update___", true, 16973, 19888, 1);
5.2607 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 17196, 19452, 15);
5.2608 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'EVENT_LU_NAME')", true, 17273, 17365, 0);
5.2609 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_ID')", true, 17372, 17457, 0);
5.2610 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_DESCRIPTION')", true, 17464, 17550, 0);
5.2611 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_ENABLE')", true, 17557, 17633, 0);
5.2612 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_TABLE_NAME')", true, 17640, 17724, 0);
5.2613 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_TYPE')", true, 17731, 17931, 1);
5.2614 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 17840, 17931, 0);
5.2615 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'EVENT_TYPE_DB')", true, 17938, 18117, 1);
5.2616 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 18023, 18117, 0);
5.2617 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'MODIFIED_ATTRIBUTES')", true, 18124, 18214, 0);
5.2618 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (name_ = 'NEW_ROW')", true, 18221, 18409, 1);
5.2619 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 18321, 18409, 0);
5.2620 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (name_ = 'NEW_ROW_DB')", true, 18416, 18586, 1);
5.2621 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 18495, 18586, 0);
5.2622 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (name_ = 'MODIFY_ROW')", true, 18593, 18787, 1);
5.2623 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 18699, 18787, 0);
5.2624 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (name_ = 'MODIFY_ROW_DB')", true, 18794, 18970, 1);
5.2625 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 18879, 18970, 0);
5.2626 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (name_ = 'REMOVE_ROW')", true, 18977, 19171, 1);
5.2627 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 19083, 19171, 0);
5.2628 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (name_ = 'REMOVE_ROW_DB')", true, 19178, 19354, 1);
5.2629 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 19263, 19354, 0);
5.2630 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSE", true, 19361, 19439, 0);
5.2631 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Update___", true, 19891, 22450, 7);
5.2632 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_event_count", true, 20152, 20350, 0);
5.2633 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (nvl(oldrec_.event_enable, 'FALSE') = 'FALSE' AND newrec_.event_enable = 'TRUE')", true, 20360, 20700, 1);
5.2634 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dummy_ = 0)", true, 20554, 20689, 0);
5.2635 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "COMMENT...", true, 20704, 20706, 0);
5.2636 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 3, PlsqlBlockType.IF, "IF by_keys_", true, 20810, 21460, 1);
5.2637 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE fnd_event_tab", true, 20833, 21459, 0);
5.2638 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 21464, 22051, 1);
5.2639 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE fnd_event_tab", true, 21475, 22039, 0);
5.2640 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Create/remove Custom Defined triggers", true, 22055, 22095, 0);
5.2641 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (newrec_.event_type = 'CUSTOM')", true, 22099, 22355, 2);
5.2642 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.event_enable = 'TRUE')", true, 22145, 22274, 0);
5.2643 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(20).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 22281, 22344, 0);
5.2644 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 21, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR DELETE ", true, 22452, 23049, 0);
5.2645 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 22, PlsqlBlockType.PROCEDURE_IMPL, "Check_Delete___", true, 23051, 23289, 0);
5.2646 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Delete___", true, 23292, 23734, 3);
5.2647 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 23525, 23585, 0);
5.2648 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(23).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Remove Custom Defined triggers", true, 23590, 23623, 0);
5.2649 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(23).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (remrec_.event_type = 'CUSTOM')", true, 23627, 23719, 0);
5.2650 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 24, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 23736, 26037, 0);
5.2651 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 25, PlsqlBlockType.PROCEDURE_IMPL, "Lock__", true, 26039, 26334, 0);
5.2652 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 26, PlsqlBlockType.PROCEDURE_IMPL, "New__", true, 26337, 26941, 3);
5.2653 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(26).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'PREPARE')", true, 26610, 26671, 0);
5.2654 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(26).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'CHECK')", true, 26675, 26751, 0);
5.2655 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(26).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 26755, 26893, 0);
5.2656 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 27, PlsqlBlockType.PROCEDURE_IMPL, "Modify__", true, 26944, 27666, 2);
5.2657 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 27250, 27377, 0);
5.2658 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(27).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 27381, 27615, 0);
5.2659 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 28, PlsqlBlockType.PROCEDURE_IMPL, "Remove__", true, 27669, 28221, 2);
5.2660 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(28).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 27904, 28009, 0);
5.2661 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(28).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 28013, 28170, 0);
5.2662 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 29, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 28223, 28676, 0);
5.2663 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 30, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 28678, 28953, 1);
5.2664 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(30).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(event_lu_name_, event_id_))", true, 28832, 28942, 0);
5.2665 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 31, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 28955, 29188, 0);
5.2666 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 32, PlsqlBlockType.PROCEDURE_IMPL, "Create_Custom_Triggers___", true, 29190, 29720, 4);
5.2667 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(32).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Create triggers per type (New, Modify, Remove)", true, 29355, 29404, 0);
5.2668 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(32).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (rec_.new_row = 'TRUE')", true, 29408, 29495, 0);
5.2669 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(32).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_.modify_row = 'TRUE')", true, 29499, 29592, 0);
5.2670 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(32).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (rec_.remove_row = 'TRUE')", true, 29596, 29689, 0);
5.2671 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 33, PlsqlBlockType.PROCEDURE_IMPL, "Create_Custom_Trigger___", true, 29722, 38974, 18);
5.2672 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 30211, 30213, 0);
5.2673 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_param", true, 30217, 30363, 0);
5.2674 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "COMMENT...", true, 30367, 30369, 0);
5.2675 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_IMPL, "space___", true, 30373, 30539, 0);
5.2676 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "COMMENT...", true, 30543, 30545, 0);
5.2677 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 5, PlsqlBlockType.FUNCTION_IMPL, "Get_Dml_Event___", true, 30549, 30884, 3);
5.2678 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE trigger_type_\n WHEN 'NEW'", true, 30654, 30727, 0);
5.2679 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.CASE, "WHEN 'MODIFY'", true, 30737, 30785, 0);
5.2680 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.CASE, "WHEN 'REMOVE'", true, 30795, 30859, 0);
5.2681 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "COMMENT...", true, 30888, 30890, 0);
5.2682 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 7, PlsqlBlockType.FUNCTION_IMPL, "Get_Columns___", true, 30894, 32204, 3);
5.2683 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.IF, "IF column_list_ IS NULL", true, 31323, 31392, 0);
5.2684 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Find all attributes in Search Domain Title", true, 31399, 31444, 0);
5.2685 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks(), 2, PlsqlBlockType.LOOP, "", true, 31508, 32157, 4);
5.2686 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find column name", true, 31522, 31541, 0);
5.2687 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF column_name_ IS NOT NULL", true, 31625, 31745, 0);
5.2688 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Find new attribute", true, 31755, 31776, 0);
5.2689 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "IF pos_ = 0", true, 31879, 32141, 1);
5.2690 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Find column name", true, 31954, 31973, 0);
5.2691 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "COMMENT...", true, 32208, 32210, 0);
5.2692 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 9, PlsqlBlockType.FUNCTION_IMPL, "Create_If_Stmt___", true, 32214, 34491, 4);
5.2693 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF column_list_ IS NULL", true, 32715, 32780, 0);
5.2694 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Find all attributes in Search Domain Title", true, 32787, 32832, 0);
5.2695 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (tmp_column_list_ IS NOT NULL)", true, 32918, 33004, 0);
5.2696 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks(), 3, PlsqlBlockType.LOOP, "", true, 33011, 34444, 5);
5.2697 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (i_ > 1)", true, 33025, 33113, 0);
5.2698 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Find column name", true, 33123, 33142, 0);
5.2699 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "IF column_name_ IS NOT NULL", true, 33226, 33623, 0);
5.2700 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Find new attribute", true, 33633, 33654, 0);
5.2701 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks(), 4, PlsqlBlockType.IF, "IF pos_ = 0", true, 33784, 34428, 2);
5.2702 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (i_ > 1 AND found_)", true, 33813, 33918, 0);
5.2703 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(9).getChildBlocks().get(3).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Find column name", true, 33977, 33996, 0);
5.2704 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "COMMENT...", true, 34495, 34497, 0);
5.2705 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 11, PlsqlBlockType.FUNCTION_IMPL, "Replace_Parameter___", true, 34501, 35656, 5);
5.2706 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 34766, 34768, 0);
5.2707 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_param", true, 34775, 34933, 0);
5.2708 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (pos_ = 0)", true, 34994, 35052, 0);
5.2709 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Replace all parameters used as parameters to PL/SQL method", true, 35059, 35120, 0);
5.2710 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "par IN get_param", true, 35127, 35604, 3);
5.2711 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF par.current_value = 'TRUE'", true, 35162, 35312, 0);
5.2712 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "IF par.new_value = 'TRUE'", true, 35322, 35468, 0);
5.2713 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(11).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.IF, "IF pos_ = 0", true, 35526, 35588, 0);
5.2714 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 12, PlsqlBlockType.CASE, "CASE trigger_type_\n WHEN 'NEW'", true, 35763, 35881, 0);
5.2715 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 13, PlsqlBlockType.CASE, "WHEN 'MODIFY'", true, 35888, 36353, 3);
5.2716 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Build If statement for modify", true, 35994, 36026, 0);
5.2717 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (if_stmt_start_ IS NOT NULL)", true, 36108, 36219, 0);
5.2718 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(13).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 36229, 36319, 0);
5.2719 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 14, PlsqlBlockType.CASE, "WHEN 'REMOVE'", true, 36360, 36469, 0);
5.2720 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 15, PlsqlBlockType.COMMENT, "-- Build PL/SQL statement", true, 36473, 36498, 0);
5.2721 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 16, PlsqlBlockType.FOR_LOOP, "par_ IN get_param", true, 37005, 38309, 7);
5.2722 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (par_.id_type = 'DATETIME')", true, 37038, 37174, 0);
5.2723 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (par_.id_type = 'DATE')", true, 37181, 37312, 0);
5.2724 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (par_.id_type = 'TIME')", true, 37319, 37450, 0);
5.2725 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 37457, 37543, 0);
5.2726 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "COMMENT...", true, 37550, 37552, 0);
5.2727 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 5, PlsqlBlockType.IF, "IF par_.plsql_method IS NOT NULL", true, 37559, 37803, 0);
5.2728 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSE", true, 37810, 38296, 2);
5.2729 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF par_.current_value = 'TRUE'", true, 37824, 38050, 0);
5.2730 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks().get(16).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.IF, "IF par_.new_value = 'TRUE'", true, 38060, 38282, 0);
5.2731 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(33).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "COMMENT...", true, 38703, 38705, 0);
5.2732 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 34, PlsqlBlockType.FUNCTION_IMPL, "Get_Trigger_Name___", true, 38976, 39426, 3);
5.2733 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(34).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE trigger_type_\n WHEN 'NEW'", true, 39097, 39204, 0);
5.2734 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(34).getChildBlocks(), 1, PlsqlBlockType.CASE, "WHEN 'MODIFY'", true, 39211, 39296, 0);
5.2735 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(34).getChildBlocks(), 2, PlsqlBlockType.CASE, "WHEN 'REMOVE'", true, 39303, 39401, 0);
5.2736 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 35, PlsqlBlockType.PROCEDURE_IMPL, "Remove_Custom_Triggers___", true, 39428, 39958, 4);
5.2737 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(35).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Create triggers per type (New, Modify, Remove)", true, 39593, 39642, 0);
5.2738 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(35).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (rec_.new_row = 'TRUE')", true, 39646, 39733, 0);
5.2739 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(35).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_.modify_row = 'TRUE')", true, 39737, 39830, 0);
5.2740 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(35).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (rec_.remove_row = 'TRUE')", true, 39834, 39927, 0);
5.2741 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 36, PlsqlBlockType.PROCEDURE_IMPL, "Remove_Custom_Trigger___", true, 39960, 40323, 1);
5.2742 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(36).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 40112, 40114, 0);
5.2743 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 37, PlsqlBlockType.FUNCTION_IMPL, "Create_Trigger_Name___", true, 40325, 40707, 0);
5.2744 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 38, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 40708, 40941, 0);
5.2745 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 39, PlsqlBlockType.PROCEDURE_IMPL, "Export__", true, 40943, 45806, 7);
5.2746 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_param", true, 41203, 41391, 0);
5.2747 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Fetch the event details", true, 41459, 41485, 0);
5.2748 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Only allowed to export Custom Events", true, 41553, 41592, 0);
5.2749 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (nvl(rec.event_type, 'APPLICATION') != 'CUSTOM')", true, 41596, 41763, 0);
5.2750 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Create Export file", true, 41767, 41800, 0);
5.2751 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Create Main Message", true, 43274, 43308, 0);
5.2752 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(39).getChildBlocks(), 6, PlsqlBlockType.FOR_LOOP, "rec2 IN get_param", true, 44698, 45652, 0);
5.2753 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 40, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PROTECTED METHODS ", true, 45808, 46277, 0);
5.2754 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 41, PlsqlBlockType.FUNCTION_IMPL, "Get_Event_Description", true, 46279, 46699, 1);
5.2755 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(41).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 46438, 46582, 0);
5.2756 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 42, PlsqlBlockType.FUNCTION_IMPL, "Get_Event_Enable", true, 46702, 47171, 3);
5.2757 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(42).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 46851, 46990, 0);
5.2758 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(42).getChildBlocks(), 1, PlsqlBlockType.IF, "IF temp_ IS NULL", true, 47067, 47110, 0);
5.2759 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(42).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 47114, 47149, 0);
5.2760 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 43, PlsqlBlockType.PROCEDURE_IMPL, "Set_Event_Enable", true, 47174, 48557, 4);
5.2761 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(43).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (event_id_ <> upper(event_id_))", true, 47534, 47695, 0);
5.2762 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(43).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "SELECT COUNT(*)", true, 47699, 47870, 0);
5.2763 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(43).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (temp_ > 0)", true, 47954, 48244, 0);
5.2764 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(43).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 48248, 48535, 0);
5.2765 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 44, PlsqlBlockType.PROCEDURE_IMPL, "Refresh", true, 48560, 50005, 4);
5.2766 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(44).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (event_id_ <> upper(event_id_))", true, 49095, 49256, 0);
5.2767 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(44).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "SELECT COUNT(*)", true, 49260, 49383, 0);
5.2768 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(44).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (temp_ = 0)", true, 49388, 49818, 1);
5.2769 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(44).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO fnd_event_tab", true, 49414, 49817, 0);
5.2770 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(44).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 49822, 49992, 1);
5.2771 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(44).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE fnd_event_tab", true, 49833, 49980, 0);
5.2772 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 45, PlsqlBlockType.PROCEDURE_IMPL, "Register_Custom_Event", true, 50007, 51787, 1);
5.2773 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(45).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Check_Exist___(event_lu_name_, event_id_))", true, 51447, 51709, 2);
5.2774 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(45).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE FROM fnd_event_tab WHERE event_lu_name = event_lu_name_ AND event_id = event_id_", true, 51505, 51592, 0);
5.2775 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(45).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "DELETE FROM fnd_event_parameter_tab WHERE event_lu_name = event_lu_name_ AND event_id = event_id_", true, 51600, 51697, 0);
5.2776 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 46, PlsqlBlockType.PROCEDURE_IMPL, "Unfresh", true, 51789, 52246, 2);
5.2777 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(46).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT COUNT(*)", true, 51958, 52083, 0);
5.2778 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(46).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (temp_ > 0)", true, 52088, 52233, 1);
5.2779 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE FROM fnd_event_tab", true, 52114, 52221, 0);
5.2780 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 47, PlsqlBlockType.FUNCTION_IMPL, "Get", true, 52249, 52624, 1);
5.2781 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(47).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 52367, 52525, 0);
5.2782 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 48, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 52628, 53092, 0);
5.2783 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 49, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 53094, 53136, 0);
5.2784 + assertBlock(lstBlockFac, 7, PlsqlBlockType.COMMENT, "COMMENT...", false, 53270, 53347, 0);
5.2785 + } finally {
5.2786 + if (fileObject != null) {
5.2787 + fileObject.delete();
5.2788 + }
5.2789 + }
5.2790 + }
5.2791
5.2792 - @Test
5.2793 - public void testAdvanced9() throws IOException, BadLocationException {
5.2794 - System.out.println("Advanced test case 9");
5.2795 - FileObject fileObject = fs.getRoot().createData("IdentityPayInfo.apy");
5.2796 - assertNotNull(fileObject);
5.2797 - try {
5.2798 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "IdentityPayInfo.apy");
5.2799 - assertNotNull(blockFac);
5.2800 + @Test
5.2801 + public void testAdvanced9() throws IOException, BadLocationException {
5.2802 + System.out.println("Advanced test case 9");
5.2803 + FileObject fileObject = fs.getRoot().createData("IdentityPayInfo.apy");
5.2804 + assertNotNull(fileObject);
5.2805 + try {
5.2806 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "IdentityPayInfo.apy");
5.2807 + assertNotNull(blockFac);
5.2808
5.2809 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.2810 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.2811 // printHierarchy(lstBlockFac, "");
5.2812 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.2813 - assertTrue(lstBlockFac.size() == 52);
5.2814 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: IdentityPayInfo", false, 0, 9418, 0);
5.2815 - assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- VIEWS FOR SELECTS ", false, 10475, 10708, 0);
5.2816 - assertBlock(lstBlockFac, 2, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO", false, 10738, 12658, 0);
5.2817 - assertBlock(lstBlockFac, 3, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO", false, 12661, 12739, 0);
5.2818 - assertBlock(lstBlockFac, 4, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO", false, 12742, 16182, 0);
5.2819 - assertBlock(lstBlockFac, 5, PlsqlBlockType.COMMENT, "-- Bug 77136, begin, Table join with supplier_info_tab, in order to get name and association no directly.", false, 16185, 16290, 0);
5.2820 - assertBlock(lstBlockFac, 6, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_SU_QRY", false, 16325, 20258, 0);
5.2821 - assertBlock(lstBlockFac, 7, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_SU_QRY", false, 20261, 20346, 0);
5.2822 - assertBlock(lstBlockFac, 8, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_SU_QRY", false, 20349, 21761, 0);
5.2823 - assertBlock(lstBlockFac, 9, PlsqlBlockType.COMMENT, "-- Bug 77136, end", false, 21763, 21996, 0);
5.2824 - assertBlock(lstBlockFac, 10, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_CU_QRY", false, 22031, 27474, 0);
5.2825 - assertBlock(lstBlockFac, 11, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_CU_QRY", false, 27477, 27562, 0);
5.2826 - assertBlock(lstBlockFac, 12, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_CU_QRY", false, 27565, 30549, 0);
5.2827 - assertBlock(lstBlockFac, 13, PlsqlBlockType.COMMENT, "-- Bug 69035, End;", false, 30551, 30587, 0);
5.2828 - assertBlock(lstBlockFac, 14, PlsqlBlockType.COMMENT, "-- Bug 68653, Begin, Added new columns address and city", false, 30622, 30677, 0);
5.2829 - assertBlock(lstBlockFac, 15, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_SUPP", false, 30678, 32224, 0);
5.2830 - assertBlock(lstBlockFac, 16, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_SUPP", false, 32227, 32310, 0);
5.2831 - assertBlock(lstBlockFac, 17, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_SUPP", false, 32313, 33373, 0);
5.2832 - assertBlock(lstBlockFac, 18, PlsqlBlockType.COMMENT, "-- Bug 68653, End", false, 33375, 33392, 0);
5.2833 - assertBlock(lstBlockFac, 19, PlsqlBlockType.COMMENT, "-- Bug 68653, Begin, Added new columns address and city", false, 33428, 33483, 0);
5.2834 - assertBlock(lstBlockFac, 20, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_CUST", false, 33484, 34962, 0);
5.2835 - assertBlock(lstBlockFac, 21, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_CUST", false, 34965, 35048, 0);
5.2836 - assertBlock(lstBlockFac, 22, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_CUST", false, 35051, 36106, 0);
5.2837 - assertBlock(lstBlockFac, 23, PlsqlBlockType.COMMENT, "-- Bug 68653, End", false, 36108, 36125, 0);
5.2838 - assertBlock(lstBlockFac, 24, PlsqlBlockType.COMMENT, "-- Bug 68653, Begin, Added new columns address and city", false, 36159, 36214, 0);
5.2839 - assertBlock(lstBlockFac, 25, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_LOV", false, 36215, 37137, 0);
5.2840 - assertBlock(lstBlockFac, 26, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_LOV", false, 37140, 37231, 0);
5.2841 - assertBlock(lstBlockFac, 27, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_LOV", false, 37234, 37844, 0);
5.2842 - assertBlock(lstBlockFac, 28, PlsqlBlockType.COMMENT, "-- Bug 68653, End", false, 37846, 37863, 0);
5.2843 - assertBlock(lstBlockFac, 29, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_ALL", false, 37898, 38508, 0);
5.2844 - assertBlock(lstBlockFac, 30, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_ALL", false, 38511, 38593, 0);
5.2845 - assertBlock(lstBlockFac, 31, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_ALL", false, 38596, 39033, 0);
5.2846 - assertBlock(lstBlockFac, 32, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_PCT", false, 39067, 40386, 0);
5.2847 - assertBlock(lstBlockFac, 33, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_PCT", false, 40389, 40470, 0);
5.2848 - assertBlock(lstBlockFac, 34, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_PCT", false, 40473, 43144, 0);
5.2849 - assertBlock(lstBlockFac, 35, PlsqlBlockType.COMMENT, "-- Bug 69035, Begin, Added reminder_template_id,interest_template_id and their descriptions ", false, 43185, 43279, 0);
5.2850 - assertBlock(lstBlockFac, 36, PlsqlBlockType.VIEW, "PAYER_INFO_QRY", false, 43280, 45980, 0);
5.2851 - assertBlock(lstBlockFac, 37, PlsqlBlockType.TABLE_COMMENT, "PAYER_INFO_QRY", false, 45983, 46071, 0);
5.2852 - assertBlock(lstBlockFac, 38, PlsqlBlockType.COLUMN_COMMENT, "PAYER_INFO_QRY", false, 46074, 47822, 0);
5.2853 - assertBlock(lstBlockFac, 39, PlsqlBlockType.COMMENT, "-- Bug 69035, End", false, 47824, 47841, 0);
5.2854 - assertBlock(lstBlockFac, 40, PlsqlBlockType.VIEW, "MULTI_CUS_DETAILS_QRY", false, 47881, 48808, 0);
5.2855 - assertBlock(lstBlockFac, 41, PlsqlBlockType.TABLE_COMMENT, "MULTI_CUS_DETAILS_QRY", false, 48811, 48901, 0);
5.2856 - assertBlock(lstBlockFac, 42, PlsqlBlockType.COLUMN_COMMENT, "MULTI_CUS_DETAILS_QRY", false, 48904, 49453, 0);
5.2857 - assertBlock(lstBlockFac, 43, PlsqlBlockType.VIEW, "MULTI_SUP_DETAILS_QRY", false, 49498, 50374, 0);
5.2858 - assertBlock(lstBlockFac, 44, PlsqlBlockType.TABLE_COMMENT, "MULTI_SUP_DETAILS_QRY", false, 50377, 50467, 0);
5.2859 - assertBlock(lstBlockFac, 45, PlsqlBlockType.COLUMN_COMMENT, "MULTI_SUP_DETAILS_QRY", false, 50470, 50913, 0);
5.2860 - assertBlock(lstBlockFac, 46, PlsqlBlockType.VIEW, "MULTI_SUP_ADDRESS_QRY", false, 50954, 51642, 0);
5.2861 - assertBlock(lstBlockFac, 47, PlsqlBlockType.TABLE_COMMENT, "MULTI_SUP_ADDRESS_QRY", false, 51645, 51735, 0);
5.2862 - assertBlock(lstBlockFac, 48, PlsqlBlockType.COLUMN_COMMENT, "MULTI_SUP_ADDRESS_QRY", false, 51738, 52176, 0);
5.2863 - assertBlock(lstBlockFac, 49, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 52179, 52412, 0);
5.2864 - assertBlock(lstBlockFac, 50, PlsqlBlockType.PACKAGE_BODY, "IDENTITY_PAY_INFO_API", false, 52451, 146515, 93);
5.2865 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 52491, 52724, 0);
5.2866 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 1, PlsqlBlockType.PROCEDURE_DEF, "Save_Identity_Notes___", true, 52725, 52823, 0);
5.2867 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_DEF, "Get_Next_Format_No___", true, 52825, 52904, 0);
5.2868 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 3, PlsqlBlockType.PROCEDURE_DEF, "Check_Cascade___", true, 52906, 53029, 0);
5.2869 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 4, PlsqlBlockType.PROCEDURE_DEF, "Import___", true, 53031, 53125, 0);
5.2870 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 5, PlsqlBlockType.PROCEDURE_DEF, "Copy___", true, 53127, 53221, 0);
5.2871 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_DEF, "Export___", true, 53223, 53319, 0);
5.2872 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 7, PlsqlBlockType.PROCEDURE_DEF, "User_Allowed___", true, 53321, 53375, 0);
5.2873 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS ", true, 53381, 54256, 0);
5.2874 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 9, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Id___", true, 54258, 55408, 5);
5.2875 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 54550, 54700, 0);
5.2876 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "exist_control", true, 54704, 54792, 0);
5.2877 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 54857, 54941, 0);
5.2878 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(9).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 55027, 55108, 0);
5.2879 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(9).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 55112, 55179, 0);
5.2880 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 10, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Keys___", true, 55410, 56100, 3);
5.2881 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 55616, 55794, 0);
5.2882 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 55859, 55932, 0);
5.2883 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(10).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 55936, 56002, 0);
5.2884 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 11, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Id___", true, 56102, 56509, 2);
5.2885 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 56212, 56293, 0);
5.2886 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(11).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%NOTFOUND)", true, 56349, 56447, 0);
5.2887 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 12, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Keys___", true, 56511, 56964, 1);
5.2888 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 56693, 56848, 0);
5.2889 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 13, PlsqlBlockType.FUNCTION_IMPL, "Check_Exist___", true, 56966, 57506, 2);
5.2890 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 57125, 57288, 0);
5.2891 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 57357, 57444, 0);
5.2892 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_IMPL, "Get_Id_Version_By_Keys___", true, 57508, 58032, 1);
5.2893 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_version", true, 57727, 57905, 0);
5.2894 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 15, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR INSERT ", true, 58034, 58779, 0);
5.2895 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Insert___", true, 58781, 60476, 3);
5.2896 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Default value 'No Advice'", true, 59354, 59391, 0);
5.2897 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(16).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (party_type_ = Party_Type_API.Decode('CUSTOMER'))", true, 59479, 59904, 0);
5.2898 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(16).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (party_type_ = Party_Type_API.Decode('SUPPLIER') )", true, 59908, 60142, 0);
5.2899 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 17, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Insert___", true, 60479, 68330, 6);
5.2900 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 60674, 66347, 30);
5.2901 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'COMPANY')", true, 60751, 60896, 0);
5.2902 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'IDENTITY')", true, 60903, 60971, 0);
5.2903 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'PARTY_TYPE')", true, 60978, 61318, 1);
5.2904 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.party_type <> 'COMPANY')", true, 61172, 61318, 0);
5.2905 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'PARTY_TYPE_DB')", true, 61325, 61706, 1);
5.2906 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.party_type <> Party_Type_API.Decode('COMPANY'))", true, 61534, 61706, 0);
5.2907 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'PRIORITY')", true, 61713, 61814, 0);
5.2908 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'BLOCKED_FOR_PAYMENT')", true, 61821, 62054, 1);
5.2909 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL AND newrec_.blocked_for_payment NOT IN ('TRUE', 'FALSE'))", true, 61921, 62054, 0);
5.2910 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'OTHER_PAYEE_IDENTITY')", true, 62061, 62339, 1);
5.2911 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 62163, 62339, 0);
5.2912 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'INTEREST_TEMPLATE')", true, 62346, 62572, 1);
5.2913 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 62442, 62572, 0);
5.2914 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (name_ = 'REMINDER_TEMPLATE')", true, 62579, 62805, 1);
5.2915 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 62675, 62805, 0);
5.2916 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_DELAY')", true, 62812, 63133, 1);
5.2917 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (TRUNC(newrec_.payment_delay) <> newrec_.payment_delay)", true, 62933, 63133, 0);
5.2918 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (name_ = 'AMOUNT_TOLERANCE')", true, 63140, 63257, 0);
5.2919 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (name_ = 'PERCENT_TOLERANCE')", true, 63264, 63383, 0);
5.2920 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (name_ = 'DISC_DAYS_TOLERANCE')", true, 63390, 63513, 0);
5.2921 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (name_ = 'NETTING_ALLOWED')", true, 63520, 63718, 1);
5.2922 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.netting_allowed NOT IN ('TRUE', 'FALSE'))", true, 63612, 63718, 0);
5.2923 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSIF (name_ = 'FORMAT_NO')", true, 63725, 63828, 0);
5.2924 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 15, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_ADVICE')", true, 63835, 64043, 1);
5.2925 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 63952, 64043, 0);
5.2926 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 16, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_ADVICE_DB')", true, 64050, 64237, 1);
5.2927 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 64143, 64237, 0);
5.2928 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 17, PlsqlBlockType.IF, "ELSIF (name_ = 'DEDUCTION_GROUP')", true, 64244, 64462, 1);
5.2929 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 64336, 64462, 0);
5.2930 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 18, PlsqlBlockType.IF, "ELSIF (name_ = 'CORPORATION_ID')", true, 64469, 64549, 0);
5.2931 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 19, PlsqlBlockType.IF, "ELSIF (name_ = 'MEMBER_ID')", true, 64556, 64626, 0);
5.2932 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 20, PlsqlBlockType.IF, "ELSIF (name_ = 'SEND_REMINDER_TO_PAYER')", true, 64633, 64729, 0);
5.2933 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 21, PlsqlBlockType.IF, "ELSIF (name_ = 'SEND_INTEREST_INV_TO_PAYER')", true, 64736, 64840, 0);
5.2934 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 22, PlsqlBlockType.IF, "ELSIF (name_ = 'RULE_ID')", true, 64847, 65041, 1);
5.2935 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(22).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 64923, 65041, 0);
5.2936 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 23, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_RECEIPT_TYPE')", true, 65048, 65280, 1);
5.2937 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 65183, 65280, 0);
5.2938 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 24, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_RECEIPT_TYPE_DB')", true, 65287, 65492, 1);
5.2939 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(24).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 65392, 65492, 0);
5.2940 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 25, PlsqlBlockType.IF, "ELSIF (name_ = 'TEMPLATE_ID')", true, 65499, 65714, 1);
5.2941 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 65583, 65714, 0);
5.2942 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 26, PlsqlBlockType.IF, "ELSIF (name_ = 'CHECK_RECIPIENT')", true, 65721, 65933, 1);
5.2943 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(26).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 65841, 65933, 0);
5.2944 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 27, PlsqlBlockType.IF, "ELSIF (name_ = 'CHECK_RECIPIENT_DB')", true, 65940, 66130, 1);
5.2945 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 66035, 66130, 0);
5.2946 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 28, PlsqlBlockType.IF, "ELSIF (name_ = 'SEND_STATEMENT_OF_ACC_TO_PAYER')", true, 66137, 66249, 0);
5.2947 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 29, PlsqlBlockType.IF, "ELSE", true, 66256, 66334, 0);
5.2948 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (newrec_.amount_tolerance < 0) OR (newrec_.percent_tolerance < 0) OR (newrec_.disc_days_tolerance < 0)", true, 66353, 66567, 0);
5.2949 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (newrec_.interest_template IS NULL)", true, 66900, 67050, 0);
5.2950 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (newrec_.party_type = 'SUPPLIER')", true, 67055, 67359, 0);
5.2951 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (newrec_.party_type = 'CUSTOMER')", true, 67363, 67977, 1);
5.2952 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Company_Invoice_Info_API.Get_Use_Tax_Invoice(newrec_.company)='TRUE' AND newrec_.payment_receipt_type != 'AT_MATCHING'", true, 67687, 67966, 0);
5.2953 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (newrec_.identity = newrec_.other_payee_identity)", true, 68052, 68212, 0);
5.2954 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Insert___", true, 68333, 70734, 2);
5.2955 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_objid", true, 68496, 68677, 0);
5.2956 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(18).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT", true, 68827, 70521, 0);
5.2957 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 19, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR UPDATE ", true, 70736, 71320, 0);
5.2958 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Update___", true, 71322, 78419, 6);
5.2959 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 71545, 76719, 32);
5.2960 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'COMPANY')", true, 71622, 71702, 0);
5.2961 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'IDENTITY')", true, 71709, 71794, 0);
5.2962 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'PARTY_TYPE')", true, 71801, 71890, 0);
5.2963 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'PARTY_TYPE_DB')", true, 71897, 71989, 0);
5.2964 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'PRIORITY')", true, 71996, 72097, 0);
5.2965 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'BLOCKED_FOR_PAYMENT')", true, 72104, 72337, 1);
5.2966 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL AND newrec_.blocked_for_payment NOT IN ('TRUE', 'FALSE'))", true, 72204, 72337, 0);
5.2967 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'OTHER_PAYEE_IDENTITY')", true, 72344, 72622, 1);
5.2968 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 72446, 72622, 0);
5.2969 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'INTEREST_TEMPLATE')", true, 72629, 72855, 1);
5.2970 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 72725, 72855, 0);
5.2971 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (name_ = 'REMINDER_TEMPLATE')", true, 72862, 73088, 1);
5.2972 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 72958, 73088, 0);
5.2973 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_DELAY')", true, 73095, 73416, 1);
5.2974 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (TRUNC(newrec_.payment_delay) <> newrec_.payment_delay)", true, 73216, 73416, 0);
5.2975 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (name_ = 'AMOUNT_TOLERANCE')", true, 73423, 73540, 0);
5.2976 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (name_ = 'PERCENT_TOLERANCE')", true, 73547, 73666, 0);
5.2977 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (name_ = 'DISC_DAYS_TOLERANCE')", true, 73673, 73796, 0);
5.2978 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (name_ = 'NETTING_ALLOWED')", true, 73803, 74001, 1);
5.2979 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.netting_allowed NOT IN ('TRUE', 'FALSE'))", true, 73895, 74001, 0);
5.2980 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSIF (name_ = 'FORMAT_NO')", true, 74008, 74095, 0);
5.2981 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 15, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_ADVICE')", true, 74102, 74310, 1);
5.2982 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 74219, 74310, 0);
5.2983 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 16, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_ADVICE_DB')", true, 74317, 74504, 1);
5.2984 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 74410, 74504, 0);
5.2985 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 17, PlsqlBlockType.IF, "ELSIF (name_ = 'DEDUCTION_GROUP')", true, 74511, 74729, 1);
5.2986 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 74603, 74729, 0);
5.2987 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 18, PlsqlBlockType.IF, "ELSIF (name_ = 'CORPORATION_ID')", true, 74736, 74816, 0);
5.2988 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 19, PlsqlBlockType.IF, "ELSIF (name_ = 'MEMBER_ID')", true, 74823, 74893, 0);
5.2989 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 20, PlsqlBlockType.IF, "ELSIF (name_ = 'SEND_REMINDER_TO_PAYER')", true, 74900, 74996, 0);
5.2990 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 21, PlsqlBlockType.IF, "ELSIF (name_ = 'SEND_INTEREST_INV_TO_PAYER')", true, 75003, 75107, 0);
5.2991 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 22, PlsqlBlockType.IF, "ELSIF (name_ = 'NOTE')", true, 75114, 75156, 0);
5.2992 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 23, PlsqlBlockType.IF, "ELSIF (name_ = 'NOTE_UPDATE')", true, 75163, 75212, 0);
5.2993 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 24, PlsqlBlockType.IF, "ELSIF (name_ = 'RULE_ID')", true, 75219, 75413, 1);
5.2994 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(24).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 75295, 75413, 0);
5.2995 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 25, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_RECEIPT_TYPE')", true, 75420, 75652, 1);
5.2996 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 75555, 75652, 0);
5.2997 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 26, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_RECEIPT_TYPE_DB')", true, 75659, 75864, 1);
5.2998 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(26).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 75764, 75864, 0);
5.2999 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 27, PlsqlBlockType.IF, "ELSIF (name_ = 'TEMPLATE_ID')", true, 75871, 76086, 1);
5.3000 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 75955, 76086, 0);
5.3001 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 28, PlsqlBlockType.IF, "ELSIF (name_ = 'CHECK_RECIPIENT')", true, 76093, 76305, 1);
5.3002 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(28).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 76213, 76305, 0);
5.3003 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 29, PlsqlBlockType.IF, "ELSIF (name_ = 'CHECK_RECIPIENT_DB')", true, 76312, 76502, 1);
5.3004 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(29).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 76407, 76502, 0);
5.3005 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 30, PlsqlBlockType.IF, "ELSIF (name_ = 'SEND_STATEMENT_OF_ACC_TO_PAYER')", true, 76509, 76621, 0);
5.3006 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 31, PlsqlBlockType.IF, "ELSE", true, 76628, 76706, 0);
5.3007 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (newrec_.amount_tolerance < 0) OR (newrec_.percent_tolerance < 0) OR (newrec_.disc_days_tolerance < 0)", true, 76725, 76939, 0);
5.3008 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (newrec_.interest_template IS NULL)", true, 77061, 77211, 0);
5.3009 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (newrec_.party_type = 'SUPPLIER')", true, 77216, 77520, 0);
5.3010 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (newrec_.party_type = 'CUSTOMER')", true, 77524, 78138, 1);
5.3011 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Company_Invoice_Info_API.Get_Use_Tax_Invoice(newrec_.company)='TRUE' AND newrec_.payment_receipt_type != 'AT_MATCHING'", true, 77848, 78127, 0);
5.3012 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (newrec_.identity = newrec_.other_payee_identity)", true, 78142, 78302, 0);
5.3013 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Update___", true, 78422, 82036, 2);
5.3014 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.IF, "IF by_keys_", true, 78770, 80404, 1);
5.3015 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(21).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE identity_pay_info_tab", true, 78793, 80403, 0);
5.3016 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(21).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 80408, 81941, 1);
5.3017 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(21).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE identity_pay_info_tab", true, 80419, 81929, 0);
5.3018 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 22, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR DELETE ", true, 82038, 82635, 0);
5.3019 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Check_Delete___", true, 82637, 82921, 0);
5.3020 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 24, PlsqlBlockType.PROCEDURE_IMPL, "Delete___", true, 82924, 83287, 1);
5.3021 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(24).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 83203, 83271, 0);
5.3022 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 25, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 83289, 85590, 0);
5.3023 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 26, PlsqlBlockType.PROCEDURE_IMPL, "Lock__", true, 85592, 85887, 0);
5.3024 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 27, PlsqlBlockType.PROCEDURE_IMPL, "New__", true, 85890, 86494, 3);
5.3025 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'PREPARE')", true, 86163, 86224, 0);
5.3026 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(27).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'CHECK')", true, 86228, 86304, 0);
5.3027 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(27).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 86308, 86446, 0);
5.3028 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 28, PlsqlBlockType.PROCEDURE_IMPL, "Modify__", true, 86496, 87267, 2);
5.3029 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(28).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 86802, 86929, 0);
5.3030 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(28).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 86933, 87216, 0);
5.3031 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 29, PlsqlBlockType.PROCEDURE_IMPL, "Remove__", true, 87270, 87822, 2);
5.3032 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(29).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 87505, 87610, 0);
5.3033 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(29).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 87614, 87771, 0);
5.3034 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 30, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 87824, 88277, 0);
5.3035 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 31, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 88279, 89266, 1);
5.3036 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(company_, identity_, Party_Type_API.Encode(party_type_)))", true, 88455, 89255, 4);
5.3037 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 72612, Begin, Modified IF condition", true, 88547, 88589, 0);
5.3038 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF Party_Type_API.Encode(party_type_) IN ('CUSTOMER', 'SUPPLIER')", true, 88596, 88947, 1);
5.3039 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 72612, End.", true, 88830, 88947, 0);
5.3040 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (Party_Type_API.Encode(party_type_) = 'COMPANY')", true, 88957, 89172, 1);
5.3041 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 72612, End.", true, 89154, 89172, 0);
5.3042 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 89179, 89244, 0);
5.3043 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 32, PlsqlBlockType.PROCEDURE_IMPL, "Exist_Db", true, 89269, 89871, 1);
5.3044 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(32).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(company_, identity_, party_type_db_))", true, 89457, 89857, 2);
5.3045 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(32).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF party_type_db_ IN ('CUSTOMER', 'SUPPLIER', 'COMPANY')", true, 89529, 89774, 0);
5.3046 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(32).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 89781, 89846, 0);
5.3047 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 33, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 89873, 90106, 0);
5.3048 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 34, PlsqlBlockType.PROCEDURE_IMPL, "Save_Identity_Notes___", true, 90107, 90747, 1);
5.3049 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(34).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ((note_ IS NULL) AND (note_update_ IS NULL))", true, 90398, 90475, 0);
5.3050 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 35, PlsqlBlockType.FUNCTION_IMPL, "Get_Next_Format_No___", true, 90749, 91157, 2);
5.3051 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(35).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "rec", true, 90834, 90929, 0);
5.3052 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(35).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( rec%NOTFOUND )", true, 91009, 91077, 0);
5.3053 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 36, PlsqlBlockType.PROCEDURE_IMPL, "Check_Cascade___", true, 91159, 93974, 6);
5.3054 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_ledger_item1", true, 91288, 91518, 0);
5.3055 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_ledger_item2", true, 91523, 91765, 0);
5.3056 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_ledger_item3", true, 91770, 92012, 0);
5.3057 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "ledger_item_ IN get_ledger_item1", true, 92022, 92662, 3);
5.3058 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (ledger_item_.rowtype = 'InvoiceLedgerItem')", true, 92070, 92260, 0);
5.3059 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (ledger_item_.rowtype = 'OnAccountLedgerItem')", true, 92267, 92479, 0);
5.3060 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 92486, 92649, 0);
5.3061 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "ledger_item_ IN get_ledger_item2", true, 92667, 93307, 3);
5.3062 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (ledger_item_.rowtype = 'InvoiceLedgerItem')", true, 92715, 92905, 0);
5.3063 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (ledger_item_.rowtype = 'OnAccountLedgerItem')", true, 92912, 93124, 0);
5.3064 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 93131, 93294, 0);
5.3065 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks(), 5, PlsqlBlockType.FOR_LOOP, "ledger_item_ IN get_ledger_item3", true, 93312, 93952, 3);
5.3066 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (ledger_item_.rowtype = 'InvoiceLedgerItem')", true, 93360, 93550, 0);
5.3067 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (ledger_item_.rowtype = 'OnAccountLedgerItem')", true, 93557, 93769, 0);
5.3068 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 93776, 93939, 0);
5.3069 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 37, PlsqlBlockType.PROCEDURE_IMPL, "Import___", true, 93976, 101666, 8);
5.3070 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_data", true, 94076, 94635, 0);
5.3071 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 74138, Begin, Added condition to fetch data when party_type = 'COMPANY' ", true, 94640, 94720, 0);
5.3072 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "exist_company", true, 94724, 94865, 0);
5.3073 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Bug 74138, End", true, 94869, 94886, 0);
5.3074 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (NOT update_by_key_)", true, 95366, 95609, 1);
5.3075 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( exist_company%NOTFOUND )", true, 95492, 95598, 0);
5.3076 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 5, PlsqlBlockType.IF, "IF ( update_by_key_ OR empty_lu_ )", true, 95614, 101074, 3);
5.3077 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "rec_ IN get_data", true, 95660, 100514, 12);
5.3078 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.blocked_for_payment IS NOT NULL AND newrec_.blocked_for_payment NOT IN ('TRUE', 'FALSE'))", true, 97341, 97565, 0);
5.3079 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (newrec_.other_payee_identity IS NOT NULL)", true, 97578, 97782, 0);
5.3080 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (newrec_.interest_template IS NOT NULL)", true, 97795, 97950, 0);
5.3081 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (newrec_.reminder_template IS NOT NULL)", true, 97963, 98118, 0);
5.3082 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (TRUNC(newrec_.payment_delay) <> newrec_.payment_delay)", true, 98131, 98337, 0);
5.3083 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (newrec_.netting_allowed NOT IN ('TRUE', 'FALSE'))", true, 98350, 98526, 0);
5.3084 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (newrec_.payment_advice IS NOT NULL)", true, 98539, 98671, 0);
5.3085 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (newrec_.deduction_group IS NOT NULL)", true, 98684, 98833, 0);
5.3086 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (newrec_.payment_receipt_type IS NOT NULL)", true, 98846, 98996, 0);
5.3087 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (newrec_.party_type = 'SUPPLIER')", true, 99339, 99584, 0);
5.3088 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (newrec_.party_type = 'CUSTOMER')", true, 99597, 99961, 0);
5.3089 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (newrec_.identity = newrec_.other_payee_identity)", true, 100054, 100232, 0);
5.3090 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( i_ = 0 )", true, 100521, 100747, 0);
5.3091 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 100754, 101063, 2);
5.3092 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF msg_ IS NULL", true, 100768, 100904, 0);
5.3093 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 100914, 101049, 0);
5.3094 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- This statement is to add to the log that the Create company process for LUs is finished if", true, 101078, 101215, 0);
5.3095 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 7, PlsqlBlockType.IF, "IF ( NOT update_by_key_ AND NOT empty_lu_ )", true, 101219, 101388, 0);
5.3096 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 38, PlsqlBlockType.PROCEDURE_IMPL, "Copy___", true, 101669, 105604, 6);
5.3097 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_company", true, 101912, 102017, 0);
5.3098 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_data", true, 102022, 102462, 0);
5.3099 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (NOT update_by_key_)", true, 102630, 102873, 1);
5.3100 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( exist_company%NOTFOUND )", true, 102756, 102862, 0);
5.3101 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks(), 3, PlsqlBlockType.IF, "IF ( update_by_key_ OR empty_lu_ )", true, 102878, 105014, 1);
5.3102 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "rec_ IN get_data", true, 102924, 104893, 1);
5.3103 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 102977, 104862, 0);
5.3104 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- This statement is to add to the log that the Create company process for LUs is finished if", true, 105018, 105155, 0);
5.3105 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks(), 5, PlsqlBlockType.IF, "IF ( NOT update_by_key_ AND NOT empty_lu_ )", true, 105159, 105328, 0);
5.3106 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 39, PlsqlBlockType.PROCEDURE_IMPL, "Export___", true, 105608, 107379, 2);
5.3107 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(39).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_data", true, 105805, 105944, 0);
5.3108 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(39).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "pctrec_ IN get_data", true, 106019, 107364, 0);
5.3109 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 40, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 107381, 107614, 0);
5.3110 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 41, PlsqlBlockType.PROCEDURE_IMPL, "Check_Cascade_Customer__", true, 107616, 108337, 2);
5.3111 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(41).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "customer_in_company", true, 107682, 107919, 0);
5.3112 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(41).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "comp_ IN customer_in_company (identity_, party_type_db_)", true, 108163, 108307, 0);
5.3113 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 42, PlsqlBlockType.PROCEDURE_IMPL, "Check_Cascade_Supplier__", true, 108339, 109060, 2);
5.3114 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(42).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "supplier_in_company", true, 108405, 108642, 0);
5.3115 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(42).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "comp_ IN supplier_in_company (identity_, party_type_db_)", true, 108886, 109030, 0);
5.3116 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 43, PlsqlBlockType.PROCEDURE_IMPL, "Cascade_Delete_Customer__", true, 109062, 109903, 2);
5.3117 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(43).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "customer_in_company", true, 109234, 109520, 0);
5.3118 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(43).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "comp_ IN customer_in_company (identity_, party_type_db_)", true, 109733, 109871, 0);
5.3119 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 44, PlsqlBlockType.PROCEDURE_IMPL, "Cascade_Delete_Supplier__", true, 109905, 110746, 2);
5.3120 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(44).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "supplier_in_company", true, 110077, 110363, 0);
5.3121 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(44).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "comp_ IN supplier_in_company (identity_, party_type_db_)", true, 110576, 110714, 0);
5.3122 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 45, PlsqlBlockType.FUNCTION_IMPL, "Create_Other_Payee_Attr__", true, 110748, 111408, 2);
5.3123 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(45).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_supplier", true, 110893, 111096, 0);
5.3124 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(45).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "supplier_info_ IN get_supplier", true, 111211, 111353, 0);
5.3125 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 46, PlsqlBlockType.FUNCTION_IMPL, "Create_Cus_Other_Payee_Attr__", true, 111410, 112059, 2);
5.3126 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(46).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_customer", true, 111559, 111739, 0);
5.3127 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(46).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "customer_info_ IN get_customer", true, 111858, 112000, 0);
5.3128 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 47, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PROTECTED METHODS ", true, 112060, 112529, 0);
5.3129 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 48, PlsqlBlockType.FUNCTION_IMPL, "Get_Priority", true, 112531, 112802, 0);
5.3130 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 49, PlsqlBlockType.FUNCTION_IMPL, "Get_Blocked_For_Payment", true, 112804, 113109, 0);
5.3131 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 50, PlsqlBlockType.FUNCTION_IMPL, "Get_Payment_Delay", true, 113111, 113404, 0);
5.3132 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 51, PlsqlBlockType.FUNCTION_IMPL, "Get_Amount_Tolerance", true, 113406, 113700, 0);
5.3133 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 52, PlsqlBlockType.FUNCTION_IMPL, "Get_Percent_Tolerance", true, 113702, 113999, 0);
5.3134 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 53, PlsqlBlockType.FUNCTION_IMPL, "Get_Disc_Days_Tolerance", true, 114001, 114469, 1);
5.3135 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(53).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 114179, 114350, 0);
5.3136 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 54, PlsqlBlockType.FUNCTION_IMPL, "Get_Netting_Allowed", true, 114471, 115095, 2);
5.3137 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(54).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 114648, 114847, 0);
5.3138 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(54).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 114857, 114950, 0);
5.3139 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 55, PlsqlBlockType.FUNCTION_IMPL, "Get_Check_Recipient", true, 115097, 115647, 1);
5.3140 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(55).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 115269, 115468, 0);
5.3141 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 56, PlsqlBlockType.FUNCTION_IMPL, "Get_Check_Recipient_Db", true, 115649, 116182, 1);
5.3142 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(56).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 115829, 116028, 0);
5.3143 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 57, PlsqlBlockType.FUNCTION_IMPL, "Get_Next_Pay_Matching_Id", true, 116184, 116803, 1);
5.3144 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(57).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE identity_pay_info_tab", true, 116583, 116752, 0);
5.3145 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 58, PlsqlBlockType.FUNCTION_IMPL, "Get_Payment_Matching_Id", true, 116805, 117363, 1);
5.3146 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(58).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_matching_id", true, 116947, 117124, 0);
5.3147 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 59, PlsqlBlockType.FUNCTION_IMPL, "Get_Format_No", true, 117365, 117963, 2);
5.3148 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(59).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 117528, 117721, 0);
5.3149 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(59).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 117731, 117824, 0);
5.3150 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 60, PlsqlBlockType.FUNCTION_IMPL, "Get_Other_Payee_Ded_Group_Desc", true, 117965, 118526, 1);
5.3151 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(60).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (deduction_group_ IS NULL)", true, 118351, 118415, 0);
5.3152 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 61, PlsqlBlockType.FUNCTION_IMPL, "Get_Deduction_Group", true, 118528, 119152, 2);
5.3153 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(61).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 118705, 118904, 0);
5.3154 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(61).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 118914, 119007, 0);
5.3155 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 62, PlsqlBlockType.FUNCTION_IMPL, "Get_Template_Id", true, 119154, 119597, 1);
5.3156 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(62).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 119323, 119486, 0);
5.3157 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 63, PlsqlBlockType.FUNCTION_IMPL, "Get_Corporation_Id", true, 119599, 120219, 2);
5.3158 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(63).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 119774, 119972, 0);
5.3159 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(63).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 119982, 120075, 0);
5.3160 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 64, PlsqlBlockType.FUNCTION_IMPL, "Get_Member_Id", true, 120221, 120821, 2);
5.3161 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(64).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 120386, 120579, 0);
5.3162 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(64).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 120589, 120682, 0);
5.3163 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 65, PlsqlBlockType.FUNCTION_IMPL, "Get_Send_Reminder_To_Payer", true, 120823, 121475, 2);
5.3164 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(65).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 121014, 121220, 0);
5.3165 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(65).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 121230, 121323, 0);
5.3166 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 66, PlsqlBlockType.FUNCTION_IMPL, "Get_Send_Interest_Inv_To_Payer", true, 121477, 122145, 2);
5.3167 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(66).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 121676, 121886, 0);
5.3168 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(66).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 121896, 121989, 0);
5.3169 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 67, PlsqlBlockType.FUNCTION_IMPL, "Get_Payment_Advice", true, 122147, 122789, 2);
5.3170 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(67).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 122317, 122515, 0);
5.3171 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(67).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 122525, 122618, 0);
5.3172 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 68, PlsqlBlockType.FUNCTION_IMPL, "Get_Payment_Advice_Db", true, 122791, 123412, 2);
5.3173 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(68).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 122964, 123162, 0);
5.3174 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(68).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 123172, 123265, 0);
5.3175 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 69, PlsqlBlockType.FUNCTION_IMPL, "Get_Other_Payee_Identity", true, 123415, 123724, 0);
5.3176 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 70, PlsqlBlockType.FUNCTION_IMPL, "Get_Interest_Template", true, 123726, 124024, 0);
5.3177 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 71, PlsqlBlockType.FUNCTION_IMPL, "Get_Reminder_Template", true, 124026, 124325, 0);
5.3178 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 72, PlsqlBlockType.FUNCTION_IMPL, "Get_Rule_Id", true, 124327, 124919, 2);
5.3179 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(72).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 124488, 124679, 0);
5.3180 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(72).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 124689, 124782, 0);
5.3181 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 73, PlsqlBlockType.FUNCTION_IMPL, "Get_Payment_Receipt_Type", true, 124921, 125501, 1);
5.3182 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(73).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 125108, 125312, 0);
5.3183 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 74, PlsqlBlockType.FUNCTION_IMPL, "Get_Payment_Receipt_Type_Db", true, 125503, 126056, 1);
5.3184 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(74).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 125693, 125897, 0);
5.3185 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 75, PlsqlBlockType.PROCEDURE_IMPL, "Instance_Exists", true, 126058, 126714, 3);
5.3186 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(75).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 126209, 126404, 0);
5.3187 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(75).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%FOUND)", true, 126588, 126633, 0);
5.3188 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(75).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 126637, 126676, 0);
5.3189 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 76, PlsqlBlockType.PROCEDURE_IMPL, "Create_Party_Type_Id", true, 126716, 127001, 0);
5.3190 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 77, PlsqlBlockType.PROCEDURE_IMPL, "Create_Identity_Pay_Info", true, 127003, 129220, 2);
5.3191 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (party_type_db_ = 'SUPPLIER')", true, 127803, 128026, 0);
5.3192 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (party_type_db_ = 'CUSTOMER')", true, 128030, 128847, 6);
5.3193 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (def_template_ IS NULL)", true, 128154, 128219, 0);
5.3194 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 128226, 128320, 0);
5.3195 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (def_template_ IS NULL)", true, 128404, 128469, 0);
5.3196 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 128476, 128570, 0);
5.3197 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "IF Company_Invoice_Info_API.Get_Use_Tax_Invoice(company_) = 'TRUE'", true, 128577, 128730, 0);
5.3198 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 128737, 128836, 0);
5.3199 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 78, PlsqlBlockType.FUNCTION_IMPL, "Validate_Identity", true, 129222, 129847, 2);
5.3200 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(78).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_identity", true, 129376, 129578, 0);
5.3201 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(78).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_identity %FOUND)", true, 129685, 129778, 0);
5.3202 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 79, PlsqlBlockType.PROCEDURE_IMPL, "Fetch_Tolerance", true, 129849, 132997, 8);
5.3203 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_identity_tolerance_", true, 130480, 130690, 0);
5.3204 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_company_tolerance_", true, 130695, 130843, 0);
5.3205 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 2, PlsqlBlockType.IF, "IF party_type_db_ = 'CUSTOMER'", true, 130978, 131477, 2);
5.3206 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- general payment tolerance", true, 131185, 131213, 0);
5.3207 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF percent_tolerance_ IS NULL AND amount_tolerance_acc_curr_ IS NULL", true, 131220, 131477, 0);
5.3208 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF party_type_db_ = 'SUPPLIER'", true, 131482, 131733, 1);
5.3209 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- general payment tolerance", true, 131524, 131552, 0);
5.3210 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 4, PlsqlBlockType.IF, "IF action_ = 'NOCALCULATE'", true, 131738, 131849, 0);
5.3211 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 5, PlsqlBlockType.IF, "IF acc_currency_ = currency_", true, 131924, 132037, 0);
5.3212 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 6, PlsqlBlockType.IF, "IF ( (div_factor_ IS NULL) OR (currency_rate_ IS NULL))", true, 132105, 132443, 0);
5.3213 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (date_ IS NOT NULL) AND ((div_factor_ IS NULL) OR (currency_rate_ IS NULL))", true, 132447, 132795, 0);
5.3214 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 80, PlsqlBlockType.PROCEDURE_IMPL, "Copy_Payway_Per_Identity___", true, 132999, 133806, 2);
5.3215 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(80).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_pay_way", true, 133202, 133393, 0);
5.3216 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(80).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "pay_way_ IN get_pay_way", true, 133403, 133773, 1);
5.3217 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(80).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO PAYMENT_WAY_PER_IDENTITY_TAB (company, identity, party_type,", true, 133444, 133759, 0);
5.3218 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 81, PlsqlBlockType.PROCEDURE_IMPL, "Copy_Payment_Address___", true, 133808, 135730, 2);
5.3219 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(81).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_pay_addr", true, 134007, 134190, 0);
5.3220 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(81).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "pay_addr_ IN get_pay_addr", true, 134200, 135701, 3);
5.3221 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(81).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 72177, Begin, Added bic_code", true, 134241, 134276, 0);
5.3222 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(81).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT INTO PAYMENT_ADDRESS_TAB (company, identity, party_type, way_id,", true, 134283, 135662, 0);
5.3223 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(81).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 72177, End", true, 135670, 135687, 0);
5.3224 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 82, PlsqlBlockType.PROCEDURE_IMPL, "Copy_Customer", true, 135732, 139718, 4);
5.3225 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_customer", true, 135882, 136076, 0);
5.3226 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_credit_info", true, 136081, 136239, 0);
5.3227 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "customer_ IN get_customer", true, 136335, 138536, 3);
5.3228 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 73125, Begin, Added template_id ", true, 136430, 136469, 0);
5.3229 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT INTO IDENTITY_PAY_INFO_TAB (company, identity, party_type,", true, 136476, 138070, 0);
5.3230 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 73125, End", true, 138078, 138095, 0);
5.3231 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "credit_ IN get_credit_info", true, 138541, 139699, 1);
5.3232 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO CUSTOMER_CREDIT_INFO_TAB (company, identity, last4q_sales,", true, 138583, 139685, 0);
5.3233 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 83, PlsqlBlockType.PROCEDURE_IMPL, "Copy_Supplier", true, 139720, 141928, 2);
5.3234 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(83).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_supplier", true, 139870, 140064, 0);
5.3235 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(83).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "supplier_ IN get_supplier", true, 140285, 141909, 3);
5.3236 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(83).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 73125, Begin, Added template_id ", true, 140380, 140419, 0);
5.3237 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(83).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT INTO IDENTITY_PAY_INFO_TAB (company, identity, party_type,", true, 140426, 141445, 0);
5.3238 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(83).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 73125, End", true, 141453, 141470, 0);
5.3239 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 84, PlsqlBlockType.FUNCTION_IMPL, "Get", true, 141930, 142856, 2);
5.3240 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(84).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 142084, 142659, 0);
5.3241 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(84).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 142669, 142762, 0);
5.3242 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 85, PlsqlBlockType.PROCEDURE_IMPL, "User_Allowed___", true, 142858, 143216, 1);
5.3243 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(85).getChildBlocks(), 0, PlsqlBlockType.IF, "IF NOT (company_finance_api.Is_User_Authorized(company_))", true, 143000, 143194, 0);
5.3244 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 86, PlsqlBlockType.COMMENT, "-- Server", true, 143219, 143437, 0);
5.3245 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 87, PlsqlBlockType.FUNCTION_IMPL, "Get_Group_For_Identity", true, 143438, 144049, 2);
5.3246 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(87).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_group", true, 143612, 143800, 0);
5.3247 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(87).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (get_group%NOTFOUND)", true, 143898, 143979, 0);
5.3248 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 88, PlsqlBlockType.PROCEDURE_IMPL, "Make_Company", true, 144051, 144608, 2);
5.3249 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(88).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (rec_.make_company = 'EXPORT')", true, 144328, 144389, 0);
5.3250 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(88).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (rec_.make_company = 'IMPORT')", true, 144393, 144590, 2);
5.3251 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(88).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (rec_.action = 'NEW')", true, 144441, 144496, 0);
5.3252 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(88).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (rec_.action = 'DUPLICATE')", true, 144503, 144579, 0);
5.3253 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 89, PlsqlBlockType.FUNCTION_IMPL, "Cust_Open_Items_Exist", true, 144610, 145567, 2);
5.3254 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(89).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 144737, 145266, 0);
5.3255 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(89).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 145407, 145496, 0);
5.3256 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 90, PlsqlBlockType.FUNCTION_IMPL, "Get_Send_Stmt_Of_Acc_To_Payer", true, 145569, 145994, 1);
5.3257 - assertBlock(lstBlockFac.get(50).getChildBlocks().get(90).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 145745, 145837, 0);
5.3258 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 91, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 145995, 146459, 0);
5.3259 - assertBlock(lstBlockFac.get(50).getChildBlocks(), 92, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 146461, 146503, 0);
5.3260 - assertBlock(lstBlockFac, 51, PlsqlBlockType.COMMENT, "-- <UNDEFINE_SECTION>", false, 146530, 147081, 0);
5.3261 - } finally {
5.3262 - if (fileObject != null) {
5.3263 - fileObject.delete();
5.3264 - }
5.3265 - }
5.3266 - }
5.3267 + assertTrue(lstBlockFac.size() == 52);
5.3268 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: IdentityPayInfo", false, 0, 9418, 0);
5.3269 + assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- VIEWS FOR SELECTS ", false, 10475, 10708, 0);
5.3270 + assertBlock(lstBlockFac, 2, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO", false, 10738, 12658, 0);
5.3271 + assertBlock(lstBlockFac, 3, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO", false, 12661, 12739, 0);
5.3272 + assertBlock(lstBlockFac, 4, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO", false, 12742, 16182, 0);
5.3273 + assertBlock(lstBlockFac, 5, PlsqlBlockType.COMMENT, "-- Bug 77136, begin, Table join with supplier_info_tab, in order to get name and association no directly.", false, 16185, 16290, 0);
5.3274 + assertBlock(lstBlockFac, 6, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_SU_QRY", false, 16325, 20258, 0);
5.3275 + assertBlock(lstBlockFac, 7, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_SU_QRY", false, 20261, 20346, 0);
5.3276 + assertBlock(lstBlockFac, 8, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_SU_QRY", false, 20349, 21761, 0);
5.3277 + assertBlock(lstBlockFac, 9, PlsqlBlockType.COMMENT, "-- Bug 77136, end", false, 21763, 21996, 0);
5.3278 + assertBlock(lstBlockFac, 10, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_CU_QRY", false, 22031, 27474, 0);
5.3279 + assertBlock(lstBlockFac, 11, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_CU_QRY", false, 27477, 27562, 0);
5.3280 + assertBlock(lstBlockFac, 12, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_CU_QRY", false, 27565, 30549, 0);
5.3281 + assertBlock(lstBlockFac, 13, PlsqlBlockType.COMMENT, "-- Bug 69035, End;", false, 30551, 30587, 0);
5.3282 + assertBlock(lstBlockFac, 14, PlsqlBlockType.COMMENT, "-- Bug 68653, Begin, Added new columns address and city", false, 30622, 30677, 0);
5.3283 + assertBlock(lstBlockFac, 15, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_SUPP", false, 30678, 32224, 0);
5.3284 + assertBlock(lstBlockFac, 16, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_SUPP", false, 32227, 32310, 0);
5.3285 + assertBlock(lstBlockFac, 17, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_SUPP", false, 32313, 33373, 0);
5.3286 + assertBlock(lstBlockFac, 18, PlsqlBlockType.COMMENT, "-- Bug 68653, End", false, 33375, 33392, 0);
5.3287 + assertBlock(lstBlockFac, 19, PlsqlBlockType.COMMENT, "-- Bug 68653, Begin, Added new columns address and city", false, 33428, 33483, 0);
5.3288 + assertBlock(lstBlockFac, 20, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_CUST", false, 33484, 34962, 0);
5.3289 + assertBlock(lstBlockFac, 21, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_CUST", false, 34965, 35048, 0);
5.3290 + assertBlock(lstBlockFac, 22, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_CUST", false, 35051, 36106, 0);
5.3291 + assertBlock(lstBlockFac, 23, PlsqlBlockType.COMMENT, "-- Bug 68653, End", false, 36108, 36125, 0);
5.3292 + assertBlock(lstBlockFac, 24, PlsqlBlockType.COMMENT, "-- Bug 68653, Begin, Added new columns address and city", false, 36159, 36214, 0);
5.3293 + assertBlock(lstBlockFac, 25, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_LOV", false, 36215, 37137, 0);
5.3294 + assertBlock(lstBlockFac, 26, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_LOV", false, 37140, 37231, 0);
5.3295 + assertBlock(lstBlockFac, 27, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_LOV", false, 37234, 37844, 0);
5.3296 + assertBlock(lstBlockFac, 28, PlsqlBlockType.COMMENT, "-- Bug 68653, End", false, 37846, 37863, 0);
5.3297 + assertBlock(lstBlockFac, 29, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_ALL", false, 37898, 38508, 0);
5.3298 + assertBlock(lstBlockFac, 30, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_ALL", false, 38511, 38593, 0);
5.3299 + assertBlock(lstBlockFac, 31, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_ALL", false, 38596, 39033, 0);
5.3300 + assertBlock(lstBlockFac, 32, PlsqlBlockType.VIEW, "IDENTITY_PAY_INFO_PCT", false, 39067, 40386, 0);
5.3301 + assertBlock(lstBlockFac, 33, PlsqlBlockType.TABLE_COMMENT, "IDENTITY_PAY_INFO_PCT", false, 40389, 40470, 0);
5.3302 + assertBlock(lstBlockFac, 34, PlsqlBlockType.COLUMN_COMMENT, "IDENTITY_PAY_INFO_PCT", false, 40473, 43144, 0);
5.3303 + assertBlock(lstBlockFac, 35, PlsqlBlockType.COMMENT, "-- Bug 69035, Begin, Added reminder_template_id,interest_template_id and their descriptions ", false, 43185, 43279, 0);
5.3304 + assertBlock(lstBlockFac, 36, PlsqlBlockType.VIEW, "PAYER_INFO_QRY", false, 43280, 45980, 0);
5.3305 + assertBlock(lstBlockFac, 37, PlsqlBlockType.TABLE_COMMENT, "PAYER_INFO_QRY", false, 45983, 46071, 0);
5.3306 + assertBlock(lstBlockFac, 38, PlsqlBlockType.COLUMN_COMMENT, "PAYER_INFO_QRY", false, 46074, 47822, 0);
5.3307 + assertBlock(lstBlockFac, 39, PlsqlBlockType.COMMENT, "-- Bug 69035, End", false, 47824, 47841, 0);
5.3308 + assertBlock(lstBlockFac, 40, PlsqlBlockType.VIEW, "MULTI_CUS_DETAILS_QRY", false, 47881, 48808, 0);
5.3309 + assertBlock(lstBlockFac, 41, PlsqlBlockType.TABLE_COMMENT, "MULTI_CUS_DETAILS_QRY", false, 48811, 48901, 0);
5.3310 + assertBlock(lstBlockFac, 42, PlsqlBlockType.COLUMN_COMMENT, "MULTI_CUS_DETAILS_QRY", false, 48904, 49453, 0);
5.3311 + assertBlock(lstBlockFac, 43, PlsqlBlockType.VIEW, "MULTI_SUP_DETAILS_QRY", false, 49498, 50374, 0);
5.3312 + assertBlock(lstBlockFac, 44, PlsqlBlockType.TABLE_COMMENT, "MULTI_SUP_DETAILS_QRY", false, 50377, 50467, 0);
5.3313 + assertBlock(lstBlockFac, 45, PlsqlBlockType.COLUMN_COMMENT, "MULTI_SUP_DETAILS_QRY", false, 50470, 50913, 0);
5.3314 + assertBlock(lstBlockFac, 46, PlsqlBlockType.VIEW, "MULTI_SUP_ADDRESS_QRY", false, 50954, 51642, 0);
5.3315 + assertBlock(lstBlockFac, 47, PlsqlBlockType.TABLE_COMMENT, "MULTI_SUP_ADDRESS_QRY", false, 51645, 51735, 0);
5.3316 + assertBlock(lstBlockFac, 48, PlsqlBlockType.COLUMN_COMMENT, "MULTI_SUP_ADDRESS_QRY", false, 51738, 52176, 0);
5.3317 + assertBlock(lstBlockFac, 49, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 52179, 52412, 0);
5.3318 + assertBlock(lstBlockFac, 50, PlsqlBlockType.PACKAGE_BODY, "IDENTITY_PAY_INFO_API", false, 52451, 146515, 93);
5.3319 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 52491, 52724, 0);
5.3320 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 1, PlsqlBlockType.PROCEDURE_DEF, "Save_Identity_Notes___", true, 52725, 52823, 0);
5.3321 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_DEF, "Get_Next_Format_No___", true, 52825, 52904, 0);
5.3322 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 3, PlsqlBlockType.PROCEDURE_DEF, "Check_Cascade___", true, 52906, 53029, 0);
5.3323 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 4, PlsqlBlockType.PROCEDURE_DEF, "Import___", true, 53031, 53125, 0);
5.3324 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 5, PlsqlBlockType.PROCEDURE_DEF, "Copy___", true, 53127, 53221, 0);
5.3325 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_DEF, "Export___", true, 53223, 53319, 0);
5.3326 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 7, PlsqlBlockType.PROCEDURE_DEF, "User_Allowed___", true, 53321, 53375, 0);
5.3327 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS ", true, 53381, 54256, 0);
5.3328 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 9, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Id___", true, 54258, 55408, 5);
5.3329 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 54550, 54700, 0);
5.3330 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "exist_control", true, 54704, 54792, 0);
5.3331 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 54857, 54941, 0);
5.3332 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(9).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 55027, 55108, 0);
5.3333 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(9).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 55112, 55179, 0);
5.3334 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 10, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Keys___", true, 55410, 56100, 3);
5.3335 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 55616, 55794, 0);
5.3336 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 55859, 55932, 0);
5.3337 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(10).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 55936, 56002, 0);
5.3338 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 11, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Id___", true, 56102, 56509, 2);
5.3339 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 56212, 56293, 0);
5.3340 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(11).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%NOTFOUND)", true, 56349, 56447, 0);
5.3341 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 12, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Keys___", true, 56511, 56964, 1);
5.3342 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 56693, 56848, 0);
5.3343 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 13, PlsqlBlockType.FUNCTION_IMPL, "Check_Exist___", true, 56966, 57506, 2);
5.3344 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 57125, 57288, 0);
5.3345 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 57357, 57444, 0);
5.3346 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_IMPL, "Get_Id_Version_By_Keys___", true, 57508, 58032, 1);
5.3347 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_version", true, 57727, 57905, 0);
5.3348 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 15, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR INSERT ", true, 58034, 58779, 0);
5.3349 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Insert___", true, 58781, 60476, 3);
5.3350 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Default value 'No Advice'", true, 59354, 59391, 0);
5.3351 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(16).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (party_type_ = Party_Type_API.Decode('CUSTOMER'))", true, 59479, 59904, 0);
5.3352 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(16).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (party_type_ = Party_Type_API.Decode('SUPPLIER') )", true, 59908, 60142, 0);
5.3353 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 17, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Insert___", true, 60479, 68330, 6);
5.3354 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 60674, 66347, 30);
5.3355 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'COMPANY')", true, 60751, 60896, 0);
5.3356 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'IDENTITY')", true, 60903, 60971, 0);
5.3357 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'PARTY_TYPE')", true, 60978, 61318, 1);
5.3358 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.party_type <> 'COMPANY')", true, 61172, 61318, 0);
5.3359 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'PARTY_TYPE_DB')", true, 61325, 61706, 1);
5.3360 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.party_type <> Party_Type_API.Decode('COMPANY'))", true, 61534, 61706, 0);
5.3361 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'PRIORITY')", true, 61713, 61814, 0);
5.3362 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'BLOCKED_FOR_PAYMENT')", true, 61821, 62054, 1);
5.3363 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL AND newrec_.blocked_for_payment NOT IN ('TRUE', 'FALSE'))", true, 61921, 62054, 0);
5.3364 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'OTHER_PAYEE_IDENTITY')", true, 62061, 62339, 1);
5.3365 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 62163, 62339, 0);
5.3366 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'INTEREST_TEMPLATE')", true, 62346, 62572, 1);
5.3367 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 62442, 62572, 0);
5.3368 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (name_ = 'REMINDER_TEMPLATE')", true, 62579, 62805, 1);
5.3369 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 62675, 62805, 0);
5.3370 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_DELAY')", true, 62812, 63133, 1);
5.3371 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (TRUNC(newrec_.payment_delay) <> newrec_.payment_delay)", true, 62933, 63133, 0);
5.3372 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (name_ = 'AMOUNT_TOLERANCE')", true, 63140, 63257, 0);
5.3373 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (name_ = 'PERCENT_TOLERANCE')", true, 63264, 63383, 0);
5.3374 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (name_ = 'DISC_DAYS_TOLERANCE')", true, 63390, 63513, 0);
5.3375 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (name_ = 'NETTING_ALLOWED')", true, 63520, 63718, 1);
5.3376 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.netting_allowed NOT IN ('TRUE', 'FALSE'))", true, 63612, 63718, 0);
5.3377 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSIF (name_ = 'FORMAT_NO')", true, 63725, 63828, 0);
5.3378 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 15, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_ADVICE')", true, 63835, 64043, 1);
5.3379 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 63952, 64043, 0);
5.3380 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 16, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_ADVICE_DB')", true, 64050, 64237, 1);
5.3381 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 64143, 64237, 0);
5.3382 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 17, PlsqlBlockType.IF, "ELSIF (name_ = 'DEDUCTION_GROUP')", true, 64244, 64462, 1);
5.3383 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 64336, 64462, 0);
5.3384 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 18, PlsqlBlockType.IF, "ELSIF (name_ = 'CORPORATION_ID')", true, 64469, 64549, 0);
5.3385 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 19, PlsqlBlockType.IF, "ELSIF (name_ = 'MEMBER_ID')", true, 64556, 64626, 0);
5.3386 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 20, PlsqlBlockType.IF, "ELSIF (name_ = 'SEND_REMINDER_TO_PAYER')", true, 64633, 64729, 0);
5.3387 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 21, PlsqlBlockType.IF, "ELSIF (name_ = 'SEND_INTEREST_INV_TO_PAYER')", true, 64736, 64840, 0);
5.3388 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 22, PlsqlBlockType.IF, "ELSIF (name_ = 'RULE_ID')", true, 64847, 65041, 1);
5.3389 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(22).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 64923, 65041, 0);
5.3390 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 23, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_RECEIPT_TYPE')", true, 65048, 65280, 1);
5.3391 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 65183, 65280, 0);
5.3392 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 24, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_RECEIPT_TYPE_DB')", true, 65287, 65492, 1);
5.3393 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(24).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 65392, 65492, 0);
5.3394 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 25, PlsqlBlockType.IF, "ELSIF (name_ = 'TEMPLATE_ID')", true, 65499, 65714, 1);
5.3395 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 65583, 65714, 0);
5.3396 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 26, PlsqlBlockType.IF, "ELSIF (name_ = 'CHECK_RECIPIENT')", true, 65721, 65933, 1);
5.3397 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(26).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 65841, 65933, 0);
5.3398 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 27, PlsqlBlockType.IF, "ELSIF (name_ = 'CHECK_RECIPIENT_DB')", true, 65940, 66130, 1);
5.3399 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 66035, 66130, 0);
5.3400 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 28, PlsqlBlockType.IF, "ELSIF (name_ = 'SEND_STATEMENT_OF_ACC_TO_PAYER')", true, 66137, 66249, 0);
5.3401 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(0).getChildBlocks(), 29, PlsqlBlockType.IF, "ELSE", true, 66256, 66334, 0);
5.3402 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (newrec_.amount_tolerance < 0) OR (newrec_.percent_tolerance < 0) OR (newrec_.disc_days_tolerance < 0)", true, 66353, 66567, 0);
5.3403 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (newrec_.interest_template IS NULL)", true, 66900, 67050, 0);
5.3404 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (newrec_.party_type = 'SUPPLIER')", true, 67055, 67359, 0);
5.3405 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (newrec_.party_type = 'CUSTOMER')", true, 67363, 67977, 1);
5.3406 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Company_Invoice_Info_API.Get_Use_Tax_Invoice(newrec_.company)='TRUE' AND newrec_.payment_receipt_type != 'AT_MATCHING'", true, 67687, 67966, 0);
5.3407 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(17).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (newrec_.identity = newrec_.other_payee_identity)", true, 68052, 68212, 0);
5.3408 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Insert___", true, 68333, 70734, 2);
5.3409 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_objid", true, 68496, 68677, 0);
5.3410 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(18).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT", true, 68827, 70521, 0);
5.3411 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 19, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR UPDATE ", true, 70736, 71320, 0);
5.3412 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Update___", true, 71322, 78419, 6);
5.3413 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 71545, 76719, 32);
5.3414 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'COMPANY')", true, 71622, 71702, 0);
5.3415 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'IDENTITY')", true, 71709, 71794, 0);
5.3416 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'PARTY_TYPE')", true, 71801, 71890, 0);
5.3417 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'PARTY_TYPE_DB')", true, 71897, 71989, 0);
5.3418 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'PRIORITY')", true, 71996, 72097, 0);
5.3419 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'BLOCKED_FOR_PAYMENT')", true, 72104, 72337, 1);
5.3420 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL AND newrec_.blocked_for_payment NOT IN ('TRUE', 'FALSE'))", true, 72204, 72337, 0);
5.3421 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'OTHER_PAYEE_IDENTITY')", true, 72344, 72622, 1);
5.3422 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 72446, 72622, 0);
5.3423 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'INTEREST_TEMPLATE')", true, 72629, 72855, 1);
5.3424 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 72725, 72855, 0);
5.3425 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (name_ = 'REMINDER_TEMPLATE')", true, 72862, 73088, 1);
5.3426 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 72958, 73088, 0);
5.3427 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_DELAY')", true, 73095, 73416, 1);
5.3428 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (TRUNC(newrec_.payment_delay) <> newrec_.payment_delay)", true, 73216, 73416, 0);
5.3429 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (name_ = 'AMOUNT_TOLERANCE')", true, 73423, 73540, 0);
5.3430 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (name_ = 'PERCENT_TOLERANCE')", true, 73547, 73666, 0);
5.3431 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (name_ = 'DISC_DAYS_TOLERANCE')", true, 73673, 73796, 0);
5.3432 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (name_ = 'NETTING_ALLOWED')", true, 73803, 74001, 1);
5.3433 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.netting_allowed NOT IN ('TRUE', 'FALSE'))", true, 73895, 74001, 0);
5.3434 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSIF (name_ = 'FORMAT_NO')", true, 74008, 74095, 0);
5.3435 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 15, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_ADVICE')", true, 74102, 74310, 1);
5.3436 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 74219, 74310, 0);
5.3437 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 16, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_ADVICE_DB')", true, 74317, 74504, 1);
5.3438 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 74410, 74504, 0);
5.3439 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 17, PlsqlBlockType.IF, "ELSIF (name_ = 'DEDUCTION_GROUP')", true, 74511, 74729, 1);
5.3440 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 74603, 74729, 0);
5.3441 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 18, PlsqlBlockType.IF, "ELSIF (name_ = 'CORPORATION_ID')", true, 74736, 74816, 0);
5.3442 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 19, PlsqlBlockType.IF, "ELSIF (name_ = 'MEMBER_ID')", true, 74823, 74893, 0);
5.3443 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 20, PlsqlBlockType.IF, "ELSIF (name_ = 'SEND_REMINDER_TO_PAYER')", true, 74900, 74996, 0);
5.3444 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 21, PlsqlBlockType.IF, "ELSIF (name_ = 'SEND_INTEREST_INV_TO_PAYER')", true, 75003, 75107, 0);
5.3445 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 22, PlsqlBlockType.IF, "ELSIF (name_ = 'NOTE')", true, 75114, 75156, 0);
5.3446 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 23, PlsqlBlockType.IF, "ELSIF (name_ = 'NOTE_UPDATE')", true, 75163, 75212, 0);
5.3447 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 24, PlsqlBlockType.IF, "ELSIF (name_ = 'RULE_ID')", true, 75219, 75413, 1);
5.3448 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(24).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 75295, 75413, 0);
5.3449 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 25, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_RECEIPT_TYPE')", true, 75420, 75652, 1);
5.3450 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 75555, 75652, 0);
5.3451 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 26, PlsqlBlockType.IF, "ELSIF (name_ = 'PAYMENT_RECEIPT_TYPE_DB')", true, 75659, 75864, 1);
5.3452 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(26).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 75764, 75864, 0);
5.3453 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 27, PlsqlBlockType.IF, "ELSIF (name_ = 'TEMPLATE_ID')", true, 75871, 76086, 1);
5.3454 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 75955, 76086, 0);
5.3455 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 28, PlsqlBlockType.IF, "ELSIF (name_ = 'CHECK_RECIPIENT')", true, 76093, 76305, 1);
5.3456 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(28).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 76213, 76305, 0);
5.3457 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 29, PlsqlBlockType.IF, "ELSIF (name_ = 'CHECK_RECIPIENT_DB')", true, 76312, 76502, 1);
5.3458 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks().get(29).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 76407, 76502, 0);
5.3459 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 30, PlsqlBlockType.IF, "ELSIF (name_ = 'SEND_STATEMENT_OF_ACC_TO_PAYER')", true, 76509, 76621, 0);
5.3460 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 31, PlsqlBlockType.IF, "ELSE", true, 76628, 76706, 0);
5.3461 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (newrec_.amount_tolerance < 0) OR (newrec_.percent_tolerance < 0) OR (newrec_.disc_days_tolerance < 0)", true, 76725, 76939, 0);
5.3462 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (newrec_.interest_template IS NULL)", true, 77061, 77211, 0);
5.3463 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (newrec_.party_type = 'SUPPLIER')", true, 77216, 77520, 0);
5.3464 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (newrec_.party_type = 'CUSTOMER')", true, 77524, 78138, 1);
5.3465 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Company_Invoice_Info_API.Get_Use_Tax_Invoice(newrec_.company)='TRUE' AND newrec_.payment_receipt_type != 'AT_MATCHING'", true, 77848, 78127, 0);
5.3466 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(20).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (newrec_.identity = newrec_.other_payee_identity)", true, 78142, 78302, 0);
5.3467 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Update___", true, 78422, 82036, 2);
5.3468 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.IF, "IF by_keys_", true, 78770, 80404, 1);
5.3469 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(21).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE identity_pay_info_tab", true, 78793, 80403, 0);
5.3470 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(21).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 80408, 81941, 1);
5.3471 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(21).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE identity_pay_info_tab", true, 80419, 81929, 0);
5.3472 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 22, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR DELETE ", true, 82038, 82635, 0);
5.3473 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Check_Delete___", true, 82637, 82921, 0);
5.3474 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 24, PlsqlBlockType.PROCEDURE_IMPL, "Delete___", true, 82924, 83287, 1);
5.3475 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(24).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 83203, 83271, 0);
5.3476 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 25, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 83289, 85590, 0);
5.3477 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 26, PlsqlBlockType.PROCEDURE_IMPL, "Lock__", true, 85592, 85887, 0);
5.3478 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 27, PlsqlBlockType.PROCEDURE_IMPL, "New__", true, 85890, 86494, 3);
5.3479 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'PREPARE')", true, 86163, 86224, 0);
5.3480 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(27).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'CHECK')", true, 86228, 86304, 0);
5.3481 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(27).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 86308, 86446, 0);
5.3482 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 28, PlsqlBlockType.PROCEDURE_IMPL, "Modify__", true, 86496, 87267, 2);
5.3483 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(28).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 86802, 86929, 0);
5.3484 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(28).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 86933, 87216, 0);
5.3485 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 29, PlsqlBlockType.PROCEDURE_IMPL, "Remove__", true, 87270, 87822, 2);
5.3486 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(29).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 87505, 87610, 0);
5.3487 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(29).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 87614, 87771, 0);
5.3488 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 30, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 87824, 88277, 0);
5.3489 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 31, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 88279, 89266, 1);
5.3490 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(company_, identity_, Party_Type_API.Encode(party_type_)))", true, 88455, 89255, 4);
5.3491 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 72612, Begin, Modified IF condition", true, 88547, 88589, 0);
5.3492 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF Party_Type_API.Encode(party_type_) IN ('CUSTOMER', 'SUPPLIER')", true, 88596, 88947, 1);
5.3493 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 72612, End.", true, 88830, 88947, 0);
5.3494 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (Party_Type_API.Encode(party_type_) = 'COMPANY')", true, 88957, 89172, 1);
5.3495 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 72612, End.", true, 89154, 89172, 0);
5.3496 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(31).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 89179, 89244, 0);
5.3497 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 32, PlsqlBlockType.PROCEDURE_IMPL, "Exist_Db", true, 89269, 89871, 1);
5.3498 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(32).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(company_, identity_, party_type_db_))", true, 89457, 89857, 2);
5.3499 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(32).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF party_type_db_ IN ('CUSTOMER', 'SUPPLIER', 'COMPANY')", true, 89529, 89774, 0);
5.3500 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(32).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 89781, 89846, 0);
5.3501 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 33, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 89873, 90106, 0);
5.3502 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 34, PlsqlBlockType.PROCEDURE_IMPL, "Save_Identity_Notes___", true, 90107, 90747, 1);
5.3503 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(34).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ((note_ IS NULL) AND (note_update_ IS NULL))", true, 90398, 90475, 0);
5.3504 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 35, PlsqlBlockType.FUNCTION_IMPL, "Get_Next_Format_No___", true, 90749, 91157, 2);
5.3505 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(35).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "rec", true, 90834, 90929, 0);
5.3506 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(35).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( rec%NOTFOUND )", true, 91009, 91077, 0);
5.3507 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 36, PlsqlBlockType.PROCEDURE_IMPL, "Check_Cascade___", true, 91159, 93974, 6);
5.3508 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_ledger_item1", true, 91288, 91518, 0);
5.3509 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_ledger_item2", true, 91523, 91765, 0);
5.3510 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_ledger_item3", true, 91770, 92012, 0);
5.3511 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "ledger_item_ IN get_ledger_item1", true, 92022, 92662, 3);
5.3512 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (ledger_item_.rowtype = 'InvoiceLedgerItem')", true, 92070, 92260, 0);
5.3513 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (ledger_item_.rowtype = 'OnAccountLedgerItem')", true, 92267, 92479, 0);
5.3514 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 92486, 92649, 0);
5.3515 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "ledger_item_ IN get_ledger_item2", true, 92667, 93307, 3);
5.3516 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (ledger_item_.rowtype = 'InvoiceLedgerItem')", true, 92715, 92905, 0);
5.3517 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (ledger_item_.rowtype = 'OnAccountLedgerItem')", true, 92912, 93124, 0);
5.3518 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 93131, 93294, 0);
5.3519 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks(), 5, PlsqlBlockType.FOR_LOOP, "ledger_item_ IN get_ledger_item3", true, 93312, 93952, 3);
5.3520 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (ledger_item_.rowtype = 'InvoiceLedgerItem')", true, 93360, 93550, 0);
5.3521 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (ledger_item_.rowtype = 'OnAccountLedgerItem')", true, 93557, 93769, 0);
5.3522 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(36).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 93776, 93939, 0);
5.3523 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 37, PlsqlBlockType.PROCEDURE_IMPL, "Import___", true, 93976, 101666, 8);
5.3524 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_data", true, 94076, 94635, 0);
5.3525 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 74138, Begin, Added condition to fetch data when party_type = 'COMPANY' ", true, 94640, 94720, 0);
5.3526 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "exist_company", true, 94724, 94865, 0);
5.3527 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Bug 74138, End", true, 94869, 94886, 0);
5.3528 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (NOT update_by_key_)", true, 95366, 95609, 1);
5.3529 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( exist_company%NOTFOUND )", true, 95492, 95598, 0);
5.3530 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 5, PlsqlBlockType.IF, "IF ( update_by_key_ OR empty_lu_ )", true, 95614, 101074, 3);
5.3531 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "rec_ IN get_data", true, 95660, 100514, 12);
5.3532 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (newrec_.blocked_for_payment IS NOT NULL AND newrec_.blocked_for_payment NOT IN ('TRUE', 'FALSE'))", true, 97341, 97565, 0);
5.3533 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (newrec_.other_payee_identity IS NOT NULL)", true, 97578, 97782, 0);
5.3534 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (newrec_.interest_template IS NOT NULL)", true, 97795, 97950, 0);
5.3535 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (newrec_.reminder_template IS NOT NULL)", true, 97963, 98118, 0);
5.3536 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (TRUNC(newrec_.payment_delay) <> newrec_.payment_delay)", true, 98131, 98337, 0);
5.3537 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (newrec_.netting_allowed NOT IN ('TRUE', 'FALSE'))", true, 98350, 98526, 0);
5.3538 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (newrec_.payment_advice IS NOT NULL)", true, 98539, 98671, 0);
5.3539 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (newrec_.deduction_group IS NOT NULL)", true, 98684, 98833, 0);
5.3540 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (newrec_.payment_receipt_type IS NOT NULL)", true, 98846, 98996, 0);
5.3541 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (newrec_.party_type = 'SUPPLIER')", true, 99339, 99584, 0);
5.3542 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (newrec_.party_type = 'CUSTOMER')", true, 99597, 99961, 0);
5.3543 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (newrec_.identity = newrec_.other_payee_identity)", true, 100054, 100232, 0);
5.3544 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( i_ = 0 )", true, 100521, 100747, 0);
5.3545 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 100754, 101063, 2);
5.3546 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF msg_ IS NULL", true, 100768, 100904, 0);
5.3547 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 100914, 101049, 0);
5.3548 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- This statement is to add to the log that the Create company process for LUs is finished if", true, 101078, 101215, 0);
5.3549 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(37).getChildBlocks(), 7, PlsqlBlockType.IF, "IF ( NOT update_by_key_ AND NOT empty_lu_ )", true, 101219, 101388, 0);
5.3550 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 38, PlsqlBlockType.PROCEDURE_IMPL, "Copy___", true, 101669, 105604, 6);
5.3551 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_company", true, 101912, 102017, 0);
5.3552 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_data", true, 102022, 102462, 0);
5.3553 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (NOT update_by_key_)", true, 102630, 102873, 1);
5.3554 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( exist_company%NOTFOUND )", true, 102756, 102862, 0);
5.3555 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks(), 3, PlsqlBlockType.IF, "IF ( update_by_key_ OR empty_lu_ )", true, 102878, 105014, 1);
5.3556 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "rec_ IN get_data", true, 102924, 104893, 1);
5.3557 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 102977, 104862, 0);
5.3558 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- This statement is to add to the log that the Create company process for LUs is finished if", true, 105018, 105155, 0);
5.3559 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(38).getChildBlocks(), 5, PlsqlBlockType.IF, "IF ( NOT update_by_key_ AND NOT empty_lu_ )", true, 105159, 105328, 0);
5.3560 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 39, PlsqlBlockType.PROCEDURE_IMPL, "Export___", true, 105608, 107379, 2);
5.3561 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(39).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_data", true, 105805, 105944, 0);
5.3562 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(39).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "pctrec_ IN get_data", true, 106019, 107364, 0);
5.3563 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 40, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 107381, 107614, 0);
5.3564 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 41, PlsqlBlockType.PROCEDURE_IMPL, "Check_Cascade_Customer__", true, 107616, 108337, 2);
5.3565 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(41).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "customer_in_company", true, 107682, 107919, 0);
5.3566 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(41).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "comp_ IN customer_in_company (identity_, party_type_db_)", true, 108163, 108307, 0);
5.3567 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 42, PlsqlBlockType.PROCEDURE_IMPL, "Check_Cascade_Supplier__", true, 108339, 109060, 2);
5.3568 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(42).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "supplier_in_company", true, 108405, 108642, 0);
5.3569 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(42).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "comp_ IN supplier_in_company (identity_, party_type_db_)", true, 108886, 109030, 0);
5.3570 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 43, PlsqlBlockType.PROCEDURE_IMPL, "Cascade_Delete_Customer__", true, 109062, 109903, 2);
5.3571 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(43).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "customer_in_company", true, 109234, 109520, 0);
5.3572 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(43).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "comp_ IN customer_in_company (identity_, party_type_db_)", true, 109733, 109871, 0);
5.3573 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 44, PlsqlBlockType.PROCEDURE_IMPL, "Cascade_Delete_Supplier__", true, 109905, 110746, 2);
5.3574 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(44).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "supplier_in_company", true, 110077, 110363, 0);
5.3575 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(44).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "comp_ IN supplier_in_company (identity_, party_type_db_)", true, 110576, 110714, 0);
5.3576 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 45, PlsqlBlockType.FUNCTION_IMPL, "Create_Other_Payee_Attr__", true, 110748, 111408, 2);
5.3577 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(45).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_supplier", true, 110893, 111096, 0);
5.3578 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(45).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "supplier_info_ IN get_supplier", true, 111211, 111353, 0);
5.3579 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 46, PlsqlBlockType.FUNCTION_IMPL, "Create_Cus_Other_Payee_Attr__", true, 111410, 112059, 2);
5.3580 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(46).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_customer", true, 111559, 111739, 0);
5.3581 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(46).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "customer_info_ IN get_customer", true, 111858, 112000, 0);
5.3582 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 47, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PROTECTED METHODS ", true, 112060, 112529, 0);
5.3583 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 48, PlsqlBlockType.FUNCTION_IMPL, "Get_Priority", true, 112531, 112802, 0);
5.3584 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 49, PlsqlBlockType.FUNCTION_IMPL, "Get_Blocked_For_Payment", true, 112804, 113109, 0);
5.3585 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 50, PlsqlBlockType.FUNCTION_IMPL, "Get_Payment_Delay", true, 113111, 113404, 0);
5.3586 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 51, PlsqlBlockType.FUNCTION_IMPL, "Get_Amount_Tolerance", true, 113406, 113700, 0);
5.3587 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 52, PlsqlBlockType.FUNCTION_IMPL, "Get_Percent_Tolerance", true, 113702, 113999, 0);
5.3588 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 53, PlsqlBlockType.FUNCTION_IMPL, "Get_Disc_Days_Tolerance", true, 114001, 114469, 1);
5.3589 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(53).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 114179, 114350, 0);
5.3590 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 54, PlsqlBlockType.FUNCTION_IMPL, "Get_Netting_Allowed", true, 114471, 115095, 2);
5.3591 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(54).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 114648, 114847, 0);
5.3592 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(54).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 114857, 114950, 0);
5.3593 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 55, PlsqlBlockType.FUNCTION_IMPL, "Get_Check_Recipient", true, 115097, 115647, 1);
5.3594 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(55).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 115269, 115468, 0);
5.3595 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 56, PlsqlBlockType.FUNCTION_IMPL, "Get_Check_Recipient_Db", true, 115649, 116182, 1);
5.3596 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(56).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 115829, 116028, 0);
5.3597 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 57, PlsqlBlockType.FUNCTION_IMPL, "Get_Next_Pay_Matching_Id", true, 116184, 116803, 1);
5.3598 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(57).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE identity_pay_info_tab", true, 116583, 116752, 0);
5.3599 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 58, PlsqlBlockType.FUNCTION_IMPL, "Get_Payment_Matching_Id", true, 116805, 117363, 1);
5.3600 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(58).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_matching_id", true, 116947, 117124, 0);
5.3601 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 59, PlsqlBlockType.FUNCTION_IMPL, "Get_Format_No", true, 117365, 117963, 2);
5.3602 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(59).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 117528, 117721, 0);
5.3603 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(59).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 117731, 117824, 0);
5.3604 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 60, PlsqlBlockType.FUNCTION_IMPL, "Get_Other_Payee_Ded_Group_Desc", true, 117965, 118526, 1);
5.3605 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(60).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (deduction_group_ IS NULL)", true, 118351, 118415, 0);
5.3606 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 61, PlsqlBlockType.FUNCTION_IMPL, "Get_Deduction_Group", true, 118528, 119152, 2);
5.3607 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(61).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 118705, 118904, 0);
5.3608 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(61).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 118914, 119007, 0);
5.3609 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 62, PlsqlBlockType.FUNCTION_IMPL, "Get_Template_Id", true, 119154, 119597, 1);
5.3610 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(62).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 119323, 119486, 0);
5.3611 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 63, PlsqlBlockType.FUNCTION_IMPL, "Get_Corporation_Id", true, 119599, 120219, 2);
5.3612 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(63).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 119774, 119972, 0);
5.3613 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(63).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 119982, 120075, 0);
5.3614 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 64, PlsqlBlockType.FUNCTION_IMPL, "Get_Member_Id", true, 120221, 120821, 2);
5.3615 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(64).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 120386, 120579, 0);
5.3616 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(64).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 120589, 120682, 0);
5.3617 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 65, PlsqlBlockType.FUNCTION_IMPL, "Get_Send_Reminder_To_Payer", true, 120823, 121475, 2);
5.3618 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(65).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 121014, 121220, 0);
5.3619 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(65).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 121230, 121323, 0);
5.3620 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 66, PlsqlBlockType.FUNCTION_IMPL, "Get_Send_Interest_Inv_To_Payer", true, 121477, 122145, 2);
5.3621 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(66).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 121676, 121886, 0);
5.3622 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(66).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 121896, 121989, 0);
5.3623 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 67, PlsqlBlockType.FUNCTION_IMPL, "Get_Payment_Advice", true, 122147, 122789, 2);
5.3624 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(67).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 122317, 122515, 0);
5.3625 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(67).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 122525, 122618, 0);
5.3626 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 68, PlsqlBlockType.FUNCTION_IMPL, "Get_Payment_Advice_Db", true, 122791, 123412, 2);
5.3627 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(68).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 122964, 123162, 0);
5.3628 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(68).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 123172, 123265, 0);
5.3629 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 69, PlsqlBlockType.FUNCTION_IMPL, "Get_Other_Payee_Identity", true, 123415, 123724, 0);
5.3630 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 70, PlsqlBlockType.FUNCTION_IMPL, "Get_Interest_Template", true, 123726, 124024, 0);
5.3631 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 71, PlsqlBlockType.FUNCTION_IMPL, "Get_Reminder_Template", true, 124026, 124325, 0);
5.3632 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 72, PlsqlBlockType.FUNCTION_IMPL, "Get_Rule_Id", true, 124327, 124919, 2);
5.3633 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(72).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 124488, 124679, 0);
5.3634 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(72).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 124689, 124782, 0);
5.3635 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 73, PlsqlBlockType.FUNCTION_IMPL, "Get_Payment_Receipt_Type", true, 124921, 125501, 1);
5.3636 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(73).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 125108, 125312, 0);
5.3637 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 74, PlsqlBlockType.FUNCTION_IMPL, "Get_Payment_Receipt_Type_Db", true, 125503, 126056, 1);
5.3638 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(74).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 125693, 125897, 0);
5.3639 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 75, PlsqlBlockType.PROCEDURE_IMPL, "Instance_Exists", true, 126058, 126714, 3);
5.3640 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(75).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 126209, 126404, 0);
5.3641 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(75).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%FOUND)", true, 126588, 126633, 0);
5.3642 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(75).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 126637, 126676, 0);
5.3643 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 76, PlsqlBlockType.PROCEDURE_IMPL, "Create_Party_Type_Id", true, 126716, 127001, 0);
5.3644 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 77, PlsqlBlockType.PROCEDURE_IMPL, "Create_Identity_Pay_Info", true, 127003, 129220, 2);
5.3645 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (party_type_db_ = 'SUPPLIER')", true, 127803, 128026, 0);
5.3646 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (party_type_db_ = 'CUSTOMER')", true, 128030, 128847, 6);
5.3647 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (def_template_ IS NULL)", true, 128154, 128219, 0);
5.3648 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 128226, 128320, 0);
5.3649 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (def_template_ IS NULL)", true, 128404, 128469, 0);
5.3650 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 128476, 128570, 0);
5.3651 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "IF Company_Invoice_Info_API.Get_Use_Tax_Invoice(company_) = 'TRUE'", true, 128577, 128730, 0);
5.3652 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(77).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 128737, 128836, 0);
5.3653 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 78, PlsqlBlockType.FUNCTION_IMPL, "Validate_Identity", true, 129222, 129847, 2);
5.3654 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(78).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_identity", true, 129376, 129578, 0);
5.3655 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(78).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_identity %FOUND)", true, 129685, 129778, 0);
5.3656 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 79, PlsqlBlockType.PROCEDURE_IMPL, "Fetch_Tolerance", true, 129849, 132997, 8);
5.3657 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_identity_tolerance_", true, 130480, 130690, 0);
5.3658 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_company_tolerance_", true, 130695, 130843, 0);
5.3659 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 2, PlsqlBlockType.IF, "IF party_type_db_ = 'CUSTOMER'", true, 130978, 131477, 2);
5.3660 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- general payment tolerance", true, 131185, 131213, 0);
5.3661 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF percent_tolerance_ IS NULL AND amount_tolerance_acc_curr_ IS NULL", true, 131220, 131477, 0);
5.3662 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF party_type_db_ = 'SUPPLIER'", true, 131482, 131733, 1);
5.3663 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- general payment tolerance", true, 131524, 131552, 0);
5.3664 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 4, PlsqlBlockType.IF, "IF action_ = 'NOCALCULATE'", true, 131738, 131849, 0);
5.3665 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 5, PlsqlBlockType.IF, "IF acc_currency_ = currency_", true, 131924, 132037, 0);
5.3666 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 6, PlsqlBlockType.IF, "IF ( (div_factor_ IS NULL) OR (currency_rate_ IS NULL))", true, 132105, 132443, 0);
5.3667 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(79).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (date_ IS NOT NULL) AND ((div_factor_ IS NULL) OR (currency_rate_ IS NULL))", true, 132447, 132795, 0);
5.3668 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 80, PlsqlBlockType.PROCEDURE_IMPL, "Copy_Payway_Per_Identity___", true, 132999, 133806, 2);
5.3669 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(80).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_pay_way", true, 133202, 133393, 0);
5.3670 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(80).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "pay_way_ IN get_pay_way", true, 133403, 133773, 1);
5.3671 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(80).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO PAYMENT_WAY_PER_IDENTITY_TAB (company, identity, party_type,", true, 133444, 133759, 0);
5.3672 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 81, PlsqlBlockType.PROCEDURE_IMPL, "Copy_Payment_Address___", true, 133808, 135730, 2);
5.3673 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(81).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_pay_addr", true, 134007, 134190, 0);
5.3674 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(81).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "pay_addr_ IN get_pay_addr", true, 134200, 135701, 3);
5.3675 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(81).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 72177, Begin, Added bic_code", true, 134241, 134276, 0);
5.3676 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(81).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT INTO PAYMENT_ADDRESS_TAB (company, identity, party_type, way_id,", true, 134283, 135662, 0);
5.3677 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(81).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 72177, End", true, 135670, 135687, 0);
5.3678 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 82, PlsqlBlockType.PROCEDURE_IMPL, "Copy_Customer", true, 135732, 139718, 4);
5.3679 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_customer", true, 135882, 136076, 0);
5.3680 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_credit_info", true, 136081, 136239, 0);
5.3681 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "customer_ IN get_customer", true, 136335, 138536, 3);
5.3682 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 73125, Begin, Added template_id ", true, 136430, 136469, 0);
5.3683 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT INTO IDENTITY_PAY_INFO_TAB (company, identity, party_type,", true, 136476, 138070, 0);
5.3684 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 73125, End", true, 138078, 138095, 0);
5.3685 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "credit_ IN get_credit_info", true, 138541, 139699, 1);
5.3686 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(82).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO CUSTOMER_CREDIT_INFO_TAB (company, identity, last4q_sales,", true, 138583, 139685, 0);
5.3687 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 83, PlsqlBlockType.PROCEDURE_IMPL, "Copy_Supplier", true, 139720, 141928, 2);
5.3688 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(83).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_supplier", true, 139870, 140064, 0);
5.3689 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(83).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "supplier_ IN get_supplier", true, 140285, 141909, 3);
5.3690 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(83).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 73125, Begin, Added template_id ", true, 140380, 140419, 0);
5.3691 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(83).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT INTO IDENTITY_PAY_INFO_TAB (company, identity, party_type,", true, 140426, 141445, 0);
5.3692 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(83).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 73125, End", true, 141453, 141470, 0);
5.3693 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 84, PlsqlBlockType.FUNCTION_IMPL, "Get", true, 141930, 142856, 2);
5.3694 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(84).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 142084, 142659, 0);
5.3695 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(84).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 142669, 142762, 0);
5.3696 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 85, PlsqlBlockType.PROCEDURE_IMPL, "User_Allowed___", true, 142858, 143216, 1);
5.3697 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(85).getChildBlocks(), 0, PlsqlBlockType.IF, "IF NOT (company_finance_api.Is_User_Authorized(company_))", true, 143000, 143194, 0);
5.3698 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 86, PlsqlBlockType.COMMENT, "-- Server", true, 143219, 143437, 0);
5.3699 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 87, PlsqlBlockType.FUNCTION_IMPL, "Get_Group_For_Identity", true, 143438, 144049, 2);
5.3700 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(87).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_group", true, 143612, 143800, 0);
5.3701 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(87).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (get_group%NOTFOUND)", true, 143898, 143979, 0);
5.3702 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 88, PlsqlBlockType.PROCEDURE_IMPL, "Make_Company", true, 144051, 144608, 2);
5.3703 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(88).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (rec_.make_company = 'EXPORT')", true, 144328, 144389, 0);
5.3704 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(88).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (rec_.make_company = 'IMPORT')", true, 144393, 144590, 2);
5.3705 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(88).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (rec_.action = 'NEW')", true, 144441, 144496, 0);
5.3706 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(88).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (rec_.action = 'DUPLICATE')", true, 144503, 144579, 0);
5.3707 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 89, PlsqlBlockType.FUNCTION_IMPL, "Cust_Open_Items_Exist", true, 144610, 145567, 2);
5.3708 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(89).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 144737, 145266, 0);
5.3709 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(89).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 145407, 145496, 0);
5.3710 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 90, PlsqlBlockType.FUNCTION_IMPL, "Get_Send_Stmt_Of_Acc_To_Payer", true, 145569, 145994, 1);
5.3711 + assertBlock(lstBlockFac.get(50).getChildBlocks().get(90).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Company_Finance_API.Is_User_Authorized(company_))", true, 145745, 145837, 0);
5.3712 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 91, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 145995, 146459, 0);
5.3713 + assertBlock(lstBlockFac.get(50).getChildBlocks(), 92, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 146461, 146503, 0);
5.3714 + assertBlock(lstBlockFac, 51, PlsqlBlockType.COMMENT, "-- <UNDEFINE_SECTION>", false, 146530, 147081, 0);
5.3715 + } finally {
5.3716 + if (fileObject != null) {
5.3717 + fileObject.delete();
5.3718 + }
5.3719 + }
5.3720 + }
5.3721
5.3722 - @Test
5.3723 - public void testAdvanced10() throws IOException, BadLocationException {
5.3724 - System.out.println("Advanced test case 10");
5.3725 - FileObject fileObject = fs.getRoot().createData("InstallationSite.apy");
5.3726 - assertNotNull(fileObject);
5.3727 - try {
5.3728 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "InstallationSite.apy");
5.3729 - assertNotNull(blockFac);
5.3730 + @Test
5.3731 + public void testAdvanced10() throws IOException, BadLocationException {
5.3732 + System.out.println("Advanced test case 10");
5.3733 + FileObject fileObject = fs.getRoot().createData("InstallationSite.apy");
5.3734 + assertNotNull(fileObject);
5.3735 + try {
5.3736 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "InstallationSite.apy");
5.3737 + assertNotNull(blockFac);
5.3738
5.3739 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.3740 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.3741 // printHierarchy(lstBlockFac, "");
5.3742 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.3743 - assertTrue(lstBlockFac.size() == 11);
5.3744 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: InstallationSite", false, 0, 914, 0);
5.3745 - assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- VIEWS FOR SELECTS ", false, 1271, 1504, 0);
5.3746 - assertBlock(lstBlockFac, 2, PlsqlBlockType.VIEW, "USER_DB_LINKS_LOV", false, 1538, 1663, 0);
5.3747 - assertBlock(lstBlockFac, 3, PlsqlBlockType.TABLE_COMMENT, "USER_DB_LINKS_LOV", false, 1666, 1748, 0);
5.3748 - assertBlock(lstBlockFac, 4, PlsqlBlockType.COLUMN_COMMENT, "USER_DB_LINKS_LOV", false, 1751, 1854, 0);
5.3749 - assertBlock(lstBlockFac, 5, PlsqlBlockType.VIEW, "INSTALLATION_SITE", false, 1886, 2397, 0);
5.3750 - assertBlock(lstBlockFac, 6, PlsqlBlockType.TABLE_COMMENT, "INSTALLATION_SITE", false, 2400, 2478, 0);
5.3751 - assertBlock(lstBlockFac, 7, PlsqlBlockType.COLUMN_COMMENT, "INSTALLATION_SITE", false, 2481, 3004, 0);
5.3752 - assertBlock(lstBlockFac, 8, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 3007, 3240, 0);
5.3753 - assertBlock(lstBlockFac, 9, PlsqlBlockType.PACKAGE_BODY, "INSTALLATION_SITE_API", false, 3279, 25102, 30);
5.3754 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 3319, 4430, 0);
5.3755 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Id___", true, 4432, 5584, 5);
5.3756 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 4726, 4876, 0);
5.3757 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "exist_control", true, 4880, 4968, 0);
5.3758 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 5033, 5117, 0);
5.3759 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 5203, 5284, 0);
5.3760 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 5288, 5355, 0);
5.3761 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Keys___", true, 5586, 6135, 3);
5.3762 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 5724, 5829, 0);
5.3763 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 5894, 5967, 0);
5.3764 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 5971, 6037, 0);
5.3765 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Id___", true, 6137, 6544, 2);
5.3766 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 6247, 6328, 0);
5.3767 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%NOTFOUND)", true, 6384, 6482, 0);
5.3768 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 4, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Keys___", true, 6546, 6858, 1);
5.3769 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 6660, 6742, 0);
5.3770 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 5, PlsqlBlockType.FUNCTION_IMPL, "Check_Exist___", true, 6860, 7259, 2);
5.3771 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 6951, 7041, 0);
5.3772 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 7110, 7197, 0);
5.3773 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_IMPL, "Get_Id_Version_By_Keys___", true, 7261, 7623, 1);
5.3774 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_version", true, 7394, 7496, 0);
5.3775 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR INSERT ", true, 7625, 8370, 0);
5.3776 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Insert___", true, 8372, 8609, 0);
5.3777 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 9, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Insert___", true, 8612, 10236, 2);
5.3778 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( (UPPER(NVL(value_, 'FALSE')) = 'TRUE') AND This_Site_Exist__ )", true, 8981, 9094, 0);
5.3779 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 9115, 9726, 6);
5.3780 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'SITE_ID')", true, 9192, 9255, 0);
5.3781 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'TIMEZONE_DIFFERENCE')", true, 9262, 9385, 0);
5.3782 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'DESCRIPTION')", true, 9392, 9466, 0);
5.3783 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'THIS_SITE')", true, 9473, 9543, 0);
5.3784 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'DATABASE_LINK')", true, 9550, 9628, 0);
5.3785 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 9635, 9713, 0);
5.3786 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 10, PlsqlBlockType.PROCEDURE_IMPL, "Insert___", true, 10239, 11678, 5);
5.3787 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( newrec_.timezone_difference IS NULL )", true, 10408, 10506, 0);
5.3788 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( NVL(newrec_.this_site,'FALSE') NOT IN ('TRUE','FALSE') )", true, 10510, 10623, 0);
5.3789 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 2, PlsqlBlockType.STATEMENT, "INSERT", true, 10727, 11101, 0);
5.3790 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 3, PlsqlBlockType.STATEMENT, "SELECT &OBJID", true, 11106, 11195, 0);
5.3791 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Insert into the translation database", true, 11200, 11239, 0);
5.3792 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR UPDATE ", true, 11680, 12264, 0);
5.3793 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Update___", true, 12266, 13836, 2);
5.3794 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( (UPPER(NVL(value_, 'FALSE')) = 'TRUE') AND (newrec_.this_site = 'FALSE') AND This_Site_Exist__ )", true, 12597, 12744, 0);
5.3795 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 1, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 12765, 13393, 6);
5.3796 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'SITE_ID')", true, 12842, 12922, 0);
5.3797 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'TIMEZONE_DIFFERENCE')", true, 12929, 13052, 0);
5.3798 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'DESCRIPTION')", true, 13059, 13133, 0);
5.3799 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'THIS_SITE')", true, 13140, 13210, 0);
5.3800 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'DATABASE_LINK')", true, 13217, 13295, 0);
5.3801 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 13302, 13380, 0);
5.3802 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Update___", true, 13839, 15623, 5);
5.3803 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( newrec_.timezone_difference IS NULL )", true, 14087, 14185, 0);
5.3804 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( NVL(newrec_.this_site,'FALSE') NOT IN ('TRUE','FALSE') )", true, 14189, 14302, 0);
5.3805 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 2, PlsqlBlockType.IF, "IF by_keys_", true, 14406, 14771, 1);
5.3806 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE installation_site_tab", true, 14429, 14770, 0);
5.3807 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 14775, 15129, 1);
5.3808 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE installation_site_tab", true, 14786, 15117, 0);
5.3809 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Update the translation database if necessary", true, 15133, 15180, 0);
5.3810 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR DELETE ", true, 15625, 16222, 0);
5.3811 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Check_Delete___", true, 16224, 16429, 0);
5.3812 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Delete___", true, 16432, 16862, 2);
5.3813 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 16632, 16700, 0);
5.3814 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(16).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Delete all existing translations for this record.", true, 16705, 16757, 0);
5.3815 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 16864, 19165, 0);
5.3816 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Lock__", true, 19167, 19462, 0);
5.3817 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 19, PlsqlBlockType.PROCEDURE_IMPL, "New__", true, 19465, 20069, 3);
5.3818 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'PREPARE')", true, 19738, 19799, 0);
5.3819 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(19).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'CHECK')", true, 19803, 19879, 0);
5.3820 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(19).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 19883, 20021, 0);
5.3821 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Modify__", true, 20072, 20794, 2);
5.3822 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 20378, 20505, 0);
5.3823 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(20).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 20509, 20743, 0);
5.3824 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Remove__", true, 20797, 21349, 2);
5.3825 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 21032, 21137, 0);
5.3826 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(21).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 21141, 21298, 0);
5.3827 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 22, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 21351, 21804, 0);
5.3828 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 21806, 22027, 1);
5.3829 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(site_id_))", true, 21923, 22016, 0);
5.3830 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 24, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 22029, 22498, 0);
5.3831 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 25, PlsqlBlockType.FUNCTION_IMPL, "This_Site_Exist__", true, 22500, 22907, 3);
5.3832 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "this_site_exist", true, 22569, 22662, 0);
5.3833 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(25).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( this_site_exist%FOUND )", true, 22735, 22816, 0);
5.3834 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(25).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 22820, 22884, 0);
5.3835 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 26, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PROTECTED METHODS ", true, 22909, 23142, 0);
5.3836 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 27, PlsqlBlockType.FUNCTION_IMPL, "Get_Timezone_Difference_", true, 23144, 24344, 5);
5.3837 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "local", true, 23344, 23445, 0);
5.3838 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "remote", true, 23449, 23551, 0);
5.3839 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks(), 2, PlsqlBlockType.IF, "IF ( site_id_ IS NULL )", true, 23635, 23828, 1);
5.3840 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( local%NOTFOUND )", true, 23733, 23809, 0);
5.3841 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 23832, 24016, 1);
5.3842 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( remote%NOTFOUND )", true, 23908, 23985, 0);
5.3843 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks(), 4, PlsqlBlockType.IF, "IF ( ABS(timezone_difference_) > 24 )", true, 24020, 24113, 0);
5.3844 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 28, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PUBLIC METHODS ", true, 24346, 25046, 0);
5.3845 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 29, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 25048, 25090, 0);
5.3846 - assertBlock(lstBlockFac, 10, PlsqlBlockType.COMMENT, "COMMENT...", false, 25117, 25194, 0);
5.3847 - } finally {
5.3848 - if (fileObject != null) {
5.3849 - fileObject.delete();
5.3850 - }
5.3851 - }
5.3852 - }
5.3853 + assertTrue(lstBlockFac.size() == 11);
5.3854 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: InstallationSite", false, 0, 914, 0);
5.3855 + assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- VIEWS FOR SELECTS ", false, 1271, 1504, 0);
5.3856 + assertBlock(lstBlockFac, 2, PlsqlBlockType.VIEW, "USER_DB_LINKS_LOV", false, 1538, 1663, 0);
5.3857 + assertBlock(lstBlockFac, 3, PlsqlBlockType.TABLE_COMMENT, "USER_DB_LINKS_LOV", false, 1666, 1748, 0);
5.3858 + assertBlock(lstBlockFac, 4, PlsqlBlockType.COLUMN_COMMENT, "USER_DB_LINKS_LOV", false, 1751, 1854, 0);
5.3859 + assertBlock(lstBlockFac, 5, PlsqlBlockType.VIEW, "INSTALLATION_SITE", false, 1886, 2397, 0);
5.3860 + assertBlock(lstBlockFac, 6, PlsqlBlockType.TABLE_COMMENT, "INSTALLATION_SITE", false, 2400, 2478, 0);
5.3861 + assertBlock(lstBlockFac, 7, PlsqlBlockType.COLUMN_COMMENT, "INSTALLATION_SITE", false, 2481, 3004, 0);
5.3862 + assertBlock(lstBlockFac, 8, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 3007, 3240, 0);
5.3863 + assertBlock(lstBlockFac, 9, PlsqlBlockType.PACKAGE_BODY, "INSTALLATION_SITE_API", false, 3279, 25102, 30);
5.3864 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 3319, 4430, 0);
5.3865 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Id___", true, 4432, 5584, 5);
5.3866 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 4726, 4876, 0);
5.3867 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "exist_control", true, 4880, 4968, 0);
5.3868 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 5033, 5117, 0);
5.3869 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 5203, 5284, 0);
5.3870 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 5288, 5355, 0);
5.3871 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Keys___", true, 5586, 6135, 3);
5.3872 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 5724, 5829, 0);
5.3873 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 5894, 5967, 0);
5.3874 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 5971, 6037, 0);
5.3875 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Id___", true, 6137, 6544, 2);
5.3876 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 6247, 6328, 0);
5.3877 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%NOTFOUND)", true, 6384, 6482, 0);
5.3878 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 4, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Keys___", true, 6546, 6858, 1);
5.3879 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 6660, 6742, 0);
5.3880 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 5, PlsqlBlockType.FUNCTION_IMPL, "Check_Exist___", true, 6860, 7259, 2);
5.3881 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 6951, 7041, 0);
5.3882 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 7110, 7197, 0);
5.3883 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_IMPL, "Get_Id_Version_By_Keys___", true, 7261, 7623, 1);
5.3884 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_version", true, 7394, 7496, 0);
5.3885 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR INSERT ", true, 7625, 8370, 0);
5.3886 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Insert___", true, 8372, 8609, 0);
5.3887 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 9, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Insert___", true, 8612, 10236, 2);
5.3888 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( (UPPER(NVL(value_, 'FALSE')) = 'TRUE') AND This_Site_Exist__ )", true, 8981, 9094, 0);
5.3889 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 9115, 9726, 6);
5.3890 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'SITE_ID')", true, 9192, 9255, 0);
5.3891 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'TIMEZONE_DIFFERENCE')", true, 9262, 9385, 0);
5.3892 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'DESCRIPTION')", true, 9392, 9466, 0);
5.3893 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'THIS_SITE')", true, 9473, 9543, 0);
5.3894 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'DATABASE_LINK')", true, 9550, 9628, 0);
5.3895 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 9635, 9713, 0);
5.3896 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 10, PlsqlBlockType.PROCEDURE_IMPL, "Insert___", true, 10239, 11678, 5);
5.3897 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( newrec_.timezone_difference IS NULL )", true, 10408, 10506, 0);
5.3898 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( NVL(newrec_.this_site,'FALSE') NOT IN ('TRUE','FALSE') )", true, 10510, 10623, 0);
5.3899 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 2, PlsqlBlockType.STATEMENT, "INSERT", true, 10727, 11101, 0);
5.3900 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 3, PlsqlBlockType.STATEMENT, "SELECT &OBJID", true, 11106, 11195, 0);
5.3901 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Insert into the translation database", true, 11200, 11239, 0);
5.3902 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR UPDATE ", true, 11680, 12264, 0);
5.3903 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Update___", true, 12266, 13836, 2);
5.3904 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( (UPPER(NVL(value_, 'FALSE')) = 'TRUE') AND (newrec_.this_site = 'FALSE') AND This_Site_Exist__ )", true, 12597, 12744, 0);
5.3905 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 1, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 12765, 13393, 6);
5.3906 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'SITE_ID')", true, 12842, 12922, 0);
5.3907 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'TIMEZONE_DIFFERENCE')", true, 12929, 13052, 0);
5.3908 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'DESCRIPTION')", true, 13059, 13133, 0);
5.3909 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'THIS_SITE')", true, 13140, 13210, 0);
5.3910 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'DATABASE_LINK')", true, 13217, 13295, 0);
5.3911 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 13302, 13380, 0);
5.3912 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Update___", true, 13839, 15623, 5);
5.3913 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( newrec_.timezone_difference IS NULL )", true, 14087, 14185, 0);
5.3914 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( NVL(newrec_.this_site,'FALSE') NOT IN ('TRUE','FALSE') )", true, 14189, 14302, 0);
5.3915 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 2, PlsqlBlockType.IF, "IF by_keys_", true, 14406, 14771, 1);
5.3916 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE installation_site_tab", true, 14429, 14770, 0);
5.3917 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 14775, 15129, 1);
5.3918 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE installation_site_tab", true, 14786, 15117, 0);
5.3919 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Update the translation database if necessary", true, 15133, 15180, 0);
5.3920 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR DELETE ", true, 15625, 16222, 0);
5.3921 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Check_Delete___", true, 16224, 16429, 0);
5.3922 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Delete___", true, 16432, 16862, 2);
5.3923 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 16632, 16700, 0);
5.3924 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(16).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Delete all existing translations for this record.", true, 16705, 16757, 0);
5.3925 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 16864, 19165, 0);
5.3926 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Lock__", true, 19167, 19462, 0);
5.3927 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 19, PlsqlBlockType.PROCEDURE_IMPL, "New__", true, 19465, 20069, 3);
5.3928 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'PREPARE')", true, 19738, 19799, 0);
5.3929 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(19).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'CHECK')", true, 19803, 19879, 0);
5.3930 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(19).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 19883, 20021, 0);
5.3931 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Modify__", true, 20072, 20794, 2);
5.3932 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 20378, 20505, 0);
5.3933 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(20).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 20509, 20743, 0);
5.3934 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Remove__", true, 20797, 21349, 2);
5.3935 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 21032, 21137, 0);
5.3936 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(21).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 21141, 21298, 0);
5.3937 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 22, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 21351, 21804, 0);
5.3938 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 21806, 22027, 1);
5.3939 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(site_id_))", true, 21923, 22016, 0);
5.3940 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 24, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 22029, 22498, 0);
5.3941 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 25, PlsqlBlockType.FUNCTION_IMPL, "This_Site_Exist__", true, 22500, 22907, 3);
5.3942 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "this_site_exist", true, 22569, 22662, 0);
5.3943 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(25).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( this_site_exist%FOUND )", true, 22735, 22816, 0);
5.3944 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(25).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 22820, 22884, 0);
5.3945 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 26, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PROTECTED METHODS ", true, 22909, 23142, 0);
5.3946 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 27, PlsqlBlockType.FUNCTION_IMPL, "Get_Timezone_Difference_", true, 23144, 24344, 5);
5.3947 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "local", true, 23344, 23445, 0);
5.3948 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "remote", true, 23449, 23551, 0);
5.3949 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks(), 2, PlsqlBlockType.IF, "IF ( site_id_ IS NULL )", true, 23635, 23828, 1);
5.3950 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( local%NOTFOUND )", true, 23733, 23809, 0);
5.3951 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 23832, 24016, 1);
5.3952 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( remote%NOTFOUND )", true, 23908, 23985, 0);
5.3953 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(27).getChildBlocks(), 4, PlsqlBlockType.IF, "IF ( ABS(timezone_difference_) > 24 )", true, 24020, 24113, 0);
5.3954 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 28, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PUBLIC METHODS ", true, 24346, 25046, 0);
5.3955 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 29, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 25048, 25090, 0);
5.3956 + assertBlock(lstBlockFac, 10, PlsqlBlockType.COMMENT, "COMMENT...", false, 25117, 25194, 0);
5.3957 + } finally {
5.3958 + if (fileObject != null) {
5.3959 + fileObject.delete();
5.3960 + }
5.3961 + }
5.3962 + }
5.3963
5.3964 - @Test
5.3965 - public void testAdvanced11() throws IOException, BadLocationException {
5.3966 - System.out.println("Advanced test case 11");
5.3967 - FileObject fileObject = fs.getRoot().createData("OpPersDiaryCalculation.apy");
5.3968 - assertNotNull(fileObject);
5.3969 - try {
5.3970 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "OpPersDiaryCalculation.apy");
5.3971 - assertNotNull(blockFac);
5.3972 + @Test
5.3973 + public void testAdvanced11() throws IOException, BadLocationException {
5.3974 + System.out.println("Advanced test case 11");
5.3975 + FileObject fileObject = fs.getRoot().createData("OpPersDiaryCalculation.apy");
5.3976 + assertNotNull(fileObject);
5.3977 + try {
5.3978 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "OpPersDiaryCalculation.apy");
5.3979 + assertNotNull(blockFac);
5.3980
5.3981 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.3982 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.3983 // printHierarchy(lstBlockFac, "");
5.3984 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.3985 - assertTrue(lstBlockFac.size() == 4);
5.3986 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: OpPersDiaryCalculation", false, 0, 631, 0);
5.3987 - assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 764, 997, 0);
5.3988 - assertBlock(lstBlockFac, 2, PlsqlBlockType.PACKAGE_BODY, "OP_PERS_DIARY_CALCULATION_API", false, 1036, 36964, 30);
5.3989 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Private types", true, 1196, 1362, 0);
5.3990 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Global variables", true, 1521, 1690, 0);
5.3991 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 1957, 2190, 0);
5.3992 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 3, PlsqlBlockType.PROCEDURE_DEF, "Calculate_Op_Hours___", true, 2192, 2379, 0);
5.3993 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 4, PlsqlBlockType.PROCEDURE_DEF, "Convert_Group_Operations___", true, 2382, 2472, 0);
5.3994 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 5, PlsqlBlockType.PROCEDURE_DEF, "Do_Wage_Rounding___", true, 2475, 2625, 0);
5.3995 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_DEF, "Get_Diary___", true, 2628, 2703, 0);
5.3996 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 7, PlsqlBlockType.PROCEDURE_DEF, "Get_Op_Data___", true, 2706, 2893, 0);
5.3997 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_DEF, "Remove_Result___", true, 2896, 2964, 0);
5.3998 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 9, PlsqlBlockType.PROCEDURE_DEF, "Save_Result___", true, 2967, 3033, 0);
5.3999 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 10, PlsqlBlockType.PROCEDURE_DEF, "Set_Op_Error___", true, 3036, 3103, 0);
5.4000 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 11, PlsqlBlockType.PROCEDURE_DEF, "Set_Op_Error_Labor___", true, 3108, 3181, 0);
5.4001 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_DEF, "Update_Diary___", true, 3184, 3295, 0);
5.4002 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 3299, 3532, 0);
5.4003 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_IMPL, "Calculate_Op_Hours___", true, 3534, 10949, 9);
5.4004 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 4303, 4378, 0);
5.4005 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 4382, 4457, 0);
5.4006 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 4461, 4536, 0);
5.4007 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 3, PlsqlBlockType.IF, "IF op_diary_.reg_status = reg_status_.done", true, 4596, 4885, 1);
5.4008 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (time_pers_diary_api.Reporting_Complete(op_diary_.company_id, op_diary_.emp_no, \n op_diary_.account_date, op_diary_.reg_status) = 'TRUE')", true, 4650, 4874, 0);
5.4009 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. op_diary_.clocking.row_count", true, 4889, 5244, 1);
5.4010 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.clocking.org_code(i_) IS NULL", true, 5107, 5231, 0);
5.4011 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 5248, 5323, 0);
5.4012 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 5327, 5402, 0);
5.4013 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 5406, 5481, 0);
5.4014 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 8, PlsqlBlockType.WHILE_LOOP, "min_in_time_ < max_out_time_", true, 5521, 10922, 3);
5.4015 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. op_diary_.clocking.row_count", true, 5604, 5836, 1);
5.4016 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF min_in_time_ < op_diary_.clocking.stop_stamp(i_)", true, 5662, 5820, 0);
5.4017 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. op_diary_.clocking.row_count", true, 5907, 6383, 1);
5.4018 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF min_in_time_ < op_diary_.clocking.stop_stamp(i_)", true, 5965, 6367, 2);
5.4019 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF cur_in_time_ = op_diary_.clocking.start_stamp(i_)", true, 6034, 6223, 0);
5.4020 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 6236, 6350, 0);
5.4021 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. op_diary_.clocking.row_count", true, 6427, 10872, 1);
5.4022 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF cur_in_time_ = op_diary_.clocking.start_stamp(i_) AND\n cur_in_time_ < op_diary_.clocking.stop_stamp(i_)", true, 6485, 10856, 1);
5.4023 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. pers_diary_.result.row_count", true, 6854, 10774, 3);
5.4024 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF wage_grp_ IN (wage_group_.normal, wage_group_.overtime, wage_group_.extra, wage_group_.increment, wage_group_.balance_accrual, wage_group_.info)", true, 7322, 7764, 1);
5.4025 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF NOT pers_diary_.result.wage_hol(j_)", true, 7493, 7764, 1);
5.4026 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF in_time_ < out_time_", true, 7558, 7738, 0);
5.4027 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF wage_grp_ = wage_group_.balance_withdrawal", true, 7780, 8930, 3);
5.4028 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 64820, Begin", true, 7852, 7871, 0);
5.4029 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF in_time_ < out_time_", true, 7890, 8871, 1);
5.4030 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "k_ IN 1 .. pers_diary_.result.row_count", true, 7940, 8845, 1);
5.4031 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF pers_wage_grp_ = wage_group_.normal AND\n in_time_ < pers_diary_.result.wage_ttime(k_) AND\n out_time_ > pers_diary_.result.wage_ftime(k_) AND\n pers_diary_.result.wage_hours(k_) > 0.005", true, 8088, 8814, 0);
5.4032 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 64820, End", true, 8890, 8907, 0);
5.4033 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF wage_hours_ > 0.005 OR wage_hours_ < -0.005", true, 8946, 10752, 2);
5.4034 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "k_ IN 1 .. op_diary_.result.row_count", true, 9044, 9639, 1);
5.4035 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_id_ = op_diary_.result.op_id(k_) AND\n info_code_ = op_diary_.result.info_code(k_) AND\n mch_code_ = op_diary_.result.mch_code(k_) AND\n org_code_ = op_diary_.result.org_code(k_) AND\n wage_grp_ = op_diary_.result.wage_group(k_) AND\n wage_code_ = op_diary_.result.wage_code(k_)", true, 9112, 9611, 0);
5.4036 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF w_ < 0", true, 9658, 10615, 0);
5.4037 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Convert_Group_Operations___", true, 10952, 13524, 2);
5.4038 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "Get_Operations", true, 11287, 11575, 0);
5.4039 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. cnt_", true, 11624, 13491, 1);
5.4040 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF grp_count_ > 0", true, 11953, 13478, 3);
5.4041 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. grp_count_", true, 12013, 12122, 0);
5.4042 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF sum_hours_ < 0.005", true, 12132, 12395, 2);
5.4043 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 12171, 12221, 0);
5.4044 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. grp_count_", true, 12234, 12329, 0);
5.4045 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. grp_count_", true, 12405, 13415, 0);
5.4046 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Do_Wage_Rounding___", true, 13527, 18839, 5);
5.4047 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.IF, "IF NOT op_diary_.do_update", true, 13951, 14075, 0);
5.4048 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 14079, 14154, 0);
5.4049 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 14158, 14233, 0);
5.4050 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 14237, 14312, 0);
5.4051 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. pers_diary_.result.row_count", true, 14316, 18814, 1);
5.4052 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF pers_diary_.result.wage_hours(i_) != 0 AND\n NOT pers_diary_.result.wage_hol(i_)", true, 14371, 18801, 15);
5.4053 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. pers_diary_.result.row_count", true, 14622, 14981, 1);
5.4054 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF pers_diary_.result.wage_grp(j_) = wage_grp_ AND\n pers_diary_.result.wage_code(j_) = wage_code_ AND\n NOT pers_diary_.result.wage_hol(j_)", true, 14683, 14962, 0);
5.4055 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. op_diary_.result.row_count", true, 15022, 15316, 1);
5.4056 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.wage_group(j_) = wage_grp_ AND\n op_diary_.result.wage_code(j_) = wage_code_", true, 15081, 15297, 0);
5.4057 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 15326, 15401, 0);
5.4058 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 15411, 15486, 0);
5.4059 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 15496, 15571, 0);
5.4060 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "IF pers_sum_hours_ - op_sum_hours_ < 0.011", true, 15619, 16150, 1);
5.4061 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. op_diary_.result.row_count", true, 15710, 16133, 1);
5.4062 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.wage_group(j_) = wage_grp_ AND\n op_diary_.result.wage_code(j_) = wage_code_", true, 15772, 16111, 0);
5.4063 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 16208, 16283, 0);
5.4064 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 16293, 16368, 0);
5.4065 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 16378, 16453, 0);
5.4066 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. op_diary_.result.row_count", true, 16491, 16995, 1);
5.4067 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.wage_group(j_) = wage_grp_ AND\n op_diary_.result.wage_code(j_) = wage_code_", true, 16550, 16976, 0);
5.4068 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 17057, 17132, 0);
5.4069 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 17142, 17217, 0);
5.4070 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 17227, 17302, 0);
5.4071 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.WHILE_LOOP, "diff_hours_ < -0.001", true, 17312, 18045, 1);
5.4072 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. op_diary_.result.row_count", true, 17377, 17839, 1);
5.4073 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.wage_group(j_) = wage_grp_ AND\n op_diary_.result.wage_code(j_) = wage_code_", true, 17439, 17817, 2);
5.4074 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF w_ = 0", true, 17576, 17621, 0);
5.4075 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 17640, 17794, 1);
5.4076 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF wage_diff_(j_) < wage_diff_(w_)", true, 17666, 17768, 0);
5.4077 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.WHILE_LOOP, "diff_hours_ > 0.001", true, 18055, 18787, 1);
5.4078 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. op_diary_.result.row_count", true, 18119, 18581, 1);
5.4079 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(14).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.wage_group(j_) = wage_grp_ AND\n op_diary_.result.wage_code(j_) = wage_code_", true, 18181, 18559, 2);
5.4080 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(14).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF w_ = 0", true, 18318, 18363, 0);
5.4081 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(14).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 18382, 18536, 1);
5.4082 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(14).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF wage_diff_(j_) > wage_diff_(w_)", true, 18408, 18510, 0);
5.4083 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 17, PlsqlBlockType.PROCEDURE_IMPL, "Get_Diary___", true, 18842, 24867, 24);
5.4084 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "Get_Diary", true, 19013, 19333, 0);
5.4085 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "Get_Clockings", true, 19337, 19925, 0);
5.4086 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- FOR UPDATE OF rowversion NOWAIT;", true, 19932, 19966, 0);
5.4087 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "Get_Result", true, 19970, 20220, 0);
5.4088 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 20230, 20305, 0);
5.4089 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 20309, 20384, 0);
5.4090 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 20388, 20463, 0);
5.4091 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 7, PlsqlBlockType.IF, "IF NOT found_", true, 20825, 20939, 0);
5.4092 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 8, PlsqlBlockType.IF, "IF op_diary_.auth_id = 1", true, 20943, 21005, 0);
5.4093 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 9, PlsqlBlockType.IF, "IF op_diary_.reg_status = reg_status_.OPEN", true, 21009, 21088, 0);
5.4094 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 10, PlsqlBlockType.IF, "IF op_diary_.reg_status = reg_status_.ready", true, 21092, 21186, 0);
5.4095 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 11, PlsqlBlockType.IF, "IF op_diary_.reg_status = reg_status_.modified", true, 21190, 21274, 0);
5.4096 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 12, PlsqlBlockType.COMMENT, "COMMENT...", true, 21278, 21280, 0);
5.4097 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "COMMENT...", true, 21832, 21834, 0);
5.4098 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 22137, 22212, 0);
5.4099 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 15, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 22216, 22291, 0);
5.4100 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 16, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 22295, 22370, 0);
5.4101 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 22374, 22449, 0);
5.4102 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 18, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. op_diary_.clocking.row_count", true, 22479, 24358, 4);
5.4103 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.clocking.start_stamp(i_) - op_diary_.clocking.stop_stamp(i_) > 0.001 AND\n test_active_(Time_Reg_Error_API.CD_OVERLAP)", true, 22534, 22778, 0);
5.4104 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "j_ IN i_+1 .. op_diary_.clocking.row_count", true, 22785, 24124, 1);
5.4105 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ((op_diary_.clocking.op_id(i_) = op_diary_.clocking.op_id(j_)) AND\n (op_diary_.clocking.info_code(i_) = op_diary_.clocking.info_code(j_)) AND\n (op_diary_.clocking.mch_code(i_) = op_diary_.clocking.mch_code(j_)) )", true, 22847, 24108, 2);
5.4106 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (op_diary_.clocking.labor_class_no(i_) != op_diary_.clocking.labor_class_no(j_))", true, 23103, 23402, 0);
5.4107 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (op_diary_.clocking.work_center_no(i_) != op_diary_.clocking.work_center_no(j_))", true, 23415, 24090, 3);
5.4108 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 61149, start", true, 23519, 23537, 0);
5.4109 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (Op_Machine_Api.Work_Center_Exists(op_diary_.clocking.contract(i_), op_diary_.clocking.work_center_no(i_))='TRUE') AND \n (Op_Machine_Api.Work_Center_Exists(op_diary_.clocking.contract(j_), op_diary_.clocking.work_center_no(j_))='TRUE')", true, 23553, 24038, 0);
5.4110 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 61149, end", true, 24054, 24070, 0);
5.4111 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (NOT (error_exist_))", true, 24131, 24253, 0);
5.4112 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (op_diary_.clocking.error_no(i_) != 0)", true, 24260, 24345, 0);
5.4113 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 19, PlsqlBlockType.IF, "IF block_ AND op_diary_.do_update", true, 24362, 24511, 0);
5.4114 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 20, PlsqlBlockType.IF, "IF skip_", true, 24515, 24580, 0);
5.4115 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 21, PlsqlBlockType.IF, "IF block_", true, 24584, 24686, 0);
5.4116 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 22, PlsqlBlockType.IF, "IF op_diary_.clocking.row_count > 0", true, 24690, 24776, 0);
5.4117 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 23, PlsqlBlockType.IF, "IF op_diary_.clocking.row_count = 0", true, 24780, 24849, 0);
5.4118 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Get_Op_Data___", true, 24870, 27367, 4);
5.4119 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "Get_Calc_Param", true, 25307, 25548, 0);
5.4120 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 1, PlsqlBlockType.IF, "IF work_sched_.rule_type IS NOT NULL", true, 25941, 26114, 0);
5.4121 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 2, PlsqlBlockType.IF, "IF calc_param_type_ IS NOT NULL", true, 26182, 26563, 1);
5.4122 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "p_ IN Get_Calc_Param", true, 26225, 26552, 3);
5.4123 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE p_.param_label\n WHEN time_param_label_.min_op_diff", true, 26264, 26384, 0);
5.4124 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.CASE, "WHEN time_param_label_.max_op_diff", true, 26394, 26485, 0);
5.4125 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.CASE, "ELSE", true, 26495, 26536, 0);
5.4126 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. pers_diary_.result.row_count", true, 26602, 27282, 1);
5.4127 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF wage_hours_ > 0.001 OR wage_hours_ < -0.001", true, 26713, 27269, 2);
5.4128 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF wage_grp_ IN (wage_group_.normal, wage_group_.overtime, wage_group_.extra, wage_group_.balance_accrual)", true, 26829, 27097, 1);
5.4129 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF NOT pers_diary_.result.wage_hol(i_)", true, 26953, 27097, 0);
5.4130 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF wage_grp_ = wage_group_.balance_withdrawal", true, 27107, 27255, 0);
5.4131 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 19, PlsqlBlockType.PROCEDURE_IMPL, "Remove_Result___", true, 27370, 27700, 1);
5.4132 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.row_count_read > 0 AND op_diary_.do_update", true, 27450, 27678, 1);
5.4133 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 27580, 27666, 0);
5.4134 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Save_Result___", true, 27703, 29051, 1);
5.4135 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.row_count > 0", true, 27781, 29031, 1);
5.4136 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 27877, 29019, 0);
5.4137 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Set_Op_Error___", true, 29054, 29738, 1);
5.4138 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.clocking.row_count > 0", true, 29167, 29671, 3);
5.4139 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 61149, start", true, 29214, 29232, 0);
5.4140 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF op_diary_.error_no IS NOT NULL", true, 29239, 29637, 1);
5.4141 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE op_clocking_tab", true, 29346, 29605, 0);
5.4142 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 61149, end", true, 29644, 29660, 0);
5.4143 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 22, PlsqlBlockType.PROCEDURE_IMPL, "Set_Op_Error_Labor___", true, 29740, 30401, 1);
5.4144 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(22).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.clocking.row_count > 0", true, 29859, 30328, 3);
5.4145 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(22).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 61149, start", true, 29906, 29924, 0);
5.4146 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(22).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF op_diary_.error_no IS NOT NULL", true, 29931, 30294, 1);
5.4147 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(22).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE op_clocking_tab", true, 30038, 30262, 0);
5.4148 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(22).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 61149, end", true, 30301, 30317, 0);
5.4149 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Update_Diary___", true, 30404, 31869, 7);
5.4150 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "w_ IN 1 .. op_diary_.result.row_count", true, 30801, 31083, 1);
5.4151 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.wage_group(w_) IN (wage_group_.normal, wage_group_.overtime, wage_group_.balance_accrual, wage_group_.extra)", true, 30854, 31070, 0);
5.4152 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 1, PlsqlBlockType.IF, "IF op_diary_.clocking.row_count > 0", true, 31132, 31337, 1);
5.4153 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE op_pers_diary_tab", true, 31179, 31325, 0);
5.4154 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 31341, 31416, 0);
5.4155 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 31420, 31495, 0);
5.4156 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 31499, 31574, 0);
5.4157 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 31578, 31653, 0);
5.4158 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 6, PlsqlBlockType.IF, "IF op_diary_.error_no != 0 AND op_diary_.clocking.row_count_read > 0", true, 31657, 31848, 0);
5.4159 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 24, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 31873, 32106, 0);
5.4160 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 25, PlsqlBlockType.PROCEDURE_IMPL, "Calculate_Op__", true, 32108, 35044, 21);
5.4161 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 32346, 32421, 0);
5.4162 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 32425, 32500, 0);
5.4163 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 32504, 32579, 0);
5.4164 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 32837, 32912, 0);
5.4165 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 32916, 32991, 0);
5.4166 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 32995, 33070, 0);
5.4167 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33155, 33230, 0);
5.4168 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33234, 33309, 0);
5.4169 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33313, 33388, 0);
5.4170 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33543, 33618, 0);
5.4171 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33622, 33697, 0);
5.4172 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33701, 33776, 0);
5.4173 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 12, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33883, 33958, 0);
5.4174 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33962, 34037, 0);
5.4175 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 34041, 34116, 0);
5.4176 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 15, PlsqlBlockType.IF, "IF history_enabled_", true, 34120, 34194, 0);
5.4177 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 16, PlsqlBlockType.IF, "IF history_enabled_", true, 34266, 34346, 0);
5.4178 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 17, PlsqlBlockType.IF, "IF history_enabled_", true, 34413, 34493, 0);
5.4179 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 18, PlsqlBlockType.IF, "IF history_enabled_", true, 34594, 34674, 0);
5.4180 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 19, PlsqlBlockType.IF, "IF test_active_(Time_Reg_Error_API.CD_ORACLE)", true, 34775, 34937, 0);
5.4181 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 20, PlsqlBlockType.IF, "IF history_enabled_", true, 34944, 35024, 0);
5.4182 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 26, PlsqlBlockType.FUNCTION_IMPL, "Get_Op_Clocking_Count__", true, 35047, 35503, 0);
5.4183 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 27, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PROTECTED METHODS ", true, 35507, 36443, 0);
5.4184 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 28, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 36445, 36487, 0);
5.4185 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 29, PlsqlBlockType.COMMENT, "-- Initialize", true, 36488, 36649, 0);
5.4186 - assertBlock(lstBlockFac, 3, PlsqlBlockType.COMMENT, "COMMENT...", false, 37022, 37099, 0);
5.4187 - } finally {
5.4188 - if (fileObject != null) {
5.4189 - fileObject.delete();
5.4190 - }
5.4191 - }
5.4192 - }
5.4193 + assertTrue(lstBlockFac.size() == 4);
5.4194 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: OpPersDiaryCalculation", false, 0, 631, 0);
5.4195 + assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 764, 997, 0);
5.4196 + assertBlock(lstBlockFac, 2, PlsqlBlockType.PACKAGE_BODY, "OP_PERS_DIARY_CALCULATION_API", false, 1036, 36964, 30);
5.4197 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Private types", true, 1196, 1362, 0);
5.4198 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Global variables", true, 1521, 1690, 0);
5.4199 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 1957, 2190, 0);
5.4200 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 3, PlsqlBlockType.PROCEDURE_DEF, "Calculate_Op_Hours___", true, 2192, 2379, 0);
5.4201 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 4, PlsqlBlockType.PROCEDURE_DEF, "Convert_Group_Operations___", true, 2382, 2472, 0);
5.4202 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 5, PlsqlBlockType.PROCEDURE_DEF, "Do_Wage_Rounding___", true, 2475, 2625, 0);
5.4203 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_DEF, "Get_Diary___", true, 2628, 2703, 0);
5.4204 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 7, PlsqlBlockType.PROCEDURE_DEF, "Get_Op_Data___", true, 2706, 2893, 0);
5.4205 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_DEF, "Remove_Result___", true, 2896, 2964, 0);
5.4206 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 9, PlsqlBlockType.PROCEDURE_DEF, "Save_Result___", true, 2967, 3033, 0);
5.4207 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 10, PlsqlBlockType.PROCEDURE_DEF, "Set_Op_Error___", true, 3036, 3103, 0);
5.4208 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 11, PlsqlBlockType.PROCEDURE_DEF, "Set_Op_Error_Labor___", true, 3108, 3181, 0);
5.4209 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_DEF, "Update_Diary___", true, 3184, 3295, 0);
5.4210 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 3299, 3532, 0);
5.4211 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_IMPL, "Calculate_Op_Hours___", true, 3534, 10949, 9);
5.4212 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 4303, 4378, 0);
5.4213 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 4382, 4457, 0);
5.4214 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 4461, 4536, 0);
5.4215 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 3, PlsqlBlockType.IF, "IF op_diary_.reg_status = reg_status_.done", true, 4596, 4885, 1);
5.4216 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (time_pers_diary_api.Reporting_Complete(op_diary_.company_id, op_diary_.emp_no, \n op_diary_.account_date, op_diary_.reg_status) = 'TRUE')", true, 4650, 4874, 0);
5.4217 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. op_diary_.clocking.row_count", true, 4889, 5244, 1);
5.4218 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.clocking.org_code(i_) IS NULL", true, 5107, 5231, 0);
5.4219 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 5248, 5323, 0);
5.4220 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 5327, 5402, 0);
5.4221 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 5406, 5481, 0);
5.4222 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks(), 8, PlsqlBlockType.WHILE_LOOP, "min_in_time_ < max_out_time_", true, 5521, 10922, 3);
5.4223 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. op_diary_.clocking.row_count", true, 5604, 5836, 1);
5.4224 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF min_in_time_ < op_diary_.clocking.stop_stamp(i_)", true, 5662, 5820, 0);
5.4225 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. op_diary_.clocking.row_count", true, 5907, 6383, 1);
5.4226 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF min_in_time_ < op_diary_.clocking.stop_stamp(i_)", true, 5965, 6367, 2);
5.4227 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF cur_in_time_ = op_diary_.clocking.start_stamp(i_)", true, 6034, 6223, 0);
5.4228 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 6236, 6350, 0);
5.4229 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. op_diary_.clocking.row_count", true, 6427, 10872, 1);
5.4230 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF cur_in_time_ = op_diary_.clocking.start_stamp(i_) AND\n cur_in_time_ < op_diary_.clocking.stop_stamp(i_)", true, 6485, 10856, 1);
5.4231 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. pers_diary_.result.row_count", true, 6854, 10774, 3);
5.4232 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF wage_grp_ IN (wage_group_.normal, wage_group_.overtime, wage_group_.extra, wage_group_.increment, wage_group_.balance_accrual, wage_group_.info)", true, 7322, 7764, 1);
5.4233 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF NOT pers_diary_.result.wage_hol(j_)", true, 7493, 7764, 1);
5.4234 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF in_time_ < out_time_", true, 7558, 7738, 0);
5.4235 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF wage_grp_ = wage_group_.balance_withdrawal", true, 7780, 8930, 3);
5.4236 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 64820, Begin", true, 7852, 7871, 0);
5.4237 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF in_time_ < out_time_", true, 7890, 8871, 1);
5.4238 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "k_ IN 1 .. pers_diary_.result.row_count", true, 7940, 8845, 1);
5.4239 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF pers_wage_grp_ = wage_group_.normal AND\n in_time_ < pers_diary_.result.wage_ttime(k_) AND\n out_time_ > pers_diary_.result.wage_ftime(k_) AND\n pers_diary_.result.wage_hours(k_) > 0.005", true, 8088, 8814, 0);
5.4240 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 64820, End", true, 8890, 8907, 0);
5.4241 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF wage_hours_ > 0.005 OR wage_hours_ < -0.005", true, 8946, 10752, 2);
5.4242 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "k_ IN 1 .. op_diary_.result.row_count", true, 9044, 9639, 1);
5.4243 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_id_ = op_diary_.result.op_id(k_) AND\n info_code_ = op_diary_.result.info_code(k_) AND\n mch_code_ = op_diary_.result.mch_code(k_) AND\n org_code_ = op_diary_.result.org_code(k_) AND\n wage_grp_ = op_diary_.result.wage_group(k_) AND\n wage_code_ = op_diary_.result.wage_code(k_)", true, 9112, 9611, 0);
5.4244 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(14).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF w_ < 0", true, 9658, 10615, 0);
5.4245 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Convert_Group_Operations___", true, 10952, 13524, 2);
5.4246 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "Get_Operations", true, 11287, 11575, 0);
5.4247 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. cnt_", true, 11624, 13491, 1);
5.4248 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF grp_count_ > 0", true, 11953, 13478, 3);
5.4249 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. grp_count_", true, 12013, 12122, 0);
5.4250 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF sum_hours_ < 0.005", true, 12132, 12395, 2);
5.4251 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 12171, 12221, 0);
5.4252 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. grp_count_", true, 12234, 12329, 0);
5.4253 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. grp_count_", true, 12405, 13415, 0);
5.4254 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Do_Wage_Rounding___", true, 13527, 18839, 5);
5.4255 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.IF, "IF NOT op_diary_.do_update", true, 13951, 14075, 0);
5.4256 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 14079, 14154, 0);
5.4257 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 14158, 14233, 0);
5.4258 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 14237, 14312, 0);
5.4259 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. pers_diary_.result.row_count", true, 14316, 18814, 1);
5.4260 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF pers_diary_.result.wage_hours(i_) != 0 AND\n NOT pers_diary_.result.wage_hol(i_)", true, 14371, 18801, 15);
5.4261 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. pers_diary_.result.row_count", true, 14622, 14981, 1);
5.4262 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF pers_diary_.result.wage_grp(j_) = wage_grp_ AND\n pers_diary_.result.wage_code(j_) = wage_code_ AND\n NOT pers_diary_.result.wage_hol(j_)", true, 14683, 14962, 0);
5.4263 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. op_diary_.result.row_count", true, 15022, 15316, 1);
5.4264 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.wage_group(j_) = wage_grp_ AND\n op_diary_.result.wage_code(j_) = wage_code_", true, 15081, 15297, 0);
5.4265 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 15326, 15401, 0);
5.4266 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 15411, 15486, 0);
5.4267 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 15496, 15571, 0);
5.4268 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "IF pers_sum_hours_ - op_sum_hours_ < 0.011", true, 15619, 16150, 1);
5.4269 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. op_diary_.result.row_count", true, 15710, 16133, 1);
5.4270 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.wage_group(j_) = wage_grp_ AND\n op_diary_.result.wage_code(j_) = wage_code_", true, 15772, 16111, 0);
5.4271 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 16208, 16283, 0);
5.4272 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 16293, 16368, 0);
5.4273 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 16378, 16453, 0);
5.4274 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. op_diary_.result.row_count", true, 16491, 16995, 1);
5.4275 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.wage_group(j_) = wage_grp_ AND\n op_diary_.result.wage_code(j_) = wage_code_", true, 16550, 16976, 0);
5.4276 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 17057, 17132, 0);
5.4277 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 17142, 17217, 0);
5.4278 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 17227, 17302, 0);
5.4279 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.WHILE_LOOP, "diff_hours_ < -0.001", true, 17312, 18045, 1);
5.4280 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. op_diary_.result.row_count", true, 17377, 17839, 1);
5.4281 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.wage_group(j_) = wage_grp_ AND\n op_diary_.result.wage_code(j_) = wage_code_", true, 17439, 17817, 2);
5.4282 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF w_ = 0", true, 17576, 17621, 0);
5.4283 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 17640, 17794, 1);
5.4284 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF wage_diff_(j_) < wage_diff_(w_)", true, 17666, 17768, 0);
5.4285 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.WHILE_LOOP, "diff_hours_ > 0.001", true, 18055, 18787, 1);
5.4286 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "j_ IN 1 .. op_diary_.result.row_count", true, 18119, 18581, 1);
5.4287 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(14).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.wage_group(j_) = wage_grp_ AND\n op_diary_.result.wage_code(j_) = wage_code_", true, 18181, 18559, 2);
5.4288 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(14).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF w_ = 0", true, 18318, 18363, 0);
5.4289 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(14).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 18382, 18536, 1);
5.4290 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(4).getChildBlocks().get(0).getChildBlocks().get(14).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF wage_diff_(j_) > wage_diff_(w_)", true, 18408, 18510, 0);
5.4291 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 17, PlsqlBlockType.PROCEDURE_IMPL, "Get_Diary___", true, 18842, 24867, 24);
5.4292 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "Get_Diary", true, 19013, 19333, 0);
5.4293 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "Get_Clockings", true, 19337, 19925, 0);
5.4294 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- FOR UPDATE OF rowversion NOWAIT;", true, 19932, 19966, 0);
5.4295 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "Get_Result", true, 19970, 20220, 0);
5.4296 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 20230, 20305, 0);
5.4297 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 20309, 20384, 0);
5.4298 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 20388, 20463, 0);
5.4299 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 7, PlsqlBlockType.IF, "IF NOT found_", true, 20825, 20939, 0);
5.4300 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 8, PlsqlBlockType.IF, "IF op_diary_.auth_id = 1", true, 20943, 21005, 0);
5.4301 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 9, PlsqlBlockType.IF, "IF op_diary_.reg_status = reg_status_.OPEN", true, 21009, 21088, 0);
5.4302 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 10, PlsqlBlockType.IF, "IF op_diary_.reg_status = reg_status_.ready", true, 21092, 21186, 0);
5.4303 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 11, PlsqlBlockType.IF, "IF op_diary_.reg_status = reg_status_.modified", true, 21190, 21274, 0);
5.4304 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 12, PlsqlBlockType.COMMENT, "COMMENT...", true, 21278, 21280, 0);
5.4305 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "COMMENT...", true, 21832, 21834, 0);
5.4306 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 22137, 22212, 0);
5.4307 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 15, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 22216, 22291, 0);
5.4308 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 16, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 22295, 22370, 0);
5.4309 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 22374, 22449, 0);
5.4310 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 18, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. op_diary_.clocking.row_count", true, 22479, 24358, 4);
5.4311 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.clocking.start_stamp(i_) - op_diary_.clocking.stop_stamp(i_) > 0.001 AND\n test_active_(Time_Reg_Error_API.CD_OVERLAP)", true, 22534, 22778, 0);
5.4312 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "j_ IN i_+1 .. op_diary_.clocking.row_count", true, 22785, 24124, 1);
5.4313 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ((op_diary_.clocking.op_id(i_) = op_diary_.clocking.op_id(j_)) AND\n (op_diary_.clocking.info_code(i_) = op_diary_.clocking.info_code(j_)) AND\n (op_diary_.clocking.mch_code(i_) = op_diary_.clocking.mch_code(j_)) )", true, 22847, 24108, 2);
5.4314 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (op_diary_.clocking.labor_class_no(i_) != op_diary_.clocking.labor_class_no(j_))", true, 23103, 23402, 0);
5.4315 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (op_diary_.clocking.work_center_no(i_) != op_diary_.clocking.work_center_no(j_))", true, 23415, 24090, 3);
5.4316 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 61149, start", true, 23519, 23537, 0);
5.4317 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (Op_Machine_Api.Work_Center_Exists(op_diary_.clocking.contract(i_), op_diary_.clocking.work_center_no(i_))='TRUE') AND \n (Op_Machine_Api.Work_Center_Exists(op_diary_.clocking.contract(j_), op_diary_.clocking.work_center_no(j_))='TRUE')", true, 23553, 24038, 0);
5.4318 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 61149, end", true, 24054, 24070, 0);
5.4319 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (NOT (error_exist_))", true, 24131, 24253, 0);
5.4320 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(18).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (op_diary_.clocking.error_no(i_) != 0)", true, 24260, 24345, 0);
5.4321 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 19, PlsqlBlockType.IF, "IF block_ AND op_diary_.do_update", true, 24362, 24511, 0);
5.4322 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 20, PlsqlBlockType.IF, "IF skip_", true, 24515, 24580, 0);
5.4323 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 21, PlsqlBlockType.IF, "IF block_", true, 24584, 24686, 0);
5.4324 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 22, PlsqlBlockType.IF, "IF op_diary_.clocking.row_count > 0", true, 24690, 24776, 0);
5.4325 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 23, PlsqlBlockType.IF, "IF op_diary_.clocking.row_count = 0", true, 24780, 24849, 0);
5.4326 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Get_Op_Data___", true, 24870, 27367, 4);
5.4327 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "Get_Calc_Param", true, 25307, 25548, 0);
5.4328 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 1, PlsqlBlockType.IF, "IF work_sched_.rule_type IS NOT NULL", true, 25941, 26114, 0);
5.4329 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 2, PlsqlBlockType.IF, "IF calc_param_type_ IS NOT NULL", true, 26182, 26563, 1);
5.4330 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "p_ IN Get_Calc_Param", true, 26225, 26552, 3);
5.4331 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.CASE, "CASE p_.param_label\n WHEN time_param_label_.min_op_diff", true, 26264, 26384, 0);
5.4332 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.CASE, "WHEN time_param_label_.max_op_diff", true, 26394, 26485, 0);
5.4333 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.CASE, "ELSE", true, 26495, 26536, 0);
5.4334 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 3, PlsqlBlockType.FOR_LOOP, "i_ IN 1 .. pers_diary_.result.row_count", true, 26602, 27282, 1);
5.4335 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF wage_hours_ > 0.001 OR wage_hours_ < -0.001", true, 26713, 27269, 2);
5.4336 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF wage_grp_ IN (wage_group_.normal, wage_group_.overtime, wage_group_.extra, wage_group_.balance_accrual)", true, 26829, 27097, 1);
5.4337 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF NOT pers_diary_.result.wage_hol(i_)", true, 26953, 27097, 0);
5.4338 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF wage_grp_ = wage_group_.balance_withdrawal", true, 27107, 27255, 0);
5.4339 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 19, PlsqlBlockType.PROCEDURE_IMPL, "Remove_Result___", true, 27370, 27700, 1);
5.4340 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.row_count_read > 0 AND op_diary_.do_update", true, 27450, 27678, 1);
5.4341 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(19).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 27580, 27666, 0);
5.4342 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Save_Result___", true, 27703, 29051, 1);
5.4343 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.row_count > 0", true, 27781, 29031, 1);
5.4344 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(20).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 27877, 29019, 0);
5.4345 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Set_Op_Error___", true, 29054, 29738, 1);
5.4346 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.clocking.row_count > 0", true, 29167, 29671, 3);
5.4347 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 61149, start", true, 29214, 29232, 0);
5.4348 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF op_diary_.error_no IS NOT NULL", true, 29239, 29637, 1);
5.4349 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE op_clocking_tab", true, 29346, 29605, 0);
5.4350 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(21).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 61149, end", true, 29644, 29660, 0);
5.4351 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 22, PlsqlBlockType.PROCEDURE_IMPL, "Set_Op_Error_Labor___", true, 29740, 30401, 1);
5.4352 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(22).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.clocking.row_count > 0", true, 29859, 30328, 3);
5.4353 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(22).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 61149, start", true, 29906, 29924, 0);
5.4354 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(22).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF op_diary_.error_no IS NOT NULL", true, 29931, 30294, 1);
5.4355 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(22).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE op_clocking_tab", true, 30038, 30262, 0);
5.4356 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(22).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 61149, end", true, 30301, 30317, 0);
5.4357 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Update_Diary___", true, 30404, 31869, 7);
5.4358 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "w_ IN 1 .. op_diary_.result.row_count", true, 30801, 31083, 1);
5.4359 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF op_diary_.result.wage_group(w_) IN (wage_group_.normal, wage_group_.overtime, wage_group_.balance_accrual, wage_group_.extra)", true, 30854, 31070, 0);
5.4360 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 1, PlsqlBlockType.IF, "IF op_diary_.clocking.row_count > 0", true, 31132, 31337, 1);
5.4361 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE op_pers_diary_tab", true, 31179, 31325, 0);
5.4362 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 31341, 31416, 0);
5.4363 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 31420, 31495, 0);
5.4364 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 31499, 31574, 0);
5.4365 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 31578, 31653, 0);
5.4366 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(23).getChildBlocks(), 6, PlsqlBlockType.IF, "IF op_diary_.error_no != 0 AND op_diary_.clocking.row_count_read > 0", true, 31657, 31848, 0);
5.4367 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 24, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 31873, 32106, 0);
5.4368 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 25, PlsqlBlockType.PROCEDURE_IMPL, "Calculate_Op__", true, 32108, 35044, 21);
5.4369 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 32346, 32421, 0);
5.4370 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 32425, 32500, 0);
5.4371 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 32504, 32579, 0);
5.4372 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 32837, 32912, 0);
5.4373 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 32916, 32991, 0);
5.4374 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 32995, 33070, 0);
5.4375 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33155, 33230, 0);
5.4376 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33234, 33309, 0);
5.4377 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33313, 33388, 0);
5.4378 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33543, 33618, 0);
5.4379 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33622, 33697, 0);
5.4380 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33701, 33776, 0);
5.4381 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 12, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33883, 33958, 0);
5.4382 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 33962, 34037, 0);
5.4383 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 34041, 34116, 0);
5.4384 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 15, PlsqlBlockType.IF, "IF history_enabled_", true, 34120, 34194, 0);
5.4385 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 16, PlsqlBlockType.IF, "IF history_enabled_", true, 34266, 34346, 0);
5.4386 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 17, PlsqlBlockType.IF, "IF history_enabled_", true, 34413, 34493, 0);
5.4387 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 18, PlsqlBlockType.IF, "IF history_enabled_", true, 34594, 34674, 0);
5.4388 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 19, PlsqlBlockType.IF, "IF test_active_(Time_Reg_Error_API.CD_ORACLE)", true, 34775, 34937, 0);
5.4389 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(25).getChildBlocks(), 20, PlsqlBlockType.IF, "IF history_enabled_", true, 34944, 35024, 0);
5.4390 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 26, PlsqlBlockType.FUNCTION_IMPL, "Get_Op_Clocking_Count__", true, 35047, 35503, 0);
5.4391 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 27, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PROTECTED METHODS ", true, 35507, 36443, 0);
5.4392 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 28, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 36445, 36487, 0);
5.4393 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 29, PlsqlBlockType.COMMENT, "-- Initialize", true, 36488, 36649, 0);
5.4394 + assertBlock(lstBlockFac, 3, PlsqlBlockType.COMMENT, "COMMENT...", false, 37022, 37099, 0);
5.4395 + } finally {
5.4396 + if (fileObject != null) {
5.4397 + fileObject.delete();
5.4398 + }
5.4399 + }
5.4400 + }
5.4401
5.4402 - @Test
5.4403 - public void testAdvanced12() throws IOException, BadLocationException {
5.4404 - System.out.println("Advanced test case 12");
5.4405 - FileObject fileObject = fs.getRoot().createData("ScorecardInputValue.apy");
5.4406 - assertNotNull(fileObject);
5.4407 - try {
5.4408 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "ScorecardInputValue.apy");
5.4409 - assertNotNull(blockFac);
5.4410 + @Test
5.4411 + public void testAdvanced12() throws IOException, BadLocationException {
5.4412 + System.out.println("Advanced test case 12");
5.4413 + FileObject fileObject = fs.getRoot().createData("ScorecardInputValue.apy");
5.4414 + assertNotNull(fileObject);
5.4415 + try {
5.4416 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "ScorecardInputValue.apy");
5.4417 + assertNotNull(blockFac);
5.4418
5.4419 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.4420 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.4421 // printHierarchy(lstBlockFac, "");
5.4422 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.4423 - assertTrue(lstBlockFac.size() == 22);
5.4424 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: ScorecardInputValue", false, 0, 9500, 0);
5.4425 - assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- VIEWS FOR SELECTS ", false, 10185, 10418, 0);
5.4426 - assertBlock(lstBlockFac, 2, PlsqlBlockType.VIEW, "SCORECARD_INPUT_VALUE", false, 10448, 12414, 0);
5.4427 - assertBlock(lstBlockFac, 3, PlsqlBlockType.TABLE_COMMENT, "SCORECARD_INPUT_VALUE", false, 12417, 12499, 0);
5.4428 - assertBlock(lstBlockFac, 4, PlsqlBlockType.COLUMN_COMMENT, "SCORECARD_INPUT_VALUE", false, 12502, 15678, 0);
5.4429 - assertBlock(lstBlockFac, 5, PlsqlBlockType.VIEW, "SCORECARD_INPUT_VALUE2", false, 15711, 19054, 0);
5.4430 - assertBlock(lstBlockFac, 6, PlsqlBlockType.TABLE_COMMENT, "SCORECARD_INPUT_VALUE2", false, 19057, 19140, 0);
5.4431 - assertBlock(lstBlockFac, 7, PlsqlBlockType.COLUMN_COMMENT, "SCORECARD_INPUT_VALUE2", false, 19143, 22130, 0);
5.4432 - assertBlock(lstBlockFac, 8, PlsqlBlockType.VIEW, "SCORECARD_INPUT_VALUE3", false, 22164, 26175, 0);
5.4433 - assertBlock(lstBlockFac, 9, PlsqlBlockType.TABLE_COMMENT, "SCORECARD_INPUT_VALUE3", false, 26178, 26261, 0);
5.4434 - assertBlock(lstBlockFac, 10, PlsqlBlockType.COLUMN_COMMENT, "SCORECARD_INPUT_VALUE3", false, 26264, 29576, 0);
5.4435 - assertBlock(lstBlockFac, 11, PlsqlBlockType.COMMENT, "-- THIS VIEW IS USED AS A BASE FOR THE VIEW5 WHICH IS USED TO DISPLAY BUDGET REQUIREMENTS VS. TARGETS.", false, 29579, 29680, 0);
5.4436 - assertBlock(lstBlockFac, 12, PlsqlBlockType.VIEW, "SCORECARD_INPUT_VALUE_BUDPRO1", false, 29710, 34571, 0);
5.4437 - assertBlock(lstBlockFac, 13, PlsqlBlockType.TABLE_COMMENT, "SCORECARD_INPUT_VALUE_BUDPRO1", false, 34574, 34674, 0);
5.4438 - assertBlock(lstBlockFac, 14, PlsqlBlockType.COMMENT, "-- THIS VIEW IS USED TO DISPLAY BUDGET REQUIREMENTS VS. TARGETS.[Client is BudgetRequirementsTargets.java]", false, 34678, 34783, 0);
5.4439 - assertBlock(lstBlockFac, 15, PlsqlBlockType.COMMENT, "-- Bug 63415, begin, Added another condition to where clause of the view", false, 34812, 34884, 0);
5.4440 - assertBlock(lstBlockFac, 16, PlsqlBlockType.VIEW, "SCORECARD_INPUT_VALUE_BUDPRO2", false, 34885, 37863, 0);
5.4441 - assertBlock(lstBlockFac, 17, PlsqlBlockType.TABLE_COMMENT, "SCORECARD_INPUT_VALUE_BUDPRO2", false, 37866, 37960, 0);
5.4442 - assertBlock(lstBlockFac, 18, PlsqlBlockType.COLUMN_COMMENT, "SCORECARD_INPUT_VALUE_BUDPRO2", false, 37963, 38707, 0);
5.4443 - assertBlock(lstBlockFac, 19, PlsqlBlockType.COMMENT, "-- Bug 63415, end", false, 38710, 38983, 0);
5.4444 - assertBlock(lstBlockFac, 20, PlsqlBlockType.PACKAGE_BODY, "SCORECARD_INPUT_VALUE_API", false, 39022, 275644, 102);
5.4445 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- FINITE STATE DECLARATIONS ", true, 39062, 39295, 0);
5.4446 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 39690, 39923, 0);
5.4447 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 2, PlsqlBlockType.PROCEDURE_DEF, "Distribute_Input_Values___", true, 39926, 40160, 0);
5.4448 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- PROCHEAD.Start_Publish_Environments___", true, 40161, 40201, 0);
5.4449 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 4, PlsqlBlockType.PROCEDURE_DEF, "Object_Planned_Date___", true, 40204, 40298, 0);
5.4450 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 5, PlsqlBlockType.FUNCTION_DEF, "Find_Column___", true, 40300, 40545, 0);
5.4451 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS ", true, 40546, 41421, 0);
5.4452 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 7, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Id___", true, 41423, 42575, 5);
5.4453 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 41717, 41867, 0);
5.4454 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(7).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "exist_control", true, 41871, 41959, 0);
5.4455 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(7).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 42024, 42108, 0);
5.4456 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(7).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 42194, 42275, 0);
5.4457 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(7).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 42279, 42346, 0);
5.4458 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 8, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Keys___", true, 42577, 43386, 3);
5.4459 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 42827, 43080, 0);
5.4460 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 43145, 43218, 0);
5.4461 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 43222, 43288, 0);
5.4462 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 9, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Id___", true, 43388, 43795, 2);
5.4463 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 43498, 43579, 0);
5.4464 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%NOTFOUND)", true, 43635, 43733, 0);
5.4465 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 10, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Keys___", true, 43798, 44370, 1);
5.4466 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 44024, 44254, 0);
5.4467 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 11, PlsqlBlockType.FUNCTION_IMPL, "Check_Exist___", true, 44372, 45031, 2);
5.4468 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 44575, 44813, 0);
5.4469 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(11).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 44882, 44969, 0);
5.4470 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_IMPL, "Get_Id_Version_By_Keys___", true, 45033, 45655, 1);
5.4471 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_version", true, 45278, 45528, 0);
5.4472 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION FINITE STATE MACHINE ", true, 45657, 46731, 0);
5.4473 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_IMPL, "Finite_State_Set___", true, 46732, 47274, 1);
5.4474 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 46869, 47220, 0);
5.4475 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Finite_State_Machine___", true, 47275, 48252, 4);
5.4476 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (state_ IS NULL)", true, 47463, 47670, 2);
5.4477 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (event_ IS NULL)", true, 47494, 47552, 0);
5.4478 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 47559, 47670, 0);
5.4479 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (state_ = 'Open')", true, 47674, 47899, 2);
5.4480 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (event_ = 'Plan')", true, 47709, 47781, 0);
5.4481 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 47788, 47899, 0);
5.4482 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (state_ = 'Planned')", true, 47903, 48130, 2);
5.4483 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (event_ = 'Plan')", true, 47941, 48012, 0);
5.4484 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 48019, 48130, 0);
5.4485 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 48134, 48223, 0);
5.4486 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Finite_State_Add_To_Attr___", true, 48253, 48657, 0);
5.4487 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 17, PlsqlBlockType.PROCEDURE_IMPL, "Finite_State_Init___", true, 48658, 48900, 0);
5.4488 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 18, PlsqlBlockType.COMMENT, "-- PRIVATE FINITE STATE MACHINE ", true, 48901, 49774, 0);
5.4489 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 19, PlsqlBlockType.FUNCTION_IMPL, "Finite_State_Decode__", true, 49775, 49964, 0);
5.4490 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 20, PlsqlBlockType.FUNCTION_IMPL, "Finite_State_Encode__", true, 49965, 50162, 0);
5.4491 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Enumerate_States__", true, 50163, 50322, 0);
5.4492 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 22, PlsqlBlockType.FUNCTION_IMPL, "Finite_State_Events__", true, 50323, 50639, 4);
5.4493 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(22).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (db_state_ IS NULL)", true, 50411, 50457, 0);
5.4494 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(22).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (db_state_ = 'Open')", true, 50461, 50514, 0);
5.4495 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(22).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (db_state_ = 'Planned')", true, 50518, 50574, 0);
5.4496 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(22).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 50578, 50612, 0);
5.4497 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Enumerate_Events__", true, 50640, 50758, 0);
5.4498 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 24, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR INSERT ", true, 50759, 51504, 0);
5.4499 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 25, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Insert___", true, 51506, 51627, 0);
5.4500 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 26, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Insert___", true, 51630, 57006, 2);
5.4501 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 51857, 55259, 35);
5.4502 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'ENVIRONMENT')", true, 51934, 52068, 0);
5.4503 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'SCORECARD')", true, 52075, 52215, 0);
5.4504 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'YEAR')", true, 52222, 52354, 0);
5.4505 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'VERSION')", true, 52361, 52427, 0);
5.4506 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'SCORECARD_OBJECT')", true, 52434, 52518, 0);
5.4507 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'OBJECT_TYPE')", true, 52525, 52599, 0);
5.4508 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'YEAR_VALUE')", true, 52606, 52711, 0);
5.4509 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'P1_KEY')", true, 52718, 52782, 0);
5.4510 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (name_ = 'P1_VALUE')", true, 52789, 52890, 0);
5.4511 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (name_ = 'P2_KEY')", true, 52897, 52961, 0);
5.4512 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (name_ = 'P2_VALUE')", true, 52968, 53069, 0);
5.4513 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (name_ = 'P3_KEY')", true, 53076, 53140, 0);
5.4514 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (name_ = 'P3_VALUE')", true, 53147, 53248, 0);
5.4515 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (name_ = 'P4_KEY')", true, 53255, 53319, 0);
5.4516 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSIF (name_ = 'P4_VALUE')", true, 53326, 53427, 0);
5.4517 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 15, PlsqlBlockType.IF, "ELSIF (name_ = 'P5_KEY')", true, 53434, 53498, 0);
5.4518 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 16, PlsqlBlockType.IF, "ELSIF (name_ = 'P5_VALUE')", true, 53505, 53606, 0);
5.4519 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 17, PlsqlBlockType.IF, "ELSIF (name_ = 'P6_KEY')", true, 53613, 53677, 0);
5.4520 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 18, PlsqlBlockType.IF, "ELSIF (name_ = 'P6_VALUE')", true, 53684, 53785, 0);
5.4521 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 19, PlsqlBlockType.IF, "ELSIF (name_ = 'P7_KEY')", true, 53792, 53856, 0);
5.4522 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 20, PlsqlBlockType.IF, "ELSIF (name_ = 'P7_VALUE')", true, 53863, 53964, 0);
5.4523 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 21, PlsqlBlockType.IF, "ELSIF (name_ = 'P8_KEY')", true, 53971, 54035, 0);
5.4524 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 22, PlsqlBlockType.IF, "ELSIF (name_ = 'P8_VALUE')", true, 54042, 54143, 0);
5.4525 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 23, PlsqlBlockType.IF, "ELSIF (name_ = 'P9_KEY')", true, 54150, 54214, 0);
5.4526 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 24, PlsqlBlockType.IF, "ELSIF (name_ = 'P9_VALUE')", true, 54221, 54322, 0);
5.4527 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 25, PlsqlBlockType.IF, "ELSIF (name_ = 'P10_KEY')", true, 54329, 54395, 0);
5.4528 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 26, PlsqlBlockType.IF, "ELSIF (name_ = 'P10_VALUE')", true, 54402, 54505, 0);
5.4529 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 27, PlsqlBlockType.IF, "ELSIF (name_ = 'P11_KEY')", true, 54512, 54578, 0);
5.4530 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 28, PlsqlBlockType.IF, "ELSIF (name_ = 'P11_VALUE')", true, 54585, 54688, 0);
5.4531 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 29, PlsqlBlockType.IF, "ELSIF (name_ = 'P12_KEY')", true, 54695, 54761, 0);
5.4532 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 30, PlsqlBlockType.IF, "ELSIF (name_ = 'P12_VALUE')", true, 54768, 54871, 0);
5.4533 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 31, PlsqlBlockType.IF, "ELSIF (name_ = 'ACTION')", true, 54878, 54942, 0);
5.4534 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 32, PlsqlBlockType.IF, "ELSIF (name_ = 'MEA_STATE_CHANGE_DATE')", true, 54949, 55074, 0);
5.4535 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 33, PlsqlBlockType.IF, "ELSIF (name_ = 'BUDGET_VERSION')", true, 55081, 55161, 0);
5.4536 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 34, PlsqlBlockType.IF, "ELSE", true, 55168, 55246, 0);
5.4537 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( newrec_.scorecard_object IS NOT NULL)", true, 55265, 56356, 0);
5.4538 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 27, PlsqlBlockType.PROCEDURE_IMPL, "Insert___", true, 57009, 59227, 1);
5.4539 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 57323, 59090, 0);
5.4540 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 28, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR UPDATE ", true, 59229, 59813, 0);
5.4541 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 29, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Update___", true, 59815, 66405, 2);
5.4542 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 60196, 63689, 36);
5.4543 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'ENVIRONMENT')", true, 60273, 60407, 0);
5.4544 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'SCORECARD')", true, 60414, 60554, 0);
5.4545 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'YEAR')", true, 60561, 60693, 0);
5.4546 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'VERSION')", true, 60700, 60783, 0);
5.4547 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'SCORECARD_OBJECT')", true, 60790, 60874, 0);
5.4548 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'OBJECT_TYPE')", true, 60881, 60955, 0);
5.4549 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'YEAR_VALUE')", true, 60962, 61067, 0);
5.4550 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'P1_KEY')", true, 61074, 61138, 0);
5.4551 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (name_ = 'P1_VALUE')", true, 61145, 61246, 0);
5.4552 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (name_ = 'P2_KEY')", true, 61253, 61317, 0);
5.4553 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (name_ = 'P2_VALUE')", true, 61324, 61425, 0);
5.4554 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (name_ = 'P3_KEY')", true, 61432, 61496, 0);
5.4555 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (name_ = 'P3_VALUE')", true, 61503, 61604, 0);
5.4556 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (name_ = 'P4_KEY')", true, 61611, 61675, 0);
5.4557 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSIF (name_ = 'P4_VALUE')", true, 61682, 61783, 0);
5.4558 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 15, PlsqlBlockType.IF, "ELSIF (name_ = 'P5_KEY')", true, 61790, 61854, 0);
5.4559 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 16, PlsqlBlockType.IF, "ELSIF (name_ = 'P5_VALUE')", true, 61861, 61962, 0);
5.4560 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 17, PlsqlBlockType.IF, "ELSIF (name_ = 'P6_KEY')", true, 61969, 62033, 0);
5.4561 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 18, PlsqlBlockType.IF, "ELSIF (name_ = 'P6_VALUE')", true, 62040, 62141, 0);
5.4562 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 19, PlsqlBlockType.IF, "ELSIF (name_ = 'P7_KEY')", true, 62148, 62212, 0);
5.4563 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 20, PlsqlBlockType.IF, "ELSIF (name_ = 'P7_VALUE')", true, 62219, 62320, 0);
5.4564 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 21, PlsqlBlockType.IF, "ELSIF (name_ = 'P8_KEY')", true, 62327, 62391, 0);
5.4565 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 22, PlsqlBlockType.IF, "ELSIF (name_ = 'P8_VALUE')", true, 62398, 62499, 0);
5.4566 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 23, PlsqlBlockType.IF, "ELSIF (name_ = 'P9_KEY')", true, 62506, 62570, 0);
5.4567 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 24, PlsqlBlockType.IF, "ELSIF (name_ = 'P9_VALUE')", true, 62577, 62678, 0);
5.4568 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 25, PlsqlBlockType.IF, "ELSIF (name_ = 'P10_KEY')", true, 62685, 62751, 0);
5.4569 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 26, PlsqlBlockType.IF, "ELSIF (name_ = 'P10_VALUE')", true, 62758, 62861, 0);
5.4570 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 27, PlsqlBlockType.IF, "ELSIF (name_ = 'P11_KEY')", true, 62868, 62934, 0);
5.4571 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 28, PlsqlBlockType.IF, "ELSIF (name_ = 'P11_VALUE')", true, 62941, 63044, 0);
5.4572 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 29, PlsqlBlockType.IF, "ELSIF (name_ = 'P12_KEY')", true, 63051, 63117, 0);
5.4573 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 30, PlsqlBlockType.IF, "ELSIF (name_ = 'P12_VALUE')", true, 63124, 63227, 0);
5.4574 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 31, PlsqlBlockType.IF, "ELSIF (name_ = 'ACTION')", true, 63234, 63298, 0);
5.4575 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 32, PlsqlBlockType.IF, "ELSIF (name_ = 'MEA_STATE_CHANGE_DATE')", true, 63305, 63430, 0);
5.4576 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 33, PlsqlBlockType.IF, "ELSIF (name_ = 'BUDGET_VERSION')", true, 63437, 63517, 0);
5.4577 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 34, PlsqlBlockType.IF, "ELSIF (name_ = 'FROM_BUDPRO')", true, 63524, 63591, 0);
5.4578 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 35, PlsqlBlockType.IF, "ELSE", true, 63598, 63676, 0);
5.4579 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( newrec_.scorecard_object IS NOT NULL AND from_budpro_ = 'FALSE')", true, 63695, 65823, 13);
5.4580 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( newrec_.year_value != NVL(oldrec_.year_value,0))", true, 63885, 64029, 0);
5.4581 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( newrec_.p1_value != NVL(oldrec_.p1_value,0))", true, 64036, 64177, 0);
5.4582 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF ( newrec_.p2_value != NVL(oldrec_.p2_value,0))", true, 64184, 64325, 0);
5.4583 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF ( newrec_.p3_value != NVL(oldrec_.p3_value,0))", true, 64332, 64473, 0);
5.4584 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "IF ( newrec_.p4_value != NVL(oldrec_.p4_value,0))", true, 64480, 64621, 0);
5.4585 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "IF ( newrec_.p5_value != NVL(oldrec_.p5_value,0))", true, 64628, 64769, 0);
5.4586 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 6, PlsqlBlockType.IF, "IF ( newrec_.p6_value != NVL(oldrec_.p6_value,0))", true, 64776, 64917, 0);
5.4587 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 7, PlsqlBlockType.IF, "IF ( newrec_.p7_value != NVL(oldrec_.p7_value,0))", true, 64924, 65065, 0);
5.4588 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 8, PlsqlBlockType.IF, "IF ( newrec_.p8_value != NVL(oldrec_.p8_value,0))", true, 65072, 65213, 0);
5.4589 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 9, PlsqlBlockType.IF, "IF ( newrec_.p9_value != NVL(oldrec_.p9_value,0))", true, 65220, 65361, 0);
5.4590 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 10, PlsqlBlockType.IF, "IF ( newrec_.p10_value != NVL(oldrec_.p10_value,0))", true, 65368, 65511, 0);
5.4591 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 11, PlsqlBlockType.IF, "IF ( newrec_.p11_value != NVL(oldrec_.p11_value,0))", true, 65518, 65661, 0);
5.4592 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 12, PlsqlBlockType.IF, "IF ( newrec_.p12_value != NVL(oldrec_.p12_value,0))", true, 65668, 65811, 0);
5.4593 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 30, PlsqlBlockType.PROCEDURE_IMPL, "Update___", true, 66408, 69988, 2);
5.4594 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(30).getChildBlocks(), 0, PlsqlBlockType.IF, "IF by_keys_", true, 66756, 68416, 1);
5.4595 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(30).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 66779, 68415, 0);
5.4596 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(30).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 68420, 69893, 1);
5.4597 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(30).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 68431, 69881, 0);
5.4598 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 31, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR DELETE ", true, 69990, 70587, 0);
5.4599 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 32, PlsqlBlockType.PROCEDURE_IMPL, "Check_Delete___", true, 70589, 70910, 0);
5.4600 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 33, PlsqlBlockType.PROCEDURE_IMPL, "Delete___", true, 70913, 71317, 1);
5.4601 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(33).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 71229, 71301, 0);
5.4602 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 34, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 71319, 73620, 0);
5.4603 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 35, PlsqlBlockType.PROCEDURE_IMPL, "Lock__", true, 73622, 73917, 0);
5.4604 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 36, PlsqlBlockType.PROCEDURE_IMPL, "New__", true, 73920, 74524, 3);
5.4605 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(36).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'PREPARE')", true, 74193, 74254, 0);
5.4606 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(36).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'CHECK')", true, 74258, 74334, 0);
5.4607 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(36).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 74338, 74476, 0);
5.4608 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 37, PlsqlBlockType.PROCEDURE_IMPL, "Modify__", true, 74527, 75249, 2);
5.4609 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(37).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 74833, 74960, 0);
5.4610 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(37).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 74964, 75198, 0);
5.4611 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 38, PlsqlBlockType.PROCEDURE_IMPL, "Remove__", true, 75252, 75804, 2);
5.4612 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(38).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 75487, 75592, 0);
5.4613 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(38).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 75596, 75753, 0);
5.4614 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 39, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 75806, 76259, 0);
5.4615 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 40, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 76261, 76646, 1);
5.4616 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(40).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(environment_, scorecard_, year_, version_, scorecard_object_))", true, 76490, 76635, 0);
5.4617 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 41, PlsqlBlockType.COMMENT, "-- PUBLIC TRANSLATION METHODS ", true, 76648, 76881, 0);
5.4618 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 42, PlsqlBlockType.PROCEDURE_IMPL, "Language_Refreshed", true, 76882, 77029, 0);
5.4619 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 43, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 77030, 77263, 0);
5.4620 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 44, PlsqlBlockType.PROCEDURE_IMPL, "Distribute_Input_Values___", true, 77266, 93408, 9);
5.4621 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_child_scorecards", true, 77559, 77716, 0);
5.4622 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_open_child_scr", true, 77721, 77889, 0);
5.4623 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_input_values", true, 77894, 78348, 0);
5.4624 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_attribute_value_sum", true, 78353, 78709, 0);
5.4625 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 4, PlsqlBlockType.STATEMENT, "INDEX BY BINARY_INTEGER", true, 80236, 80259, 0);
5.4626 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 5, PlsqlBlockType.IF, "IF value_distribution_type_ IS NULL", true, 80724, 81173, 2);
5.4627 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF object_type_='MEASURE'", true, 80771, 80968, 0);
5.4628 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 80975, 81162, 0);
5.4629 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- END IF;", true, 82098, 82107, 0);
5.4630 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 7, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 82113, 82390, 1);
5.4631 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.IF, "IF parent_val_arr_(temp_period_count_) IS NULL", true, 82168, 82376, 0);
5.4632 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 8, PlsqlBlockType.FOR_LOOP, "child_scorecards_ IN get_child_scorecards", true, 82471, 93376, 3);
5.4633 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (temp_val_ = '1')", true, 82742, 82922, 0);
5.4634 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.IF, "IF NOT Check_Exist___(environment_,child_scorecards_.scorecard,year_,version_,scorecard_object_)", true, 82930, 83184, 0);
5.4635 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 83192, 93363, 2);
5.4636 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF value_distribution_type_ = 'PERCENTAGE'", true, 83901, 88188, 3);
5.4637 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF hierachical_dist_logic_ IS NULL", true, 83961, 84255, 1);
5.4638 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 84015, 84255, 0);
5.4639 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF hierachical_dist_logic_='VERSION'", true, 84269, 85607, 2);
5.4640 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF distribution_version_ IS NULL", true, 84328, 84834, 2);
5.4641 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF object_type_='MEASURE'", true, 84383, 84588, 0);
5.4642 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 84606, 84812, 0);
5.4643 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 85159, 85607, 0);
5.4644 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF hierachical_dist_logic_='ATTRIBUTE'", true, 85620, 88135, 5);
5.4645 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF distribution_attribute_ IS NULL", true, 85681, 86195, 2);
5.4646 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF object_type_='MEASURE'", true, 85738, 85946, 0);
5.4647 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 85964, 86173, 0);
5.4648 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF attribute_val_str_ IS NULL", true, 86415, 86613, 0);
5.4649 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 86628, 87029, 1);
5.4650 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 86650, 87007, 0);
5.4651 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.BEGIN_END, "", true, 87044, 87751, 1);
5.4652 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF attribute_value_sum_=0", true, 87262, 87480, 0);
5.4653 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 87767, 88115, 0);
5.4654 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF value_distribution_type_ = 'VALUE'", true, 88198, 92475, 3);
5.4655 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF hierachical_dist_logic_ IS NULL", true, 88256, 88567, 1);
5.4656 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 88311, 88567, 0);
5.4657 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF hierachical_dist_logic_='VERSION'", true, 88580, 89916, 2);
5.4658 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF distribution_version_ IS NULL", true, 88640, 89154, 2);
5.4659 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF object_type_='MEASURE'", true, 88696, 88903, 0);
5.4660 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 88923, 89131, 0);
5.4661 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 89481, 89916, 0);
5.4662 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF hierachical_dist_logic_='ATTRIBUTE'", true, 89929, 92458, 5);
5.4663 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF distribution_attribute_ IS NULL", true, 89991, 90511, 2);
5.4664 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF object_type_='MEASURE'", true, 90049, 90258, 0);
5.4665 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 90277, 90488, 0);
5.4666 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF attribute_val_str_ IS NULL", true, 90732, 90931, 0);
5.4667 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 90947, 91352, 1);
5.4668 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 90970, 91329, 0);
5.4669 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.BEGIN_END, "", true, 91368, 92084, 1);
5.4670 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF attribute_value_sum_=0", true, 91590, 91809, 0);
5.4671 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 92101, 92438, 0);
5.4672 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 45, PlsqlBlockType.PROCEDURE_IMPL, "Object_Planned_Date___", true, 93409, 93630, 0);
5.4673 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 46, PlsqlBlockType.FUNCTION_IMPL, "Find_Column___", true, 93632, 95238, 2);
5.4674 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_record", true, 93883, 94265, 0);
5.4675 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "rec_ IN get_record", true, 94301, 95198, 12);
5.4676 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (rec_.p1_key = key_)", true, 94335, 94395, 0);
5.4677 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (rec_.p2_key = key_)", true, 94402, 94465, 0);
5.4678 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (rec_.p3_key = key_)", true, 94472, 94535, 0);
5.4679 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (rec_.p4_key = key_)", true, 94542, 94605, 0);
5.4680 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (rec_.p5_key = key_)", true, 94612, 94675, 0);
5.4681 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (rec_.p6_key = key_)", true, 94682, 94745, 0);
5.4682 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (rec_.p7_key = key_)", true, 94752, 94815, 0);
5.4683 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (rec_.p8_key = key_)", true, 94822, 94885, 0);
5.4684 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (rec_.p9_key = key_)", true, 94892, 94955, 0);
5.4685 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (rec_.p10_key = key_)", true, 94962, 95027, 0);
5.4686 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (rec_.p11_key = key_)", true, 95034, 95099, 0);
5.4687 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (rec_.p12_key = key_)", true, 95106, 95185, 0);
5.4688 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 47, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 95239, 95472, 0);
5.4689 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 48, PlsqlBlockType.PROCEDURE_IMPL, "Update_Versions__", true, 95475, 96735, 5);
5.4690 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(48).getChildBlocks(), 0, PlsqlBlockType.IF, "IF version_ = 'TAR'", true, 96010, 96102, 0);
5.4691 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(48).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF version_ = 'ACT'", true, 96105, 96200, 0);
5.4692 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(48).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 96203, 96289, 0);
5.4693 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(48).getChildBlocks(), 3, PlsqlBlockType.IF, "IF data_mart_='TRUE'", true, 96292, 96508, 0);
5.4694 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(48).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 96511, 96712, 0);
5.4695 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 49, PlsqlBlockType.PROCEDURE_IMPL, "Publish__", true, 96737, 98923, 3);
5.4696 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks(), 0, PlsqlBlockType.IF, "IF data_mart_enabled_='TRUE'", true, 97361, 98021, 1);
5.4697 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Bp_Scorecard_Fact_API.Check_Exist_By_Object(environment_,scorecard_,period_,object_type_,measure_)='FALSE'", true, 97401, 98021, 2);
5.4698 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF value_ IS NOT NULL", true, 97525, 97940, 0);
5.4699 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 97950, 98005, 0);
5.4700 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 98027, 98685, 1);
5.4701 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Scorecard_Value_API.Check_Exist_By_Object(environment_,scorecard_,period_,object_type_,measure_)='FALSE'", true, 98040, 98672, 2);
5.4702 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF value_ IS NOT NULL", true, 98164, 98589, 0);
5.4703 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 98601, 98656, 0);
5.4704 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (flag_ = 'TRUE' AND value_ IS NOT NULL)", true, 98692, 98888, 0);
5.4705 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 50, PlsqlBlockType.PROCEDURE_IMPL, "Publish_Score__", true, 98924, 103003, 5);
5.4706 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- get measures and components for a specific environment_, scorecard_", true, 99124, 99193, 0);
5.4707 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_measure", true, 99196, 99373, 0);
5.4708 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- get Id, version of a scorecard record by keys", true, 99377, 99425, 0);
5.4709 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_objid", true, 99428, 99568, 0);
5.4710 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "get_rec_ in get_measure", true, 99808, 102807, 3);
5.4711 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "if publish_type_ = 'ENV'", true, 99986, 100144, 0);
5.4712 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 100150, 100262, 0);
5.4713 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.IF, "if (isScorecardPlan = 'TRUE' or isEnvPlan = 'TRUE' )", true, 100269, 102795, 13);
5.4714 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "if get_rec_.p1_key is not null", true, 100336, 100528, 0);
5.4715 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "if get_rec_.p2_key is not null", true, 100537, 100728, 0);
5.4716 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "if get_rec_.p3_key is not null", true, 100737, 100928, 0);
5.4717 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "if get_rec_.p4_key is not null", true, 100937, 101129, 0);
5.4718 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.IF, "if get_rec_.p5_key is not null", true, 101137, 101329, 0);
5.4719 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 5, PlsqlBlockType.IF, "if get_rec_.p6_key is not null", true, 101338, 101531, 0);
5.4720 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 6, PlsqlBlockType.IF, "if get_rec_.p7_key is not null", true, 101540, 101733, 0);
5.4721 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 7, PlsqlBlockType.IF, "if get_rec_.p8_key is not null", true, 101742, 101934, 0);
5.4722 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 8, PlsqlBlockType.IF, "if get_rec_.p9_key is not null", true, 101943, 102136, 0);
5.4723 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 9, PlsqlBlockType.IF, "if get_rec_.p10_key is not null", true, 102145, 102341, 0);
5.4724 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "-- Call Id ", true, 102350, 102372, 0);
5.4725 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 11, PlsqlBlockType.IF, "if get_rec_.p11_key is not null", true, 102381, 102577, 0);
5.4726 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 12, PlsqlBlockType.IF, "if get_rec_.p12_key is not null", true, 102586, 102782, 0);
5.4727 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 51, PlsqlBlockType.PROCEDURE_IMPL, "Start_Publish_Environments__", true, 103004, 103459, 0);
5.4728 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 52, PlsqlBlockType.PROCEDURE_IMPL, "Set_Publish_Environments__", true, 103460, 103746, 0);
5.4729 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 53, PlsqlBlockType.PROCEDURE_IMPL, "Start_Publish_Scorecards__", true, 103747, 104196, 0);
5.4730 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 54, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Scorecard_Publish__", true, 104197, 104576, 0);
5.4731 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 55, PlsqlBlockType.PROCEDURE_IMPL, "Plan__", true, 104577, 105195, 2);
5.4732 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(55).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 104849, 104888, 0);
5.4733 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(55).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 104892, 105146, 0);
5.4734 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 56, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PROTECTED METHODS ", true, 105196, 105665, 0);
5.4735 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 57, PlsqlBlockType.FUNCTION_IMPL, "Get_Year", true, 105668, 106214, 1);
5.4736 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(57).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 105876, 106110, 0);
5.4737 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 58, PlsqlBlockType.FUNCTION_IMPL, "Get_Distributed_Attr", true, 106215, 107799, 6);
5.4738 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(58).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- distribute_str_ VARCHAR2(20);", true, 106631, 106668, 0);
5.4739 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(58).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "version_cur_", true, 106673, 106882, 0);
5.4740 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(58).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "total_cur_", true, 106890, 107095, 0);
5.4741 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(58).getChildBlocks(), 3, PlsqlBlockType.IF, "IF total_val_ IS NULL", true, 107255, 107378, 0);
5.4742 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(58).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- distribute_string_ := \"\";", true, 107382, 107409, 0);
5.4743 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(58).getChildBlocks(), 5, PlsqlBlockType.FOR_LOOP, "temp_ IN version_cur_", true, 107413, 107744, 0);
5.4744 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 59, PlsqlBlockType.FUNCTION_IMPL, "Get_Action", true, 107800, 108354, 1);
5.4745 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(59).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 108012, 108248, 0);
5.4746 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 60, PlsqlBlockType.FUNCTION_IMPL, "Get_Mea_State_Change_Date", true, 108355, 108965, 1);
5.4747 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(60).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 108593, 108844, 0);
5.4748 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 61, PlsqlBlockType.FUNCTION_IMPL, "Get_Budget_Version", true, 108966, 109552, 1);
5.4749 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(61).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 109194, 109438, 0);
5.4750 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 62, PlsqlBlockType.PROCEDURE_IMPL, "Update_Sales_Values", true, 109553, 127635, 23);
5.4751 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INDEX BY BINARY_INTEGER", true, 110844, 110867, 0);
5.4752 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "total_index_cur_", true, 110953, 111109, 0);
5.4753 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_period", true, 111114, 111273, 0);
5.4754 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Bug 65540, begin", true, 111278, 111297, 0);
5.4755 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Bug 65540, end", true, 111369, 111386, 0);
5.4756 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- val_arr_ Val_Array_Type;", true, 111562, 111589, 0);
5.4757 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (from_where_ = 'FROM_COMPONENT')", true, 111594, 112151, 0);
5.4758 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (from_where_ = 'FROM_MEASURE')", true, 112156, 112708, 0);
5.4759 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (dist_logic_ = 'INDEX')", true, 112713, 114046, 2);
5.4760 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (total_index_ IS NULL)", true, 112863, 113011, 0);
5.4761 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.LOOP, "", true, 113136, 114022, 3);
5.4762 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(8).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (index_value_ IS NULL)", true, 113366, 113556, 0);
5.4763 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(8).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (dist_type_ = 'PERCENTAGE')", true, 113566, 113747, 0);
5.4764 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(8).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (dist_type_ = 'VALUE')", true, 113757, 113885, 0);
5.4765 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (dist_logic_ != 'INDEX')", true, 114050, 118620, 18);
5.4766 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dist_ver_ = 'ACT')", true, 114092, 114162, 0);
5.4767 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'TAR')", true, 114169, 114242, 0);
5.4768 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V1')", true, 114249, 114317, 0);
5.4769 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V2')", true, 114324, 114392, 0);
5.4770 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V3')", true, 114399, 114467, 0);
5.4771 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V4')", true, 114474, 114542, 0);
5.4772 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V5')", true, 114549, 114617, 0);
5.4773 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V6')", true, 114624, 114692, 0);
5.4774 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V7')", true, 114699, 114767, 0);
5.4775 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V8')", true, 114774, 114842, 0);
5.4776 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V9')", true, 114849, 114917, 0);
5.4777 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V10')", true, 114924, 115008, 0);
5.4778 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 12, PlsqlBlockType.IF, "IF ( from_where_= 'FROM_COMPONENT')", true, 115016, 115714, 0);
5.4779 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 13, PlsqlBlockType.IF, "IF ( from_where_= 'FROM_MEASURE')", true, 115722, 116412, 0);
5.4780 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 116420, 116454, 0);
5.4781 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 15, PlsqlBlockType.IF, "IF (total_val_ IS NULL)", true, 116610, 116767, 0);
5.4782 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 16, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 116828, 116862, 0);
5.4783 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 17, PlsqlBlockType.FOR_LOOP, "temp1_ USING environment_,scorecard_,component_,year_;", true, 116887, 118583, 2);
5.4784 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (version_val_ IS NULL)", true, 117095, 117278, 0);
5.4785 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 117288, 118457, 2);
5.4786 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dist_logic_ = 'SYB')", true, 117305, 118034, 3);
5.4787 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (index_value_ IS NULL)", true, 117448, 117671, 0);
5.4788 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (dist_type_ = 'PERCENTAGE')", true, 117687, 117873, 0);
5.4789 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (dist_type_ = 'VALUE')", true, 117889, 118034, 0);
5.4790 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (dist_logic_ = 'VERSION')", true, 118047, 118440, 2);
5.4791 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dist_type_ = 'PERCENTAGE')", true, 118099, 118272, 0);
5.4792 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (dist_type_ = 'VALUE')", true, 118288, 118420, 0);
5.4793 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (dist_logic_ != 'VERSION')", true, 118778, 119134, 2);
5.4794 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dist_type_ = 'PERCENTAGE')", true, 118820, 118921, 0);
5.4795 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (year_value_ != total_dist_val_)", true, 118929, 119123, 1);
5.4796 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(10).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN 1..count_", true, 118979, 119109, 0);
5.4797 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (count_= 1)", true, 119139, 119608, 1);
5.4798 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 119164, 119607, 0);
5.4799 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (count_= 2)", true, 119612, 120125, 1);
5.4800 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 119640, 120124, 0);
5.4801 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (count_= 3)", true, 120129, 120686, 1);
5.4802 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 120157, 120685, 0);
5.4803 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSIF (count_= 4)", true, 120690, 121288, 1);
5.4804 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 120718, 121287, 0);
5.4805 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 15, PlsqlBlockType.IF, "ELSIF (count_= 5)", true, 121292, 121929, 1);
5.4806 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 121320, 121928, 0);
5.4807 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 16, PlsqlBlockType.IF, "ELSIF (count_= 6)", true, 121933, 122613, 1);
5.4808 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 121961, 122612, 0);
5.4809 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 17, PlsqlBlockType.IF, "ELSIF (count_= 7)", true, 122617, 123338, 1);
5.4810 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 122645, 123337, 0);
5.4811 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 18, PlsqlBlockType.IF, "ELSIF (count_= 8)", true, 123342, 124104, 1);
5.4812 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 123370, 124103, 0);
5.4813 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 19, PlsqlBlockType.IF, "ELSIF (count_= 9)", true, 124108, 124911, 1);
5.4814 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 124136, 124910, 0);
5.4815 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 20, PlsqlBlockType.IF, "ELSIF (count_= 10)", true, 124915, 125762, 1);
5.4816 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 124944, 125761, 0);
5.4817 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 21, PlsqlBlockType.IF, "ELSIF (count_= 11)", true, 125766, 126657, 1);
5.4818 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 125796, 126656, 0);
5.4819 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 22, PlsqlBlockType.IF, "ELSIF (count_= 12)", true, 126661, 127609, 1);
5.4820 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(22).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 126691, 127594, 0);
5.4821 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 63, PlsqlBlockType.PROCEDURE_IMPL, "Update_Distributed_Values", true, 127636, 151802, 2);
5.4822 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_value_ = 'TRUE')", true, 128411, 151438, 3);
5.4823 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (from_where_ = 'FROM_COMPONENT')", true, 128546, 128772, 0);
5.4824 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (from_where_ = 'FROM_MEASURE')", true, 128780, 128861, 0);
5.4825 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF NOT(ref_type_ = 'REFERENCE')", true, 128869, 151438, 4);
5.4826 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (from_where_ = 'FROM_COMPONENT')", true, 128916, 129190, 0);
5.4827 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (from_where_ = 'FROM_MEASURE')", true, 129201, 129471, 0);
5.4828 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (year_value_ IS NULL)", true, 129543, 129971, 1);
5.4829 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 129585, 129970, 0);
5.4830 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 129981, 151424, 3);
5.4831 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dist_type_ = 'PERCENTAGE' AND dist_logic_ IS NULL)", true, 129998, 140747, 12);
5.4832 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (period_count_ = 1)", true, 130073, 130652, 1);
5.4833 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 130120, 130651, 0);
5.4834 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (period_count_ = 2)", true, 130668, 131302, 1);
5.4835 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 130718, 131301, 0);
5.4836 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (period_count_ = 3)", true, 131318, 132005, 1);
5.4837 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 131368, 132004, 0);
5.4838 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (period_count_ = 4)", true, 132021, 132761, 1);
5.4839 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 132071, 132760, 0);
5.4840 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (period_count_ = 5)", true, 132777, 133570, 1);
5.4841 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 132827, 133569, 0);
5.4842 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (period_count_ = 6)", true, 133586, 134432, 1);
5.4843 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 133636, 134431, 0);
5.4844 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (period_count_ = 7)", true, 134448, 135347, 1);
5.4845 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 134498, 135346, 0);
5.4846 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (period_count_ = 8)", true, 135363, 136315, 1);
5.4847 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 135413, 136314, 0);
5.4848 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (period_count_ = 9)", true, 136331, 137336, 1);
5.4849 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 136381, 137335, 0);
5.4850 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (period_count_ = 10)", true, 137352, 138412, 1);
5.4851 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 137403, 138411, 0);
5.4852 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (period_count_ = 11)", true, 138426, 139540, 1);
5.4853 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 138477, 139539, 0);
5.4854 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (period_count_ = 12)", true, 139556, 140747, 1);
5.4855 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 139607, 140723, 0);
5.4856 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (dist_type_ = 'VALUE' AND dist_logic_ IS NULL)", true, 140762, 151120, 12);
5.4857 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (period_count_ = 1)", true, 140912, 141484, 1);
5.4858 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 140959, 141483, 0);
5.4859 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (period_count_ = 2)", true, 141500, 142122, 1);
5.4860 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 141550, 142121, 0);
5.4861 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (period_count_ = 3)", true, 142138, 142807, 1);
5.4862 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 142188, 142806, 0);
5.4863 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (period_count_ = 4)", true, 142823, 143539, 1);
5.4864 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 142873, 143538, 0);
5.4865 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (period_count_ = 5)", true, 143555, 144318, 1);
5.4866 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 143605, 144317, 0);
5.4867 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (period_count_ = 6)", true, 144334, 145144, 1);
5.4868 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 144384, 145143, 0);
5.4869 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (period_count_ = 7)", true, 145160, 146017, 1);
5.4870 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 145210, 146016, 0);
5.4871 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (period_count_ = 8)", true, 146033, 146937, 1);
5.4872 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 146083, 146936, 0);
5.4873 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (period_count_ = 9)", true, 146953, 147904, 1);
5.4874 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 147003, 147903, 0);
5.4875 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (period_count_ = 10)", true, 147920, 148920, 1);
5.4876 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 147971, 148919, 0);
5.4877 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (period_count_ = 11)", true, 148936, 149984, 1);
5.4878 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 148987, 149983, 0);
5.4879 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (period_count_ = 12)", true, 150000, 151120, 1);
5.4880 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 150051, 151095, 0);
5.4881 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF ((dist_logic_ = 'SYB' OR dist_logic_ = 'VERSION' OR dist_logic_ = 'INDEX') AND (dist_type_ IS NOT NULL))", true, 151133, 151407, 0);
5.4882 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_value_ = 'FALSE')", true, 151442, 151771, 1);
5.4883 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 151485, 151759, 0);
5.4884 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 64, PlsqlBlockType.PROCEDURE_IMPL, "Publish_Scorecard", true, 151803, 152215, 1);
5.4885 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(64).getChildBlocks(), 0, PlsqlBlockType.IF, "if can_modify_ = 'TRUE'", true, 152091, 152192, 0);
5.4886 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 65, PlsqlBlockType.PROCEDURE_IMPL, "Publish_Environment", true, 152216, 153414, 2);
5.4887 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(65).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_scorecard", true, 152335, 152526, 0);
5.4888 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(65).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "get_rec in get_scorecard", true, 152635, 153389, 2);
5.4889 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(65).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_rec.objstate = 'Open')", true, 152676, 152951, 0);
5.4890 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(65).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 152958, 153376, 1);
5.4891 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(65).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "if can_modify_ = 'TRUE'", true, 153072, 153362, 0);
5.4892 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 66, PlsqlBlockType.PROCEDURE_IMPL, "Calculate_Measures", true, 153417, 170886, 5);
5.4893 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "measure_components_", true, 155976, 156206, 0);
5.4894 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "version_value_", true, 156210, 156570, 0);
5.4895 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "measure_value_", true, 156574, 156933, 0);
5.4896 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks(), 3, PlsqlBlockType.IF, "IF plan_formula_ IS NOT NULL", true, 157772, 170604, 16);
5.4897 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "measure_comp_ IN measure_components_", true, 158468, 161462, 1);
5.4898 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF byteOffSet_ > 0", true, 158635, 161446, 13);
5.4899 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (year_value_ IS NULL)", true, 158912, 159006, 0);
5.4900 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (p1_value_ IS NULL)", true, 159019, 159109, 0);
5.4901 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (p2_value_ IS NULL)", true, 159122, 159212, 0);
5.4902 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (p3_value_ IS NULL)", true, 159225, 159315, 0);
5.4903 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (p4_value_ IS NULL)", true, 159328, 159418, 0);
5.4904 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (p5_value_ IS NULL)", true, 159431, 159521, 0);
5.4905 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (p6_value_ IS NULL)", true, 159534, 159624, 0);
5.4906 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (p7_value_ IS NULL)", true, 159637, 159727, 0);
5.4907 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (p8_value_ IS NULL)", true, 159740, 159830, 0);
5.4908 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (p9_value_ IS NULL)", true, 159843, 159933, 0);
5.4909 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (p10_value_ IS NULL)", true, 159946, 160038, 0);
5.4910 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (p11_value_ IS NULL)", true, 160051, 160143, 0);
5.4911 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "IF (p12_value_ IS NULL)", true, 160156, 160248, 0);
5.4912 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (period_count_ = 1)", true, 162313, 162874, 1);
5.4913 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 162350, 162382, 0);
5.4914 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (period_count_ = 2)", true, 162881, 163447, 1);
5.4915 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 162918, 162950, 0);
5.4916 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (period_count_ = 3)", true, 163454, 164035, 1);
5.4917 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 163491, 163523, 0);
5.4918 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (period_count_ = 4)", true, 164042, 164628, 1);
5.4919 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 164079, 164111, 0);
5.4920 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (period_count_ = 5)", true, 164635, 165226, 1);
5.4921 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 164672, 164704, 0);
5.4922 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (period_count_ = 6)", true, 165233, 165829, 1);
5.4923 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 165270, 165302, 0);
5.4924 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (period_count_ = 7)", true, 165836, 166447, 1);
5.4925 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 165873, 165905, 0);
5.4926 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (period_count_ = 8)", true, 166454, 167080, 1);
5.4927 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 166491, 166523, 0);
5.4928 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (period_count_ = 9)", true, 167087, 167718, 1);
5.4929 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 167124, 167156, 0);
5.4930 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (period_count_ = 10)", true, 167725, 168363, 1);
5.4931 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 167763, 167795, 0);
5.4932 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (period_count_ = 11)", true, 168370, 169024, 1);
5.4933 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 168408, 168440, 0);
5.4934 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 12, PlsqlBlockType.IF, "IF (period_count_ = 12)", true, 169031, 169690, 1);
5.4935 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 169069, 169101, 0);
5.4936 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 13, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 169697, 170446, 0);
5.4937 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- Bug 76573 Begin. Set the measure to planned state", true, 170454, 170506, 0);
5.4938 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 15, PlsqlBlockType.COMMENT, "-- Bug 76573 End", true, 170588, 170604, 0);
5.4939 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 170615, 170861, 0);
5.4940 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 67, PlsqlBlockType.PROCEDURE_IMPL, "Update_Referred_Component", true, 170887, 173569, 3);
5.4941 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(67).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "value_cur", true, 171156, 171526, 0);
5.4942 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(67).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "component_cur", true, 171530, 171811, 0);
5.4943 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(67).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "component_cur_ IN component_cur", true, 171933, 173538, 1);
5.4944 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(67).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "value_cur_ IN value_cur", true, 172109, 173438, 1);
5.4945 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(67).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 172262, 173420, 0);
5.4946 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 68, PlsqlBlockType.PROCEDURE_IMPL, "Delete_By_Passed_Value", true, 173570, 174182, 3);
5.4947 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(68).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- objversion_ VARCHAR2(2000);", true, 173732, 173761, 0);
5.4948 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(68).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "Get_rows", true, 173765, 173900, 0);
5.4949 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(68).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "get_rec in Get_rows", true, 174003, 174154, 1);
5.4950 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(68).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Delete___(get_rec.objid,get_rec);", true, 174038, 174075, 0);
5.4951 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 69, PlsqlBlockType.PROCEDURE_IMPL, "Delete_Version_Passed", true, 174183, 174687, 2);
5.4952 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(69).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "Get_rows", true, 174304, 174449, 0);
5.4953 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(69).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "get_rec in Get_rows", true, 174552, 174660, 0);
5.4954 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 70, PlsqlBlockType.PROCEDURE_IMPL, "Delete_Scorecard_Passed", true, 174688, 175204, 2);
5.4955 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(70).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "Get_rows", true, 174814, 174963, 0);
5.4956 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(70).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "get_rec in Get_rows", true, 175067, 175175, 0);
5.4957 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 71, PlsqlBlockType.PROCEDURE_IMPL, "Insert_Data", true, 175205, 176460, 0);
5.4958 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 72, PlsqlBlockType.PROCEDURE_IMPL, "Modify_Data", true, 176461, 177849, 0);
5.4959 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 73, PlsqlBlockType.PROCEDURE_IMPL, "Delete_Data", true, 177850, 178313, 0);
5.4960 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 74, PlsqlBlockType.PROCEDURE_IMPL, "Scorecard_Inputs_By_Batch", true, 178314, 179189, 2);
5.4961 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(74).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (execution_ != 'NOW')", true, 179021, 179103, 0);
5.4962 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(74).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 179107, 179158, 0);
5.4963 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 75, PlsqlBlockType.PROCEDURE_IMPL, "Input_Scorecard_Data", true, 179190, 190918, 12);
5.4964 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_year_conn", true, 180690, 180849, 0);
5.4965 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_mea", true, 180854, 181056, 0);
5.4966 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_comp", true, 181061, 181308, 0);
5.4967 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "chk_exist", true, 181313, 181609, 0);
5.4968 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 4, PlsqlBlockType.IF, "IF scorecard_ IS null", true, 182611, 182812, 0);
5.4969 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 182818, 182981, 0);
5.4970 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 6, PlsqlBlockType.IF, "if version_ IS null", true, 182988, 183260, 0);
5.4971 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSE", true, 183266, 183430, 0);
5.4972 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 8, PlsqlBlockType.IF, "if years_ IS null", true, 183437, 183592, 0);
5.4973 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSE", true, 183598, 183755, 0);
5.4974 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 183762, 183796, 0);
5.4975 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 11, PlsqlBlockType.FOR_LOOP, "ssql_;", true, 183813, 190872, 2);
5.4976 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "meaNo IN get_mea(env, tempscr_)", true, 183941, 187181, 2);
5.4977 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 183993, 184027, 0);
5.4978 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "ssql2_;", true, 184050, 187134, 2);
5.4979 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 184173, 184207, 0);
5.4980 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "ssql3_;", true, 184234, 187083, 1);
5.4981 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (tempver_ != 'ASS')", true, 184567, 187057, 4);
5.4982 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_year_conn%FOUND)", true, 184729, 184802, 0);
5.4983 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 184824, 184901, 0);
5.4984 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_not_exist = 1)", true, 184966, 186362, 4);
5.4985 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (chk_exist%FOUND)", true, 185214, 185283, 0);
5.4986 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 185308, 185388, 0);
5.4987 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_exists = 1)", true, 185455, 185761, 0);
5.4988 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 185786, 186111, 0);
5.4989 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 186385, 187030, 3);
5.4990 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (chk_exist%FOUND)", true, 186560, 186633, 0);
5.4991 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 186658, 186741, 0);
5.4992 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_exists_del = 1)", true, 186808, 187001, 0);
5.4993 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "meaNo IN get_mea(env, tempscr_)", true, 187192, 190855, 1);
5.4994 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "compNo IN get_comp(env, tempscr_, meaNo.level_id)", true, 187245, 190836, 2);
5.4995 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 187351, 187385, 0);
5.4996 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "ssql2_;", true, 187412, 190784, 2);
5.4997 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 187590, 187624, 0);
5.4998 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "ssql3_;", true, 187655, 190727, 1);
5.4999 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (tempver_ != 'ASS')", true, 188053, 190699, 4);
5.5000 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_year_conn%FOUND)", true, 188224, 188301, 0);
5.5001 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 188326, 188410, 0);
5.5002 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_not_exist2 = 1)", true, 188481, 189951, 4);
5.5003 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (chk_exist%FOUND)", true, 188744, 188817, 0);
5.5004 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 188845, 188932, 0);
5.5005 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_exists2 = 1)", true, 189005, 189319, 0);
5.5006 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 189347, 189687, 0);
5.5007 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 189977, 190669, 3);
5.5008 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (chk_exist%FOUND)", true, 190162, 190239, 0);
5.5009 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 190267, 190358, 0);
5.5010 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_exists_del2 = 1)", true, 190431, 190637, 0);
5.5011 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 76, PlsqlBlockType.PROCEDURE_IMPL, "Start_Inputing_Scorecards", true, 190920, 191375, 0);
5.5012 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 77, PlsqlBlockType.PROCEDURE_IMPL, "Hierachical_Distribution", true, 191376, 196033, 7);
5.5013 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_scorecard_objects", true, 191618, 191868, 0);
5.5014 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_components", true, 191873, 192136, 0);
5.5015 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_child_scorecards", true, 192141, 192298, 0);
5.5016 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "check_component_selected", true, 192303, 192597, 0);
5.5017 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 4, PlsqlBlockType.STATEMENT, "INDEX BY BINARY_INTEGER", true, 192698, 192721, 0);
5.5018 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 5, PlsqlBlockType.IF, "IF object_type_ = 'COMPONENT'", true, 193192, 195709, 7);
5.5019 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Get measure components in parent", true, 193233, 193268, 0);
5.5020 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "components_ IN get_components(scorecard_)", true, 193313, 193786, 1);
5.5021 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF check_component_selected%FOUND", true, 193570, 193729, 0);
5.5022 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.IF, "IF index_>0", true, 193794, 194916, 1);
5.5023 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "child_scorecards_ IN get_child_scorecards", true, 193862, 194916, 2);
5.5024 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "components_ IN get_components(child_scorecards_.scorecard)", true, 193964, 194650, 2);
5.5025 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "index_ IN 1 .. parent_component_count_", true, 194087, 194327, 1);
5.5026 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF component_arr_(index_)=components_.level_id", true, 194153, 194302, 0);
5.5027 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF NOT component_exist_", true, 194343, 194563, 0);
5.5028 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF child_component_count_!=parent_component_count_", true, 194663, 194897, 0);
5.5029 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 194923, 195050, 0);
5.5030 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 4, PlsqlBlockType.IF, "IF sel_index_>0", true, 195058, 195273, 1);
5.5031 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "index_ IN 1..sel_index_", true, 195088, 195273, 0);
5.5032 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 195280, 195412, 0);
5.5033 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 6, PlsqlBlockType.FOR_LOOP, "child_scorecards_ IN get_child_scorecards", true, 195419, 195709, 1);
5.5034 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 76573 Removed the call to Set_To_Planned() since it is called inside Calculate_Measures() method", true, 195590, 195693, 0);
5.5035 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSE", true, 195713, 196002, 1);
5.5036 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "scorecard_objects_ IN get_scorecard_objects", true, 195724, 195991, 0);
5.5037 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 78, PlsqlBlockType.PROCEDURE_IMPL, "Publish_Environment_Batch", true, 196035, 196725, 3);
5.5038 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(78).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Start_Publish_Environments___(attr_);", true, 196416, 196455, 0);
5.5039 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(78).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (schedule_ != 'NOW')", true, 196552, 196632, 0);
5.5040 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(78).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 196636, 196694, 0);
5.5041 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 79, PlsqlBlockType.PROCEDURE_IMPL, "Set_Publish_Scorecards", true, 196726, 197262, 0);
5.5042 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 80, PlsqlBlockType.PROCEDURE_IMPL, "Publish_Scorecard_Batch", true, 197263, 198029, 3);
5.5043 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(80).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Start_Publish_Environments___(attr_);", true, 197725, 197764, 0);
5.5044 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(80).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (schedule_ != 'NOW')", true, 197859, 197939, 0);
5.5045 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(80).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 197943, 197999, 0);
5.5046 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 81, PlsqlBlockType.PROCEDURE_IMPL, "Hierarchical_Consolidation", true, 198030, 203117, 9);
5.5047 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_scorecard_objects", true, 198261, 198511, 0);
5.5048 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_components", true, 198516, 198779, 0);
5.5049 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_child_scorecards", true, 198784, 198941, 0);
5.5050 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "check_child_scorecards", true, 198946, 199097, 0);
5.5051 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 4, PlsqlBlockType.CURSOR, "check_component_selected", true, 199102, 199396, 0);
5.5052 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 5, PlsqlBlockType.STATEMENT, "INDEX BY BINARY_INTEGER", true, 199497, 199520, 0);
5.5053 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (check_child_scorecards%NOTFOUND)", true, 200127, 200337, 0);
5.5054 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 7, PlsqlBlockType.IF, "IF object_type_ = 'COMPONENT'", true, 200376, 202795, 6);
5.5055 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Get measure components in parent", true, 200417, 200452, 0);
5.5056 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "components_ IN get_components(scorecard_)", true, 200497, 200970, 1);
5.5057 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF check_component_selected%FOUND", true, 200754, 200913, 0);
5.5058 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks(), 2, PlsqlBlockType.IF, "IF index_>0", true, 200978, 202100, 1);
5.5059 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "child_scorecards_ IN get_child_scorecards", true, 201046, 202100, 2);
5.5060 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "components_ IN get_components(child_scorecards_.scorecard)", true, 201148, 201834, 2);
5.5061 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "index_ IN 1 .. parent_component_count_", true, 201271, 201511, 1);
5.5062 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF component_arr_(index_)=components_.level_id", true, 201337, 201486, 0);
5.5063 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF NOT component_exist_", true, 201527, 201747, 0);
5.5064 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF child_component_count_!=parent_component_count_", true, 201847, 202081, 0);
5.5065 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 202107, 202234, 0);
5.5066 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks(), 4, PlsqlBlockType.IF, "IF sel_index_>0", true, 202242, 202656, 2);
5.5067 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "index_ IN 1..sel_index_", true, 202272, 202449, 0);
5.5068 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 76573 Removed the call to Set_To_Planned() since it is called inside Calculate_Measures() method", true, 202553, 202656, 0);
5.5069 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 202663, 202795, 0);
5.5070 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSE", true, 202801, 203084, 1);
5.5071 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "scorecard_objects_ IN get_scorecard_objects", true, 202813, 203072, 0);
5.5072 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 82, PlsqlBlockType.PROCEDURE_IMPL, "Consolidate_Values", true, 203118, 212627, 11);
5.5073 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INDEX BY BINARY_INTEGER", true, 203834, 203857, 0);
5.5074 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_child_scorecards", true, 204206, 204375, 0);
5.5075 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_open_child_scr", true, 204380, 204562, 0);
5.5076 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_total_period_val_", true, 204568, 206389, 0);
5.5077 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 4, PlsqlBlockType.CURSOR, "get_period_val_", true, 206395, 208204, 0);
5.5078 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- value_distribution_type_ := scorecard_Structure_api.Get_Value_Dist_Type_Db(scorecard_,scorecard_object_,environment_,object_type_);", true, 208305, 208438, 0);
5.5079 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 6, PlsqlBlockType.IF, "IF value_distribution_type_ IS NULL", true, 208558, 209007, 2);
5.5080 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF object_type_='MEASURE'", true, 208605, 208802, 0);
5.5081 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 208809, 208996, 0);
5.5082 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 7, PlsqlBlockType.FOR_LOOP, "child_scorecards_ IN get_child_scorecards", true, 209013, 209733, 2);
5.5083 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (temp_val_ = '1')", true, 209262, 209443, 0);
5.5084 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(7).getChildBlocks(), 1, PlsqlBlockType.IF, "IF NOT Check_Exist___(environment_,child_scorecards_.scorecard,year_,version_,scorecard_object_)", true, 209451, 209719, 0);
5.5085 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 8, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 209738, 210210, 1);
5.5086 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.LOOP, "", true, 209841, 210168, 1);
5.5087 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(8).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (temp_period_value_ IS NULL)", true, 209963, 210152, 0);
5.5088 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (value_distribution_type_ = 'PERCENTAGE')", true, 210859, 211452, 1);
5.5089 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 210993, 211405, 0);
5.5090 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (value_distribution_type_ = 'VALUE')", true, 211457, 211836, 1);
5.5091 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 211512, 211824, 0);
5.5092 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 83, PlsqlBlockType.PROCEDURE_IMPL, "All_Hierarchical_Logic", true, 212628, 217991, 8);
5.5093 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_scorecard_objects", true, 213291, 213535, 0);
5.5094 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_period_count", true, 213540, 213679, 0);
5.5095 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_scorecard_measures", true, 213684, 213906, 0);
5.5096 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_childs", true, 213911, 214086, 0);
5.5097 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 4, PlsqlBlockType.CURSOR, "get_childs_for_cons", true, 214091, 214406, 0);
5.5098 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (get_childs%NOTFOUND)", true, 214575, 214660, 0);
5.5099 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSE", true, 214664, 214703, 0);
5.5100 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (child_exists_ = 'TRUE')", true, 214708, 217963, 3);
5.5101 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_scorecard_objects_ IN get_scorecard_objects(scorecard_)", true, 214748, 215118, 0);
5.5102 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (action_ = 'DISTRIBUTION')", true, 215344, 216008, 3);
5.5103 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (comp_level_ = 'TRUE')", true, 215388, 215705, 1);
5.5104 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_scorecard_measures_ IN get_scorecard_measures(scorecard_)", true, 215431, 215705, 0);
5.5105 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 215715, 215849, 0);
5.5106 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "get_childs_ IN get_childs", true, 215859, 216008, 0);
5.5107 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'CONSOLIDATION')", true, 216016, 217952, 3);
5.5108 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_childs_for_cons_ IN get_childs_for_cons", true, 216064, 217307, 2);
5.5109 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_scorecard_objects_ IN get_scorecard_objects(get_childs_for_cons_.scorecard)", true, 216130, 216586, 0);
5.5110 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (Scorecard_API.Get_Child_Count(get_childs_for_cons_.scorecard,environment_) >=1)", true, 216599, 217288, 2);
5.5111 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (comp_level_ = 'TRUE')", true, 216703, 217084, 1);
5.5112 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_scorecard_measures_ IN get_scorecard_measures(get_childs_for_cons_.scorecard)", true, 216752, 217084, 0);
5.5113 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 217100, 217268, 0);
5.5114 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- for the selected scorecard", true, 217317, 217346, 0);
5.5115 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (Scorecard_API.Get_Child_Count(scorecard_,environment_) >=1)", true, 217356, 217938, 2);
5.5116 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (comp_level_ = 'TRUE')", true, 217437, 217766, 1);
5.5117 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_scorecard_measures_ IN get_scorecard_measures(scorecard_)", true, 217483, 217766, 0);
5.5118 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 217779, 217921, 0);
5.5119 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 84, PlsqlBlockType.PROCEDURE_IMPL, "Call_Hierarchical_Logic", true, 217992, 218913, 0);
5.5120 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 85, PlsqlBlockType.PROCEDURE_IMPL, "Start_Hierarchical_Logic", true, 218914, 219428, 0);
5.5121 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 86, PlsqlBlockType.PROCEDURE_IMPL, "Background_Hierarchical_Logic", true, 219429, 220430, 2);
5.5122 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(86).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (execution_plan_ != 'NOW')", true, 220245, 220337, 0);
5.5123 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(86).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 220341, 220395, 0);
5.5124 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 87, PlsqlBlockType.PROCEDURE_IMPL, "Set_To_Planned", true, 220431, 221614, 2);
5.5125 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(87).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 220766, 220995, 0);
5.5126 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(87).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- rec2_:=Lock_By_Keys___(environment_,scorecard_,year_,version_,scorecard_object_);", true, 221311, 221505, 0);
5.5127 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 88, PlsqlBlockType.FUNCTION_IMPL, "Get_Sco_Obj_State_Date", true, 221615, 222103, 1);
5.5128 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(88).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 221794, 221985, 0);
5.5129 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 89, PlsqlBlockType.PROCEDURE_IMPL, "Budget_And_Calculate", true, 222104, 233629, 9);
5.5130 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INDEX BY BINARY_INTEGER", true, 223409, 223432, 0);
5.5131 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_comp_details", true, 224030, 224139, 0);
5.5132 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_period_details", true, 224141, 224315, 0);
5.5133 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_code_part", true, 224317, 224438, 0);
5.5134 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 4, PlsqlBlockType.IF, "IF NOT scr_code_part_ IS NULL", true, 225344, 225684, 0);
5.5135 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 225691, 225740, 0);
5.5136 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- since table_name_ is hardcoded we can set asserted", true, 225748, 225842, 0);
5.5137 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 7, PlsqlBlockType.FOR_LOOP, "input_value_tab_stmt_;\n\n OPEN get_period_details;", true, 225875, 226165, 0);
5.5138 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 8, PlsqlBlockType.LOOP, "", true, 226242, 233463, 18);
5.5139 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- check amount type", true, 226564, 226646, 0);
5.5140 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.IF, "IF component_rec_.amount_type = 'AMTBAL'", true, 226656, 226921, 0);
5.5141 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF component_rec_.amount_type = 'CURBAL'", true, 226931, 227244, 0);
5.5142 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF component_rec_.amount_type = 'QTYBAL'", true, 227254, 227528, 0);
5.5143 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF component_rec_.amount_type = 'PROJBAL'", true, 227538, 227807, 0);
5.5144 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF component_rec_.amount_type = 'PRJCURBAL'", true, 227817, 228133, 0);
5.5145 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF component_rec_.amount_type = 'PROJQTY'", true, 228143, 228435, 0);
5.5146 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- Add ledger Id", true, 228746, 228762, 0);
5.5147 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "-- Add account list", true, 228848, 228867, 0);
5.5148 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 9, PlsqlBlockType.IF, "IF NOT account_list_ IS null", true, 228985, 229234, 0);
5.5149 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "-- check amount type", true, 229245, 229265, 0);
5.5150 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 11, PlsqlBlockType.IF, "IF component_rec_.amount_type = 'PROJBAL' OR component_rec_.amount_type = 'PROJQTY' OR component_rec_.amount_type ='PRJCURBAL'", true, 229275, 229498, 0);
5.5151 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 12, PlsqlBlockType.COMMENT, "-- Initialize field values", true, 229745, 229771, 0);
5.5152 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 230238, 230272, 0);
5.5153 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 14, PlsqlBlockType.FOR_LOOP, "source_stmt_ USING company_,budget_version_,year_,component_rec_.ledger_id;\n count_period_ :=1;\n is_visited_:=false;", true, 230306, 231846, 14);
5.5154 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN 1..count_", true, 230598, 230796, 1);
5.5155 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF budget_year_ = per_match_identity_type_(i)", true, 230638, 230774, 0);
5.5156 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 1, PlsqlBlockType.CASE, "CASE count_period_\n WHEN 1", true, 230810, 230898, 0);
5.5157 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 2, PlsqlBlockType.CASE, "WHEN 2", true, 230918, 230968, 0);
5.5158 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 3, PlsqlBlockType.CASE, "WHEN 3", true, 230988, 231038, 0);
5.5159 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 4, PlsqlBlockType.CASE, "WHEN 4", true, 231058, 231108, 0);
5.5160 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 5, PlsqlBlockType.CASE, "WHEN 5", true, 231128, 231178, 0);
5.5161 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 6, PlsqlBlockType.CASE, "WHEN 6", true, 231198, 231248, 0);
5.5162 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 7, PlsqlBlockType.CASE, "WHEN 7", true, 231268, 231318, 0);
5.5163 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 8, PlsqlBlockType.CASE, "WHEN 8", true, 231338, 231388, 0);
5.5164 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 9, PlsqlBlockType.CASE, "WHEN 9", true, 231408, 231458, 0);
5.5165 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 10, PlsqlBlockType.CASE, "WHEN 10", true, 231478, 231528, 0);
5.5166 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 11, PlsqlBlockType.CASE, "WHEN 11", true, 231548, 231598, 0);
5.5167 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 12, PlsqlBlockType.CASE, "WHEN 12", true, 231618, 231668, 0);
5.5168 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 13, PlsqlBlockType.CASE, "ELSE", true, 231688, 231794, 0);
5.5169 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 15, PlsqlBlockType.IF, "IF NOT is_visited_", true, 231892, 232086, 0);
5.5170 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 16, PlsqlBlockType.IF, "IF mea_type_ = 'PERCENTAGE'", true, 233124, 233249, 0);
5.5171 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 17, PlsqlBlockType.IF, "ELSIF mea_type_ = 'VALUE'", true, 233259, 233354, 0);
5.5172 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 90, PlsqlBlockType.PROCEDURE_IMPL, "Get_Error_Msg_For_Comp", true, 233631, 234162, 2);
5.5173 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(90).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (check_value_ = 'TRUE')", true, 233838, 233900, 0);
5.5174 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(90).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 233904, 234134, 1);
5.5175 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(90).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF invalid_comp_ <> 0", true, 233973, 234123, 0);
5.5176 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 91, PlsqlBlockType.PROCEDURE_IMPL, "Return_Periods", true, 234163, 236217, 3);
5.5177 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_period", true, 234598, 234755, 0);
5.5178 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_periodCount", true, 234760, 234901, 0);
5.5179 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "i IN 1..per_no", true, 235350, 236175, 12);
5.5180 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (i = 1)", true, 235420, 235468, 0);
5.5181 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (i = 2)", true, 235478, 235529, 0);
5.5182 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (i = 3)", true, 235539, 235590, 0);
5.5183 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (i = 4)", true, 235600, 235651, 0);
5.5184 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (i = 5)", true, 235661, 235712, 0);
5.5185 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (i = 6)", true, 235722, 235773, 0);
5.5186 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (i = 7)", true, 235783, 235834, 0);
5.5187 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (i = 8)", true, 235844, 235895, 0);
5.5188 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (i = 9)", true, 235905, 235956, 0);
5.5189 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (i = 10)", true, 235966, 236019, 0);
5.5190 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (i = 11)", true, 236029, 236082, 0);
5.5191 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (i = 12)", true, 236092, 236162, 0);
5.5192 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 92, PlsqlBlockType.PROCEDURE_IMPL, "Import_Planned_Values", true, 236218, 238930, 2);
5.5193 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_update_record", true, 236818, 237113, 0);
5.5194 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks(), 1, PlsqlBlockType.LOOP, "", true, 237212, 238902, 2);
5.5195 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "( Client_SYS.Get_Next_From_Attr(key_value_attr_, ptr_, name_, value_) )", true, 237224, 237618, 2);
5.5196 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'KEY')", true, 237317, 237492, 0);
5.5197 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'VALUE')", true, 237502, 237601, 0);
5.5198 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ((get_update_record%FOUND) AND (column_ IS NOT NULL))", true, 237975, 238765, 1);
5.5199 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 238522, 238751, 0);
5.5200 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 93, PlsqlBlockType.PROCEDURE_IMPL, "Calculate_Year_Value", true, 238932, 242594, 16);
5.5201 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "measure_value", true, 239923, 240318, 0);
5.5202 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (formula_p1_ IS NOT NULL)", true, 240756, 240866, 0);
5.5203 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (formula_p2_ IS NOT NULL)", true, 240871, 240981, 0);
5.5204 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (formula_p3_ IS NOT NULL)", true, 240986, 241096, 0);
5.5205 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (formula_p4_ IS NOT NULL)", true, 241101, 241211, 0);
5.5206 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (formula_p5_ IS NOT NULL)", true, 241216, 241326, 0);
5.5207 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (formula_p6_ IS NOT NULL)", true, 241331, 241441, 0);
5.5208 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (formula_p7_ IS NOT NULL)", true, 241446, 241556, 0);
5.5209 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (formula_p8_ IS NOT NULL)", true, 241561, 241671, 0);
5.5210 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (formula_p9_ IS NOT NULL)", true, 241676, 241786, 0);
5.5211 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (formula_p10_ IS NOT NULL)", true, 241791, 241903, 0);
5.5212 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (formula_p11_ IS NOT NULL)", true, 241908, 242020, 0);
5.5213 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 12, PlsqlBlockType.IF, "IF (formula_p12_ IS NOT NULL)", true, 242025, 242137, 0);
5.5214 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 13, PlsqlBlockType.IF, "IF (measure_type_ = 'PERCENTAGE' AND count_ > 0)", true, 242142, 242228, 0);
5.5215 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSIF NOT(measure_type_ = 'VALUE')", true, 242232, 242304, 0);
5.5216 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 15, PlsqlBlockType.IF, "IF (total_ IS NOT NULL)", true, 242309, 242567, 0);
5.5217 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 94, PlsqlBlockType.PROCEDURE_IMPL, "Aggregate_Planned_Values", true, 242595, 244073, 2);
5.5218 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(94).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_update_record", true, 242893, 243172, 0);
5.5219 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(94).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (get_update_record%FOUND)", true, 243323, 244014, 1);
5.5220 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(94).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 243789, 244003, 0);
5.5221 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 95, PlsqlBlockType.PROCEDURE_IMPL, "Load_Planned_Values", true, 244075, 251638, 4);
5.5222 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 66984 Begin", true, 244483, 244500, 0);
5.5223 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 66984 End", true, 244545, 244560, 0);
5.5224 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_keys", true, 245134, 245355, 0);
5.5225 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks(), 3, PlsqlBlockType.IF, "IF ( bp_installed_ )", true, 245435, 251606, 17);
5.5226 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (rec_.p1_key IS NOT NULL)", true, 245634, 245744, 0);
5.5227 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (rec_.p2_key IS NOT NULL)", true, 245752, 245862, 0);
5.5228 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_.p3_key IS NOT NULL)", true, 245870, 245980, 0);
5.5229 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (rec_.p4_key IS NOT NULL)", true, 245988, 246098, 0);
5.5230 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (rec_.p5_key IS NOT NULL)", true, 246106, 246216, 0);
5.5231 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (rec_.p6_key IS NOT NULL)", true, 246224, 246334, 0);
5.5232 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (rec_.p7_key IS NOT NULL)", true, 246342, 246452, 0);
5.5233 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (rec_.p8_key IS NOT NULL)", true, 246460, 246570, 0);
5.5234 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (rec_.p9_key IS NOT NULL)", true, 246578, 246688, 0);
5.5235 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (rec_.p10_key IS NOT NULL)", true, 246696, 246809, 0);
5.5236 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (rec_.p11_key IS NOT NULL)", true, 246817, 246930, 0);
5.5237 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (rec_.p12_key IS NOT NULL)", true, 246938, 247051, 0);
5.5238 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 12, PlsqlBlockType.IF, "IF (attr_ IS NOT NULL)", true, 247059, 247146, 0);
5.5239 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "-- Bug 66984 Begin,Added the line for Budget_Template_API.Is_Period_Matching() method call to stop loading values from templates which don't have matching periods", true, 247153, 247399, 0);
5.5240 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060111", true, 247833, 247865, 0);
5.5241 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 15, PlsqlBlockType.FOR_LOOP, "stmt_bp_call_ USING scorecard_, environment_,'TRUE';", true, 247889, 251573, 4);
5.5242 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 66984 Begin,Added the if condition line and the else part", true, 248013, 248076, 0);
5.5243 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks(), 1, PlsqlBlockType.IF, "IF get_budpro%FOUND", true, 248086, 251453, 3);
5.5244 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ((template_rec_.company IS NULL) AND (attr_ IS NOT NULL))", true, 248124, 250274, 3);
5.5245 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060111", true, 248622, 248654, 0);
5.5246 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (node_rec_.company IS NOT NULL)", true, 248850, 250077, 2);
5.5247 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Load the value from Budget Node", true, 248908, 248941, 0);
5.5248 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060111", true, 249595, 249627, 0);
5.5249 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 250093, 250274, 0);
5.5250 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (attr_ IS NOT NULL)", true, 250287, 251165, 2);
5.5251 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Load the value from Budget Template", true, 250330, 250367, 0);
5.5252 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060111", true, 250806, 250838, 0);
5.5253 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (attr_ IS NOT NULL)", true, 251178, 251453, 0);
5.5254 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 251463, 251532, 0);
5.5255 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Bug 66984 End", true, 251542, 251557, 0);
5.5256 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 16, PlsqlBlockType.COMMENT, "-- Bug 66984 End", true, 251580, 251595, 0);
5.5257 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 96, PlsqlBlockType.FUNCTION_IMPL, "Get_No_Of_Periods", true, 251640, 253416, 13);
5.5258 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_record", true, 251895, 252168, 0);
5.5259 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (rec_.p1_key IS NOT NULL)", true, 252252, 252340, 0);
5.5260 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_.p2_key IS NOT NULL)", true, 252345, 252433, 0);
5.5261 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (rec_.p3_key IS NOT NULL)", true, 252438, 252526, 0);
5.5262 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (rec_.p4_key IS NOT NULL)", true, 252531, 252619, 0);
5.5263 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (rec_.p5_key IS NOT NULL)", true, 252624, 252712, 0);
5.5264 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (rec_.p6_key IS NOT NULL)", true, 252717, 252805, 0);
5.5265 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (rec_.p7_key IS NOT NULL)", true, 252810, 252898, 0);
5.5266 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (rec_.p8_key IS NOT NULL)", true, 252903, 252991, 0);
5.5267 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (rec_.p9_key IS NOT NULL)", true, 252996, 253084, 0);
5.5268 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (rec_.p10_key IS NOT NULL)", true, 253089, 253178, 0);
5.5269 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (rec_.p11_key IS NOT NULL)", true, 253183, 253272, 0);
5.5270 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 12, PlsqlBlockType.IF, "IF (rec_.p12_key IS NOT NULL)", true, 253277, 253366, 0);
5.5271 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 97, PlsqlBlockType.PROCEDURE_IMPL, "Import_Fin_Values", true, 253418, 271245, 10);
5.5272 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 71089, Begin", true, 253670, 253689, 0);
5.5273 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 71089, End", true, 253740, 253757, 0);
5.5274 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 71089, Begin", true, 254548, 254567, 0);
5.5275 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Bug 71089, End", true, 254610, 254627, 0);
5.5276 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Bug 68118, Begin", true, 255079, 255098, 0);
5.5277 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Bug 68118, End", true, 255288, 255305, 0);
5.5278 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 6, PlsqlBlockType.CURSOR, "get_keys", true, 255310, 255629, 0);
5.5279 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 7, PlsqlBlockType.CURSOR, "get_measure_accounts", true, 255633, 255754, 0);
5.5280 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "-- Bug 68118, Begin", true, 255764, 255894, 0);
5.5281 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 9, PlsqlBlockType.IF, "IF ( bp_installed_ )", true, 255976, 271222, 15);
5.5282 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 71089, Begin", true, 256045, 256064, 0);
5.5283 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- ifs_assert_safe makrlk 080205", true, 256459, 256515, 0);
5.5284 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (temp_rec_.p1_key IS NOT NULL)", true, 256605, 256974, 0);
5.5285 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (temp_rec_.p2_key IS NOT NULL)", true, 256982, 257351, 0);
5.5286 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (temp_rec_.p3_key IS NOT NULL)", true, 257359, 257728, 0);
5.5287 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (temp_rec_.p4_key IS NOT NULL)", true, 257736, 258105, 0);
5.5288 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (temp_rec_.p5_key IS NOT NULL)", true, 258113, 258482, 0);
5.5289 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (temp_rec_.p6_key IS NOT NULL)", true, 258490, 258859, 0);
5.5290 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (temp_rec_.p7_key IS NOT NULL)", true, 258867, 259236, 0);
5.5291 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (temp_rec_.p8_key IS NOT NULL)", true, 259244, 259613, 0);
5.5292 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (temp_rec_.p9_key IS NOT NULL)", true, 259621, 259990, 0);
5.5293 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (temp_rec_.p10_key IS NOT NULL)", true, 259998, 260373, 0);
5.5294 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 12, PlsqlBlockType.IF, "IF (temp_rec_.p11_key IS NOT NULL)", true, 260381, 260756, 0);
5.5295 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 13, PlsqlBlockType.IF, "IF (temp_rec_.p12_key IS NOT NULL)", true, 260764, 261139, 0);
5.5296 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 14, PlsqlBlockType.IF, "IF (attr_ IS NOT NULL)", true, 261147, 271210, 2);
5.5297 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060220", true, 261561, 261593, 0);
5.5298 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (template_rec_.company IS NOT NULL)", true, 261802, 271195, 1);
5.5299 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "rec_ IN get_keys", true, 261859, 271101, 6);
5.5300 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN 0..11", true, 261954, 262036, 0);
5.5301 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- the call has been made from busper side which means only selected measures should be updated", true, 262214, 262308, 0);
5.5302 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(scorecard_object_, mea_ptr_, mea_name_, mea_value_))", true, 262324, 265132, 1);
5.5303 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (current_ = mea_value_)", true, 262438, 265106, 2);
5.5304 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- get the list of accounts connected to the current measure...", true, 262491, 262553, 0);
5.5305 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "acc_rec_ IN get_measure_accounts", true, 262575, 265080, 5);
5.5306 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 68118, Begin", true, 262639, 262658, 0);
5.5307 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 71089, Begin. change the OPEN line", true, 263003, 263103, 0);
5.5308 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 71089, End", true, 263405, 263528, 0);
5.5309 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (temp_measure_ = acc_rec_.account)", true, 263554, 264988, 1);
5.5310 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060220", true, 264313, 264345, 0);
5.5311 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Bug 68118, End the IF condition ", true, 265013, 265049, 0);
5.5312 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- the call has been made from budpro side which means all measures should be updated", true, 265149, 265233, 0);
5.5313 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (scorecard_object_ IS NULL)", true, 265249, 267816, 2);
5.5314 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- get the list of accounts connected to the current measure...", true, 265303, 265365, 0);
5.5315 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "acc_rec_ IN get_measure_accounts", true, 265384, 267793, 5);
5.5316 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 68118, Begin", true, 265447, 265466, 0);
5.5317 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 71089, Begin. change the OPEN line", true, 265796, 265893, 0);
5.5318 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 71089, End", true, 266183, 266300, 0);
5.5319 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (temp_measure_ = acc_rec_.account)", true, 266322, 267708, 1);
5.5320 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060220", true, 267057, 267089, 0);
5.5321 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Bug 68118, End the IF condition", true, 267730, 267764, 0);
5.5322 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (cum_val_attr_ IS NOT NULL)", true, 267833, 271078, 2);
5.5323 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(cum_val_attr_, ptr_, name_, value_))", true, 267921, 270243, 12);
5.5324 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (temp_rec_.p1_key = name_)", true, 268022, 268183, 0);
5.5325 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (temp_rec_.p2_key = name_)", true, 268206, 268367, 0);
5.5326 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (temp_rec_.p3_key = name_)", true, 268390, 268551, 0);
5.5327 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (temp_rec_.p4_key = name_)", true, 268574, 268735, 0);
5.5328 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (temp_rec_.p5_key = name_)", true, 268758, 268919, 0);
5.5329 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (temp_rec_.p6_key = name_)", true, 268942, 269103, 0);
5.5330 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (temp_rec_.p7_key = name_)", true, 269126, 269287, 0);
5.5331 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (temp_rec_.p8_key = name_)", true, 269310, 269471, 0);
5.5332 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (temp_rec_.p9_key = name_)", true, 269494, 269655, 0);
5.5333 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (temp_rec_.p10_key = name_)", true, 269678, 269840, 0);
5.5334 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (temp_rec_.p11_key = name_)", true, 269863, 270027, 0);
5.5335 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (temp_rec_.p12_key = name_)", true, 270050, 270214, 0);
5.5336 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN 0..11", true, 270320, 270580, 2);
5.5337 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 68118, Begin remove the the IF condition", true, 270363, 270410, 0);
5.5338 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 68118, End", true, 270534, 270551, 0);
5.5339 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 98, PlsqlBlockType.PROCEDURE_IMPL, "Calc_Measure_From_Budpro", true, 271246, 274564, 5);
5.5340 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_level_type", true, 271886, 272115, 0);
5.5341 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_measures_planform", true, 272120, 272370, 0);
5.5342 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_years", true, 272375, 272503, 0);
5.5343 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_period_count", true, 272508, 272683, 0);
5.5344 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks(), 4, PlsqlBlockType.WHILE_LOOP, "( Client_SYS.Get_Next_From_Attr(comp_attr_, ptr_, name_, value_) )", true, 272904, 274534, 2);
5.5345 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'OBJECT_ID')", true, 272988, 273062, 0);
5.5346 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (level_type_ = 'COMPONENT')", true, 273172, 274521, 2);
5.5347 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_measures_planform_ IN get_measures_planform", true, 273238, 273492, 1);
5.5348 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( INSTR(get_measures_planform_.measure_calc_formula,object_id_) > 0)", true, 273307, 273473, 0);
5.5349 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( measures_tab.COUNT > 0 )", true, 273591, 274507, 1);
5.5350 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "x IN measures_tab.FIRST..measures_tab.LAST", true, 273638, 274490, 1);
5.5351 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_years_ IN get_years", true, 273705, 274468, 1);
5.5352 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( Check_Exist___ (environment_,scorecard_,year_,budget_version_,measures_tab(x)))", true, 273950, 274443, 0);
5.5353 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 99, PlsqlBlockType.FUNCTION_IMPL, "Get", true, 274567, 275123, 1);
5.5354 - assertBlock(lstBlockFac.get(20).getChildBlocks().get(99).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 274765, 275024, 0);
5.5355 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 100, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 275124, 275588, 0);
5.5356 - assertBlock(lstBlockFac.get(20).getChildBlocks(), 101, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 275590, 275632, 0);
5.5357 - assertBlock(lstBlockFac, 21, PlsqlBlockType.COMMENT, "COMMENT...", false, 275876, 275953, 0);
5.5358 - } finally {
5.5359 - if (fileObject != null) {
5.5360 - fileObject.delete();
5.5361 - }
5.5362 - }
5.5363 - }
5.5364 + assertTrue(lstBlockFac.size() == 22);
5.5365 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: ScorecardInputValue", false, 0, 9500, 0);
5.5366 + assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- VIEWS FOR SELECTS ", false, 10185, 10418, 0);
5.5367 + assertBlock(lstBlockFac, 2, PlsqlBlockType.VIEW, "SCORECARD_INPUT_VALUE", false, 10448, 12414, 0);
5.5368 + assertBlock(lstBlockFac, 3, PlsqlBlockType.TABLE_COMMENT, "SCORECARD_INPUT_VALUE", false, 12417, 12499, 0);
5.5369 + assertBlock(lstBlockFac, 4, PlsqlBlockType.COLUMN_COMMENT, "SCORECARD_INPUT_VALUE", false, 12502, 15678, 0);
5.5370 + assertBlock(lstBlockFac, 5, PlsqlBlockType.VIEW, "SCORECARD_INPUT_VALUE2", false, 15711, 19054, 0);
5.5371 + assertBlock(lstBlockFac, 6, PlsqlBlockType.TABLE_COMMENT, "SCORECARD_INPUT_VALUE2", false, 19057, 19140, 0);
5.5372 + assertBlock(lstBlockFac, 7, PlsqlBlockType.COLUMN_COMMENT, "SCORECARD_INPUT_VALUE2", false, 19143, 22130, 0);
5.5373 + assertBlock(lstBlockFac, 8, PlsqlBlockType.VIEW, "SCORECARD_INPUT_VALUE3", false, 22164, 26175, 0);
5.5374 + assertBlock(lstBlockFac, 9, PlsqlBlockType.TABLE_COMMENT, "SCORECARD_INPUT_VALUE3", false, 26178, 26261, 0);
5.5375 + assertBlock(lstBlockFac, 10, PlsqlBlockType.COLUMN_COMMENT, "SCORECARD_INPUT_VALUE3", false, 26264, 29576, 0);
5.5376 + assertBlock(lstBlockFac, 11, PlsqlBlockType.COMMENT, "-- THIS VIEW IS USED AS A BASE FOR THE VIEW5 WHICH IS USED TO DISPLAY BUDGET REQUIREMENTS VS. TARGETS.", false, 29579, 29680, 0);
5.5377 + assertBlock(lstBlockFac, 12, PlsqlBlockType.VIEW, "SCORECARD_INPUT_VALUE_BUDPRO1", false, 29710, 34571, 0);
5.5378 + assertBlock(lstBlockFac, 13, PlsqlBlockType.TABLE_COMMENT, "SCORECARD_INPUT_VALUE_BUDPRO1", false, 34574, 34674, 0);
5.5379 + assertBlock(lstBlockFac, 14, PlsqlBlockType.COMMENT, "-- THIS VIEW IS USED TO DISPLAY BUDGET REQUIREMENTS VS. TARGETS.[Client is BudgetRequirementsTargets.java]", false, 34678, 34783, 0);
5.5380 + assertBlock(lstBlockFac, 15, PlsqlBlockType.COMMENT, "-- Bug 63415, begin, Added another condition to where clause of the view", false, 34812, 34884, 0);
5.5381 + assertBlock(lstBlockFac, 16, PlsqlBlockType.VIEW, "SCORECARD_INPUT_VALUE_BUDPRO2", false, 34885, 37863, 0);
5.5382 + assertBlock(lstBlockFac, 17, PlsqlBlockType.TABLE_COMMENT, "SCORECARD_INPUT_VALUE_BUDPRO2", false, 37866, 37960, 0);
5.5383 + assertBlock(lstBlockFac, 18, PlsqlBlockType.COLUMN_COMMENT, "SCORECARD_INPUT_VALUE_BUDPRO2", false, 37963, 38707, 0);
5.5384 + assertBlock(lstBlockFac, 19, PlsqlBlockType.COMMENT, "-- Bug 63415, end", false, 38710, 38983, 0);
5.5385 + assertBlock(lstBlockFac, 20, PlsqlBlockType.PACKAGE_BODY, "SCORECARD_INPUT_VALUE_API", false, 39022, 275644, 102);
5.5386 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- FINITE STATE DECLARATIONS ", true, 39062, 39295, 0);
5.5387 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 39690, 39923, 0);
5.5388 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 2, PlsqlBlockType.PROCEDURE_DEF, "Distribute_Input_Values___", true, 39926, 40160, 0);
5.5389 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- PROCHEAD.Start_Publish_Environments___", true, 40161, 40201, 0);
5.5390 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 4, PlsqlBlockType.PROCEDURE_DEF, "Object_Planned_Date___", true, 40204, 40298, 0);
5.5391 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 5, PlsqlBlockType.FUNCTION_DEF, "Find_Column___", true, 40300, 40545, 0);
5.5392 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS ", true, 40546, 41421, 0);
5.5393 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 7, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Id___", true, 41423, 42575, 5);
5.5394 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 41717, 41867, 0);
5.5395 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(7).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "exist_control", true, 41871, 41959, 0);
5.5396 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(7).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 42024, 42108, 0);
5.5397 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(7).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 42194, 42275, 0);
5.5398 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(7).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 42279, 42346, 0);
5.5399 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 8, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Keys___", true, 42577, 43386, 3);
5.5400 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 42827, 43080, 0);
5.5401 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 43145, 43218, 0);
5.5402 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 43222, 43288, 0);
5.5403 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 9, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Id___", true, 43388, 43795, 2);
5.5404 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 43498, 43579, 0);
5.5405 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%NOTFOUND)", true, 43635, 43733, 0);
5.5406 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 10, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Keys___", true, 43798, 44370, 1);
5.5407 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 44024, 44254, 0);
5.5408 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 11, PlsqlBlockType.FUNCTION_IMPL, "Check_Exist___", true, 44372, 45031, 2);
5.5409 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 44575, 44813, 0);
5.5410 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(11).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 44882, 44969, 0);
5.5411 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_IMPL, "Get_Id_Version_By_Keys___", true, 45033, 45655, 1);
5.5412 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_version", true, 45278, 45528, 0);
5.5413 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION FINITE STATE MACHINE ", true, 45657, 46731, 0);
5.5414 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_IMPL, "Finite_State_Set___", true, 46732, 47274, 1);
5.5415 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 46869, 47220, 0);
5.5416 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Finite_State_Machine___", true, 47275, 48252, 4);
5.5417 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (state_ IS NULL)", true, 47463, 47670, 2);
5.5418 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (event_ IS NULL)", true, 47494, 47552, 0);
5.5419 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 47559, 47670, 0);
5.5420 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (state_ = 'Open')", true, 47674, 47899, 2);
5.5421 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (event_ = 'Plan')", true, 47709, 47781, 0);
5.5422 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 47788, 47899, 0);
5.5423 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (state_ = 'Planned')", true, 47903, 48130, 2);
5.5424 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (event_ = 'Plan')", true, 47941, 48012, 0);
5.5425 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 48019, 48130, 0);
5.5426 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(15).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 48134, 48223, 0);
5.5427 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Finite_State_Add_To_Attr___", true, 48253, 48657, 0);
5.5428 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 17, PlsqlBlockType.PROCEDURE_IMPL, "Finite_State_Init___", true, 48658, 48900, 0);
5.5429 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 18, PlsqlBlockType.COMMENT, "-- PRIVATE FINITE STATE MACHINE ", true, 48901, 49774, 0);
5.5430 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 19, PlsqlBlockType.FUNCTION_IMPL, "Finite_State_Decode__", true, 49775, 49964, 0);
5.5431 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 20, PlsqlBlockType.FUNCTION_IMPL, "Finite_State_Encode__", true, 49965, 50162, 0);
5.5432 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Enumerate_States__", true, 50163, 50322, 0);
5.5433 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 22, PlsqlBlockType.FUNCTION_IMPL, "Finite_State_Events__", true, 50323, 50639, 4);
5.5434 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(22).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (db_state_ IS NULL)", true, 50411, 50457, 0);
5.5435 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(22).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (db_state_ = 'Open')", true, 50461, 50514, 0);
5.5436 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(22).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (db_state_ = 'Planned')", true, 50518, 50574, 0);
5.5437 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(22).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 50578, 50612, 0);
5.5438 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Enumerate_Events__", true, 50640, 50758, 0);
5.5439 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 24, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR INSERT ", true, 50759, 51504, 0);
5.5440 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 25, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Insert___", true, 51506, 51627, 0);
5.5441 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 26, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Insert___", true, 51630, 57006, 2);
5.5442 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 51857, 55259, 35);
5.5443 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'ENVIRONMENT')", true, 51934, 52068, 0);
5.5444 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'SCORECARD')", true, 52075, 52215, 0);
5.5445 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'YEAR')", true, 52222, 52354, 0);
5.5446 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'VERSION')", true, 52361, 52427, 0);
5.5447 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'SCORECARD_OBJECT')", true, 52434, 52518, 0);
5.5448 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'OBJECT_TYPE')", true, 52525, 52599, 0);
5.5449 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'YEAR_VALUE')", true, 52606, 52711, 0);
5.5450 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'P1_KEY')", true, 52718, 52782, 0);
5.5451 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (name_ = 'P1_VALUE')", true, 52789, 52890, 0);
5.5452 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (name_ = 'P2_KEY')", true, 52897, 52961, 0);
5.5453 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (name_ = 'P2_VALUE')", true, 52968, 53069, 0);
5.5454 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (name_ = 'P3_KEY')", true, 53076, 53140, 0);
5.5455 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (name_ = 'P3_VALUE')", true, 53147, 53248, 0);
5.5456 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (name_ = 'P4_KEY')", true, 53255, 53319, 0);
5.5457 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSIF (name_ = 'P4_VALUE')", true, 53326, 53427, 0);
5.5458 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 15, PlsqlBlockType.IF, "ELSIF (name_ = 'P5_KEY')", true, 53434, 53498, 0);
5.5459 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 16, PlsqlBlockType.IF, "ELSIF (name_ = 'P5_VALUE')", true, 53505, 53606, 0);
5.5460 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 17, PlsqlBlockType.IF, "ELSIF (name_ = 'P6_KEY')", true, 53613, 53677, 0);
5.5461 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 18, PlsqlBlockType.IF, "ELSIF (name_ = 'P6_VALUE')", true, 53684, 53785, 0);
5.5462 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 19, PlsqlBlockType.IF, "ELSIF (name_ = 'P7_KEY')", true, 53792, 53856, 0);
5.5463 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 20, PlsqlBlockType.IF, "ELSIF (name_ = 'P7_VALUE')", true, 53863, 53964, 0);
5.5464 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 21, PlsqlBlockType.IF, "ELSIF (name_ = 'P8_KEY')", true, 53971, 54035, 0);
5.5465 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 22, PlsqlBlockType.IF, "ELSIF (name_ = 'P8_VALUE')", true, 54042, 54143, 0);
5.5466 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 23, PlsqlBlockType.IF, "ELSIF (name_ = 'P9_KEY')", true, 54150, 54214, 0);
5.5467 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 24, PlsqlBlockType.IF, "ELSIF (name_ = 'P9_VALUE')", true, 54221, 54322, 0);
5.5468 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 25, PlsqlBlockType.IF, "ELSIF (name_ = 'P10_KEY')", true, 54329, 54395, 0);
5.5469 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 26, PlsqlBlockType.IF, "ELSIF (name_ = 'P10_VALUE')", true, 54402, 54505, 0);
5.5470 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 27, PlsqlBlockType.IF, "ELSIF (name_ = 'P11_KEY')", true, 54512, 54578, 0);
5.5471 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 28, PlsqlBlockType.IF, "ELSIF (name_ = 'P11_VALUE')", true, 54585, 54688, 0);
5.5472 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 29, PlsqlBlockType.IF, "ELSIF (name_ = 'P12_KEY')", true, 54695, 54761, 0);
5.5473 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 30, PlsqlBlockType.IF, "ELSIF (name_ = 'P12_VALUE')", true, 54768, 54871, 0);
5.5474 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 31, PlsqlBlockType.IF, "ELSIF (name_ = 'ACTION')", true, 54878, 54942, 0);
5.5475 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 32, PlsqlBlockType.IF, "ELSIF (name_ = 'MEA_STATE_CHANGE_DATE')", true, 54949, 55074, 0);
5.5476 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 33, PlsqlBlockType.IF, "ELSIF (name_ = 'BUDGET_VERSION')", true, 55081, 55161, 0);
5.5477 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks().get(0).getChildBlocks(), 34, PlsqlBlockType.IF, "ELSE", true, 55168, 55246, 0);
5.5478 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(26).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( newrec_.scorecard_object IS NOT NULL)", true, 55265, 56356, 0);
5.5479 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 27, PlsqlBlockType.PROCEDURE_IMPL, "Insert___", true, 57009, 59227, 1);
5.5480 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(27).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 57323, 59090, 0);
5.5481 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 28, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR UPDATE ", true, 59229, 59813, 0);
5.5482 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 29, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Update___", true, 59815, 66405, 2);
5.5483 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 60196, 63689, 36);
5.5484 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'ENVIRONMENT')", true, 60273, 60407, 0);
5.5485 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'SCORECARD')", true, 60414, 60554, 0);
5.5486 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'YEAR')", true, 60561, 60693, 0);
5.5487 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'VERSION')", true, 60700, 60783, 0);
5.5488 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'SCORECARD_OBJECT')", true, 60790, 60874, 0);
5.5489 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'OBJECT_TYPE')", true, 60881, 60955, 0);
5.5490 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'YEAR_VALUE')", true, 60962, 61067, 0);
5.5491 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'P1_KEY')", true, 61074, 61138, 0);
5.5492 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (name_ = 'P1_VALUE')", true, 61145, 61246, 0);
5.5493 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (name_ = 'P2_KEY')", true, 61253, 61317, 0);
5.5494 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (name_ = 'P2_VALUE')", true, 61324, 61425, 0);
5.5495 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (name_ = 'P3_KEY')", true, 61432, 61496, 0);
5.5496 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (name_ = 'P3_VALUE')", true, 61503, 61604, 0);
5.5497 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (name_ = 'P4_KEY')", true, 61611, 61675, 0);
5.5498 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSIF (name_ = 'P4_VALUE')", true, 61682, 61783, 0);
5.5499 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 15, PlsqlBlockType.IF, "ELSIF (name_ = 'P5_KEY')", true, 61790, 61854, 0);
5.5500 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 16, PlsqlBlockType.IF, "ELSIF (name_ = 'P5_VALUE')", true, 61861, 61962, 0);
5.5501 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 17, PlsqlBlockType.IF, "ELSIF (name_ = 'P6_KEY')", true, 61969, 62033, 0);
5.5502 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 18, PlsqlBlockType.IF, "ELSIF (name_ = 'P6_VALUE')", true, 62040, 62141, 0);
5.5503 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 19, PlsqlBlockType.IF, "ELSIF (name_ = 'P7_KEY')", true, 62148, 62212, 0);
5.5504 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 20, PlsqlBlockType.IF, "ELSIF (name_ = 'P7_VALUE')", true, 62219, 62320, 0);
5.5505 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 21, PlsqlBlockType.IF, "ELSIF (name_ = 'P8_KEY')", true, 62327, 62391, 0);
5.5506 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 22, PlsqlBlockType.IF, "ELSIF (name_ = 'P8_VALUE')", true, 62398, 62499, 0);
5.5507 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 23, PlsqlBlockType.IF, "ELSIF (name_ = 'P9_KEY')", true, 62506, 62570, 0);
5.5508 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 24, PlsqlBlockType.IF, "ELSIF (name_ = 'P9_VALUE')", true, 62577, 62678, 0);
5.5509 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 25, PlsqlBlockType.IF, "ELSIF (name_ = 'P10_KEY')", true, 62685, 62751, 0);
5.5510 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 26, PlsqlBlockType.IF, "ELSIF (name_ = 'P10_VALUE')", true, 62758, 62861, 0);
5.5511 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 27, PlsqlBlockType.IF, "ELSIF (name_ = 'P11_KEY')", true, 62868, 62934, 0);
5.5512 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 28, PlsqlBlockType.IF, "ELSIF (name_ = 'P11_VALUE')", true, 62941, 63044, 0);
5.5513 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 29, PlsqlBlockType.IF, "ELSIF (name_ = 'P12_KEY')", true, 63051, 63117, 0);
5.5514 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 30, PlsqlBlockType.IF, "ELSIF (name_ = 'P12_VALUE')", true, 63124, 63227, 0);
5.5515 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 31, PlsqlBlockType.IF, "ELSIF (name_ = 'ACTION')", true, 63234, 63298, 0);
5.5516 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 32, PlsqlBlockType.IF, "ELSIF (name_ = 'MEA_STATE_CHANGE_DATE')", true, 63305, 63430, 0);
5.5517 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 33, PlsqlBlockType.IF, "ELSIF (name_ = 'BUDGET_VERSION')", true, 63437, 63517, 0);
5.5518 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 34, PlsqlBlockType.IF, "ELSIF (name_ = 'FROM_BUDPRO')", true, 63524, 63591, 0);
5.5519 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(0).getChildBlocks(), 35, PlsqlBlockType.IF, "ELSE", true, 63598, 63676, 0);
5.5520 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( newrec_.scorecard_object IS NOT NULL AND from_budpro_ = 'FALSE')", true, 63695, 65823, 13);
5.5521 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( newrec_.year_value != NVL(oldrec_.year_value,0))", true, 63885, 64029, 0);
5.5522 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( newrec_.p1_value != NVL(oldrec_.p1_value,0))", true, 64036, 64177, 0);
5.5523 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF ( newrec_.p2_value != NVL(oldrec_.p2_value,0))", true, 64184, 64325, 0);
5.5524 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF ( newrec_.p3_value != NVL(oldrec_.p3_value,0))", true, 64332, 64473, 0);
5.5525 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "IF ( newrec_.p4_value != NVL(oldrec_.p4_value,0))", true, 64480, 64621, 0);
5.5526 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "IF ( newrec_.p5_value != NVL(oldrec_.p5_value,0))", true, 64628, 64769, 0);
5.5527 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 6, PlsqlBlockType.IF, "IF ( newrec_.p6_value != NVL(oldrec_.p6_value,0))", true, 64776, 64917, 0);
5.5528 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 7, PlsqlBlockType.IF, "IF ( newrec_.p7_value != NVL(oldrec_.p7_value,0))", true, 64924, 65065, 0);
5.5529 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 8, PlsqlBlockType.IF, "IF ( newrec_.p8_value != NVL(oldrec_.p8_value,0))", true, 65072, 65213, 0);
5.5530 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 9, PlsqlBlockType.IF, "IF ( newrec_.p9_value != NVL(oldrec_.p9_value,0))", true, 65220, 65361, 0);
5.5531 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 10, PlsqlBlockType.IF, "IF ( newrec_.p10_value != NVL(oldrec_.p10_value,0))", true, 65368, 65511, 0);
5.5532 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 11, PlsqlBlockType.IF, "IF ( newrec_.p11_value != NVL(oldrec_.p11_value,0))", true, 65518, 65661, 0);
5.5533 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(29).getChildBlocks().get(1).getChildBlocks(), 12, PlsqlBlockType.IF, "IF ( newrec_.p12_value != NVL(oldrec_.p12_value,0))", true, 65668, 65811, 0);
5.5534 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 30, PlsqlBlockType.PROCEDURE_IMPL, "Update___", true, 66408, 69988, 2);
5.5535 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(30).getChildBlocks(), 0, PlsqlBlockType.IF, "IF by_keys_", true, 66756, 68416, 1);
5.5536 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(30).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 66779, 68415, 0);
5.5537 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(30).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 68420, 69893, 1);
5.5538 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(30).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 68431, 69881, 0);
5.5539 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 31, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR DELETE ", true, 69990, 70587, 0);
5.5540 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 32, PlsqlBlockType.PROCEDURE_IMPL, "Check_Delete___", true, 70589, 70910, 0);
5.5541 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 33, PlsqlBlockType.PROCEDURE_IMPL, "Delete___", true, 70913, 71317, 1);
5.5542 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(33).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 71229, 71301, 0);
5.5543 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 34, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 71319, 73620, 0);
5.5544 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 35, PlsqlBlockType.PROCEDURE_IMPL, "Lock__", true, 73622, 73917, 0);
5.5545 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 36, PlsqlBlockType.PROCEDURE_IMPL, "New__", true, 73920, 74524, 3);
5.5546 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(36).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'PREPARE')", true, 74193, 74254, 0);
5.5547 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(36).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'CHECK')", true, 74258, 74334, 0);
5.5548 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(36).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 74338, 74476, 0);
5.5549 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 37, PlsqlBlockType.PROCEDURE_IMPL, "Modify__", true, 74527, 75249, 2);
5.5550 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(37).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 74833, 74960, 0);
5.5551 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(37).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 74964, 75198, 0);
5.5552 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 38, PlsqlBlockType.PROCEDURE_IMPL, "Remove__", true, 75252, 75804, 2);
5.5553 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(38).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 75487, 75592, 0);
5.5554 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(38).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 75596, 75753, 0);
5.5555 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 39, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 75806, 76259, 0);
5.5556 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 40, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 76261, 76646, 1);
5.5557 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(40).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(environment_, scorecard_, year_, version_, scorecard_object_))", true, 76490, 76635, 0);
5.5558 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 41, PlsqlBlockType.COMMENT, "-- PUBLIC TRANSLATION METHODS ", true, 76648, 76881, 0);
5.5559 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 42, PlsqlBlockType.PROCEDURE_IMPL, "Language_Refreshed", true, 76882, 77029, 0);
5.5560 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 43, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 77030, 77263, 0);
5.5561 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 44, PlsqlBlockType.PROCEDURE_IMPL, "Distribute_Input_Values___", true, 77266, 93408, 9);
5.5562 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_child_scorecards", true, 77559, 77716, 0);
5.5563 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_open_child_scr", true, 77721, 77889, 0);
5.5564 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_input_values", true, 77894, 78348, 0);
5.5565 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_attribute_value_sum", true, 78353, 78709, 0);
5.5566 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 4, PlsqlBlockType.STATEMENT, "INDEX BY BINARY_INTEGER", true, 80236, 80259, 0);
5.5567 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 5, PlsqlBlockType.IF, "IF value_distribution_type_ IS NULL", true, 80724, 81173, 2);
5.5568 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF object_type_='MEASURE'", true, 80771, 80968, 0);
5.5569 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 80975, 81162, 0);
5.5570 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- END IF;", true, 82098, 82107, 0);
5.5571 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 7, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 82113, 82390, 1);
5.5572 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.IF, "IF parent_val_arr_(temp_period_count_) IS NULL", true, 82168, 82376, 0);
5.5573 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks(), 8, PlsqlBlockType.FOR_LOOP, "child_scorecards_ IN get_child_scorecards", true, 82471, 93376, 3);
5.5574 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (temp_val_ = '1')", true, 82742, 82922, 0);
5.5575 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.IF, "IF NOT Check_Exist___(environment_,child_scorecards_.scorecard,year_,version_,scorecard_object_)", true, 82930, 83184, 0);
5.5576 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 83192, 93363, 2);
5.5577 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF value_distribution_type_ = 'PERCENTAGE'", true, 83901, 88188, 3);
5.5578 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF hierachical_dist_logic_ IS NULL", true, 83961, 84255, 1);
5.5579 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 84015, 84255, 0);
5.5580 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF hierachical_dist_logic_='VERSION'", true, 84269, 85607, 2);
5.5581 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF distribution_version_ IS NULL", true, 84328, 84834, 2);
5.5582 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF object_type_='MEASURE'", true, 84383, 84588, 0);
5.5583 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 84606, 84812, 0);
5.5584 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 85159, 85607, 0);
5.5585 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF hierachical_dist_logic_='ATTRIBUTE'", true, 85620, 88135, 5);
5.5586 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF distribution_attribute_ IS NULL", true, 85681, 86195, 2);
5.5587 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF object_type_='MEASURE'", true, 85738, 85946, 0);
5.5588 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 85964, 86173, 0);
5.5589 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF attribute_val_str_ IS NULL", true, 86415, 86613, 0);
5.5590 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 86628, 87029, 1);
5.5591 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 86650, 87007, 0);
5.5592 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.BEGIN_END, "", true, 87044, 87751, 1);
5.5593 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF attribute_value_sum_=0", true, 87262, 87480, 0);
5.5594 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 87767, 88115, 0);
5.5595 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF value_distribution_type_ = 'VALUE'", true, 88198, 92475, 3);
5.5596 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF hierachical_dist_logic_ IS NULL", true, 88256, 88567, 1);
5.5597 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 88311, 88567, 0);
5.5598 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF hierachical_dist_logic_='VERSION'", true, 88580, 89916, 2);
5.5599 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF distribution_version_ IS NULL", true, 88640, 89154, 2);
5.5600 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF object_type_='MEASURE'", true, 88696, 88903, 0);
5.5601 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 88923, 89131, 0);
5.5602 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 89481, 89916, 0);
5.5603 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF hierachical_dist_logic_='ATTRIBUTE'", true, 89929, 92458, 5);
5.5604 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF distribution_attribute_ IS NULL", true, 89991, 90511, 2);
5.5605 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF object_type_='MEASURE'", true, 90049, 90258, 0);
5.5606 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 90277, 90488, 0);
5.5607 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF attribute_val_str_ IS NULL", true, 90732, 90931, 0);
5.5608 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 90947, 91352, 1);
5.5609 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.BEGIN_END, "", true, 90970, 91329, 0);
5.5610 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.BEGIN_END, "", true, 91368, 92084, 1);
5.5611 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF attribute_value_sum_=0", true, 91590, 91809, 0);
5.5612 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(44).getChildBlocks().get(8).getChildBlocks().get(2).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 92101, 92438, 0);
5.5613 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 45, PlsqlBlockType.PROCEDURE_IMPL, "Object_Planned_Date___", true, 93409, 93630, 0);
5.5614 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 46, PlsqlBlockType.FUNCTION_IMPL, "Find_Column___", true, 93632, 95238, 2);
5.5615 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_record", true, 93883, 94265, 0);
5.5616 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "rec_ IN get_record", true, 94301, 95198, 12);
5.5617 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (rec_.p1_key = key_)", true, 94335, 94395, 0);
5.5618 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (rec_.p2_key = key_)", true, 94402, 94465, 0);
5.5619 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (rec_.p3_key = key_)", true, 94472, 94535, 0);
5.5620 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (rec_.p4_key = key_)", true, 94542, 94605, 0);
5.5621 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (rec_.p5_key = key_)", true, 94612, 94675, 0);
5.5622 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (rec_.p6_key = key_)", true, 94682, 94745, 0);
5.5623 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (rec_.p7_key = key_)", true, 94752, 94815, 0);
5.5624 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (rec_.p8_key = key_)", true, 94822, 94885, 0);
5.5625 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (rec_.p9_key = key_)", true, 94892, 94955, 0);
5.5626 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (rec_.p10_key = key_)", true, 94962, 95027, 0);
5.5627 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (rec_.p11_key = key_)", true, 95034, 95099, 0);
5.5628 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(46).getChildBlocks().get(1).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (rec_.p12_key = key_)", true, 95106, 95185, 0);
5.5629 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 47, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 95239, 95472, 0);
5.5630 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 48, PlsqlBlockType.PROCEDURE_IMPL, "Update_Versions__", true, 95475, 96735, 5);
5.5631 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(48).getChildBlocks(), 0, PlsqlBlockType.IF, "IF version_ = 'TAR'", true, 96010, 96102, 0);
5.5632 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(48).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF version_ = 'ACT'", true, 96105, 96200, 0);
5.5633 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(48).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 96203, 96289, 0);
5.5634 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(48).getChildBlocks(), 3, PlsqlBlockType.IF, "IF data_mart_='TRUE'", true, 96292, 96508, 0);
5.5635 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(48).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 96511, 96712, 0);
5.5636 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 49, PlsqlBlockType.PROCEDURE_IMPL, "Publish__", true, 96737, 98923, 3);
5.5637 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks(), 0, PlsqlBlockType.IF, "IF data_mart_enabled_='TRUE'", true, 97361, 98021, 1);
5.5638 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Bp_Scorecard_Fact_API.Check_Exist_By_Object(environment_,scorecard_,period_,object_type_,measure_)='FALSE'", true, 97401, 98021, 2);
5.5639 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF value_ IS NOT NULL", true, 97525, 97940, 0);
5.5640 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 97950, 98005, 0);
5.5641 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 98027, 98685, 1);
5.5642 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF Scorecard_Value_API.Check_Exist_By_Object(environment_,scorecard_,period_,object_type_,measure_)='FALSE'", true, 98040, 98672, 2);
5.5643 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF value_ IS NOT NULL", true, 98164, 98589, 0);
5.5644 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 98601, 98656, 0);
5.5645 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(49).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (flag_ = 'TRUE' AND value_ IS NOT NULL)", true, 98692, 98888, 0);
5.5646 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 50, PlsqlBlockType.PROCEDURE_IMPL, "Publish_Score__", true, 98924, 103003, 5);
5.5647 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- get measures and components for a specific environment_, scorecard_", true, 99124, 99193, 0);
5.5648 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_measure", true, 99196, 99373, 0);
5.5649 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- get Id, version of a scorecard record by keys", true, 99377, 99425, 0);
5.5650 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_objid", true, 99428, 99568, 0);
5.5651 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks(), 4, PlsqlBlockType.FOR_LOOP, "get_rec_ in get_measure", true, 99808, 102807, 3);
5.5652 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "if publish_type_ = 'ENV'", true, 99986, 100144, 0);
5.5653 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 100150, 100262, 0);
5.5654 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks(), 2, PlsqlBlockType.IF, "if (isScorecardPlan = 'TRUE' or isEnvPlan = 'TRUE' )", true, 100269, 102795, 13);
5.5655 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "if get_rec_.p1_key is not null", true, 100336, 100528, 0);
5.5656 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "if get_rec_.p2_key is not null", true, 100537, 100728, 0);
5.5657 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "if get_rec_.p3_key is not null", true, 100737, 100928, 0);
5.5658 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "if get_rec_.p4_key is not null", true, 100937, 101129, 0);
5.5659 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.IF, "if get_rec_.p5_key is not null", true, 101137, 101329, 0);
5.5660 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 5, PlsqlBlockType.IF, "if get_rec_.p6_key is not null", true, 101338, 101531, 0);
5.5661 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 6, PlsqlBlockType.IF, "if get_rec_.p7_key is not null", true, 101540, 101733, 0);
5.5662 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 7, PlsqlBlockType.IF, "if get_rec_.p8_key is not null", true, 101742, 101934, 0);
5.5663 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 8, PlsqlBlockType.IF, "if get_rec_.p9_key is not null", true, 101943, 102136, 0);
5.5664 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 9, PlsqlBlockType.IF, "if get_rec_.p10_key is not null", true, 102145, 102341, 0);
5.5665 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "-- Call Id ", true, 102350, 102372, 0);
5.5666 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 11, PlsqlBlockType.IF, "if get_rec_.p11_key is not null", true, 102381, 102577, 0);
5.5667 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(50).getChildBlocks().get(4).getChildBlocks().get(2).getChildBlocks(), 12, PlsqlBlockType.IF, "if get_rec_.p12_key is not null", true, 102586, 102782, 0);
5.5668 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 51, PlsqlBlockType.PROCEDURE_IMPL, "Start_Publish_Environments__", true, 103004, 103459, 0);
5.5669 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 52, PlsqlBlockType.PROCEDURE_IMPL, "Set_Publish_Environments__", true, 103460, 103746, 0);
5.5670 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 53, PlsqlBlockType.PROCEDURE_IMPL, "Start_Publish_Scorecards__", true, 103747, 104196, 0);
5.5671 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 54, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Scorecard_Publish__", true, 104197, 104576, 0);
5.5672 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 55, PlsqlBlockType.PROCEDURE_IMPL, "Plan__", true, 104577, 105195, 2);
5.5673 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(55).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 104849, 104888, 0);
5.5674 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(55).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 104892, 105146, 0);
5.5675 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 56, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PROTECTED METHODS ", true, 105196, 105665, 0);
5.5676 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 57, PlsqlBlockType.FUNCTION_IMPL, "Get_Year", true, 105668, 106214, 1);
5.5677 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(57).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 105876, 106110, 0);
5.5678 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 58, PlsqlBlockType.FUNCTION_IMPL, "Get_Distributed_Attr", true, 106215, 107799, 6);
5.5679 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(58).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- distribute_str_ VARCHAR2(20);", true, 106631, 106668, 0);
5.5680 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(58).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "version_cur_", true, 106673, 106882, 0);
5.5681 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(58).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "total_cur_", true, 106890, 107095, 0);
5.5682 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(58).getChildBlocks(), 3, PlsqlBlockType.IF, "IF total_val_ IS NULL", true, 107255, 107378, 0);
5.5683 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(58).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- distribute_string_ := \"\";", true, 107382, 107409, 0);
5.5684 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(58).getChildBlocks(), 5, PlsqlBlockType.FOR_LOOP, "temp_ IN version_cur_", true, 107413, 107744, 0);
5.5685 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 59, PlsqlBlockType.FUNCTION_IMPL, "Get_Action", true, 107800, 108354, 1);
5.5686 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(59).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 108012, 108248, 0);
5.5687 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 60, PlsqlBlockType.FUNCTION_IMPL, "Get_Mea_State_Change_Date", true, 108355, 108965, 1);
5.5688 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(60).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 108593, 108844, 0);
5.5689 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 61, PlsqlBlockType.FUNCTION_IMPL, "Get_Budget_Version", true, 108966, 109552, 1);
5.5690 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(61).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 109194, 109438, 0);
5.5691 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 62, PlsqlBlockType.PROCEDURE_IMPL, "Update_Sales_Values", true, 109553, 127635, 23);
5.5692 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INDEX BY BINARY_INTEGER", true, 110844, 110867, 0);
5.5693 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "total_index_cur_", true, 110953, 111109, 0);
5.5694 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_period", true, 111114, 111273, 0);
5.5695 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Bug 65540, begin", true, 111278, 111297, 0);
5.5696 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Bug 65540, end", true, 111369, 111386, 0);
5.5697 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- val_arr_ Val_Array_Type;", true, 111562, 111589, 0);
5.5698 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (from_where_ = 'FROM_COMPONENT')", true, 111594, 112151, 0);
5.5699 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (from_where_ = 'FROM_MEASURE')", true, 112156, 112708, 0);
5.5700 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (dist_logic_ = 'INDEX')", true, 112713, 114046, 2);
5.5701 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (total_index_ IS NULL)", true, 112863, 113011, 0);
5.5702 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.LOOP, "", true, 113136, 114022, 3);
5.5703 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(8).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (index_value_ IS NULL)", true, 113366, 113556, 0);
5.5704 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(8).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (dist_type_ = 'PERCENTAGE')", true, 113566, 113747, 0);
5.5705 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(8).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (dist_type_ = 'VALUE')", true, 113757, 113885, 0);
5.5706 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (dist_logic_ != 'INDEX')", true, 114050, 118620, 18);
5.5707 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dist_ver_ = 'ACT')", true, 114092, 114162, 0);
5.5708 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'TAR')", true, 114169, 114242, 0);
5.5709 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V1')", true, 114249, 114317, 0);
5.5710 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V2')", true, 114324, 114392, 0);
5.5711 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V3')", true, 114399, 114467, 0);
5.5712 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V4')", true, 114474, 114542, 0);
5.5713 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V5')", true, 114549, 114617, 0);
5.5714 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V6')", true, 114624, 114692, 0);
5.5715 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V7')", true, 114699, 114767, 0);
5.5716 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V8')", true, 114774, 114842, 0);
5.5717 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V9')", true, 114849, 114917, 0);
5.5718 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (dist_ver_ = 'V10')", true, 114924, 115008, 0);
5.5719 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 12, PlsqlBlockType.IF, "IF ( from_where_= 'FROM_COMPONENT')", true, 115016, 115714, 0);
5.5720 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 13, PlsqlBlockType.IF, "IF ( from_where_= 'FROM_MEASURE')", true, 115722, 116412, 0);
5.5721 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 116420, 116454, 0);
5.5722 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 15, PlsqlBlockType.IF, "IF (total_val_ IS NULL)", true, 116610, 116767, 0);
5.5723 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 16, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 116828, 116862, 0);
5.5724 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks(), 17, PlsqlBlockType.FOR_LOOP, "temp1_ USING environment_,scorecard_,component_,year_;", true, 116887, 118583, 2);
5.5725 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (version_val_ IS NULL)", true, 117095, 117278, 0);
5.5726 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 117288, 118457, 2);
5.5727 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dist_logic_ = 'SYB')", true, 117305, 118034, 3);
5.5728 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (index_value_ IS NULL)", true, 117448, 117671, 0);
5.5729 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (dist_type_ = 'PERCENTAGE')", true, 117687, 117873, 0);
5.5730 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (dist_type_ = 'VALUE')", true, 117889, 118034, 0);
5.5731 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (dist_logic_ = 'VERSION')", true, 118047, 118440, 2);
5.5732 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dist_type_ = 'PERCENTAGE')", true, 118099, 118272, 0);
5.5733 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(9).getChildBlocks().get(17).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (dist_type_ = 'VALUE')", true, 118288, 118420, 0);
5.5734 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (dist_logic_ != 'VERSION')", true, 118778, 119134, 2);
5.5735 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dist_type_ = 'PERCENTAGE')", true, 118820, 118921, 0);
5.5736 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (year_value_ != total_dist_val_)", true, 118929, 119123, 1);
5.5737 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(10).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN 1..count_", true, 118979, 119109, 0);
5.5738 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (count_= 1)", true, 119139, 119608, 1);
5.5739 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 119164, 119607, 0);
5.5740 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 12, PlsqlBlockType.IF, "ELSIF (count_= 2)", true, 119612, 120125, 1);
5.5741 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 119640, 120124, 0);
5.5742 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 13, PlsqlBlockType.IF, "ELSIF (count_= 3)", true, 120129, 120686, 1);
5.5743 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 120157, 120685, 0);
5.5744 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSIF (count_= 4)", true, 120690, 121288, 1);
5.5745 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 120718, 121287, 0);
5.5746 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 15, PlsqlBlockType.IF, "ELSIF (count_= 5)", true, 121292, 121929, 1);
5.5747 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 121320, 121928, 0);
5.5748 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 16, PlsqlBlockType.IF, "ELSIF (count_= 6)", true, 121933, 122613, 1);
5.5749 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 121961, 122612, 0);
5.5750 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 17, PlsqlBlockType.IF, "ELSIF (count_= 7)", true, 122617, 123338, 1);
5.5751 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 122645, 123337, 0);
5.5752 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 18, PlsqlBlockType.IF, "ELSIF (count_= 8)", true, 123342, 124104, 1);
5.5753 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 123370, 124103, 0);
5.5754 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 19, PlsqlBlockType.IF, "ELSIF (count_= 9)", true, 124108, 124911, 1);
5.5755 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 124136, 124910, 0);
5.5756 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 20, PlsqlBlockType.IF, "ELSIF (count_= 10)", true, 124915, 125762, 1);
5.5757 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 124944, 125761, 0);
5.5758 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 21, PlsqlBlockType.IF, "ELSIF (count_= 11)", true, 125766, 126657, 1);
5.5759 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 125796, 126656, 0);
5.5760 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks(), 22, PlsqlBlockType.IF, "ELSIF (count_= 12)", true, 126661, 127609, 1);
5.5761 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(62).getChildBlocks().get(22).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 126691, 127594, 0);
5.5762 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 63, PlsqlBlockType.PROCEDURE_IMPL, "Update_Distributed_Values", true, 127636, 151802, 2);
5.5763 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_value_ = 'TRUE')", true, 128411, 151438, 3);
5.5764 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (from_where_ = 'FROM_COMPONENT')", true, 128546, 128772, 0);
5.5765 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (from_where_ = 'FROM_MEASURE')", true, 128780, 128861, 0);
5.5766 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF NOT(ref_type_ = 'REFERENCE')", true, 128869, 151438, 4);
5.5767 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (from_where_ = 'FROM_COMPONENT')", true, 128916, 129190, 0);
5.5768 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (from_where_ = 'FROM_MEASURE')", true, 129201, 129471, 0);
5.5769 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (year_value_ IS NULL)", true, 129543, 129971, 1);
5.5770 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 129585, 129970, 0);
5.5771 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 129981, 151424, 3);
5.5772 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dist_type_ = 'PERCENTAGE' AND dist_logic_ IS NULL)", true, 129998, 140747, 12);
5.5773 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (period_count_ = 1)", true, 130073, 130652, 1);
5.5774 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 130120, 130651, 0);
5.5775 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (period_count_ = 2)", true, 130668, 131302, 1);
5.5776 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 130718, 131301, 0);
5.5777 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (period_count_ = 3)", true, 131318, 132005, 1);
5.5778 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 131368, 132004, 0);
5.5779 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (period_count_ = 4)", true, 132021, 132761, 1);
5.5780 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 132071, 132760, 0);
5.5781 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (period_count_ = 5)", true, 132777, 133570, 1);
5.5782 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 132827, 133569, 0);
5.5783 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (period_count_ = 6)", true, 133586, 134432, 1);
5.5784 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 133636, 134431, 0);
5.5785 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (period_count_ = 7)", true, 134448, 135347, 1);
5.5786 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 134498, 135346, 0);
5.5787 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (period_count_ = 8)", true, 135363, 136315, 1);
5.5788 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 135413, 136314, 0);
5.5789 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (period_count_ = 9)", true, 136331, 137336, 1);
5.5790 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 136381, 137335, 0);
5.5791 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (period_count_ = 10)", true, 137352, 138412, 1);
5.5792 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 137403, 138411, 0);
5.5793 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (period_count_ = 11)", true, 138426, 139540, 1);
5.5794 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 138477, 139539, 0);
5.5795 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (period_count_ = 12)", true, 139556, 140747, 1);
5.5796 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 139607, 140723, 0);
5.5797 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (dist_type_ = 'VALUE' AND dist_logic_ IS NULL)", true, 140762, 151120, 12);
5.5798 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (period_count_ = 1)", true, 140912, 141484, 1);
5.5799 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 140959, 141483, 0);
5.5800 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (period_count_ = 2)", true, 141500, 142122, 1);
5.5801 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 141550, 142121, 0);
5.5802 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (period_count_ = 3)", true, 142138, 142807, 1);
5.5803 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 142188, 142806, 0);
5.5804 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (period_count_ = 4)", true, 142823, 143539, 1);
5.5805 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 142873, 143538, 0);
5.5806 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (period_count_ = 5)", true, 143555, 144318, 1);
5.5807 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 143605, 144317, 0);
5.5808 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (period_count_ = 6)", true, 144334, 145144, 1);
5.5809 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 144384, 145143, 0);
5.5810 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (period_count_ = 7)", true, 145160, 146017, 1);
5.5811 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 145210, 146016, 0);
5.5812 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (period_count_ = 8)", true, 146033, 146937, 1);
5.5813 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 146083, 146936, 0);
5.5814 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (period_count_ = 9)", true, 146953, 147904, 1);
5.5815 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 147003, 147903, 0);
5.5816 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (period_count_ = 10)", true, 147920, 148920, 1);
5.5817 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 147971, 148919, 0);
5.5818 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (period_count_ = 11)", true, 148936, 149984, 1);
5.5819 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 148987, 149983, 0);
5.5820 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (period_count_ = 12)", true, 150000, 151120, 1);
5.5821 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 150051, 151095, 0);
5.5822 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF ((dist_logic_ = 'SYB' OR dist_logic_ = 'VERSION' OR dist_logic_ = 'INDEX') AND (dist_type_ IS NOT NULL))", true, 151133, 151407, 0);
5.5823 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_value_ = 'FALSE')", true, 151442, 151771, 1);
5.5824 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(63).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 151485, 151759, 0);
5.5825 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 64, PlsqlBlockType.PROCEDURE_IMPL, "Publish_Scorecard", true, 151803, 152215, 1);
5.5826 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(64).getChildBlocks(), 0, PlsqlBlockType.IF, "if can_modify_ = 'TRUE'", true, 152091, 152192, 0);
5.5827 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 65, PlsqlBlockType.PROCEDURE_IMPL, "Publish_Environment", true, 152216, 153414, 2);
5.5828 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(65).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_scorecard", true, 152335, 152526, 0);
5.5829 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(65).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "get_rec in get_scorecard", true, 152635, 153389, 2);
5.5830 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(65).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_rec.objstate = 'Open')", true, 152676, 152951, 0);
5.5831 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(65).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 152958, 153376, 1);
5.5832 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(65).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "if can_modify_ = 'TRUE'", true, 153072, 153362, 0);
5.5833 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 66, PlsqlBlockType.PROCEDURE_IMPL, "Calculate_Measures", true, 153417, 170886, 5);
5.5834 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "measure_components_", true, 155976, 156206, 0);
5.5835 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "version_value_", true, 156210, 156570, 0);
5.5836 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "measure_value_", true, 156574, 156933, 0);
5.5837 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks(), 3, PlsqlBlockType.IF, "IF plan_formula_ IS NOT NULL", true, 157772, 170604, 16);
5.5838 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "measure_comp_ IN measure_components_", true, 158468, 161462, 1);
5.5839 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF byteOffSet_ > 0", true, 158635, 161446, 13);
5.5840 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (year_value_ IS NULL)", true, 158912, 159006, 0);
5.5841 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (p1_value_ IS NULL)", true, 159019, 159109, 0);
5.5842 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (p2_value_ IS NULL)", true, 159122, 159212, 0);
5.5843 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (p3_value_ IS NULL)", true, 159225, 159315, 0);
5.5844 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (p4_value_ IS NULL)", true, 159328, 159418, 0);
5.5845 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (p5_value_ IS NULL)", true, 159431, 159521, 0);
5.5846 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (p6_value_ IS NULL)", true, 159534, 159624, 0);
5.5847 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (p7_value_ IS NULL)", true, 159637, 159727, 0);
5.5848 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (p8_value_ IS NULL)", true, 159740, 159830, 0);
5.5849 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (p9_value_ IS NULL)", true, 159843, 159933, 0);
5.5850 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (p10_value_ IS NULL)", true, 159946, 160038, 0);
5.5851 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (p11_value_ IS NULL)", true, 160051, 160143, 0);
5.5852 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 12, PlsqlBlockType.IF, "IF (p12_value_ IS NULL)", true, 160156, 160248, 0);
5.5853 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (period_count_ = 1)", true, 162313, 162874, 1);
5.5854 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 162350, 162382, 0);
5.5855 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (period_count_ = 2)", true, 162881, 163447, 1);
5.5856 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 162918, 162950, 0);
5.5857 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (period_count_ = 3)", true, 163454, 164035, 1);
5.5858 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 163491, 163523, 0);
5.5859 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (period_count_ = 4)", true, 164042, 164628, 1);
5.5860 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 164079, 164111, 0);
5.5861 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (period_count_ = 5)", true, 164635, 165226, 1);
5.5862 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 164672, 164704, 0);
5.5863 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (period_count_ = 6)", true, 165233, 165829, 1);
5.5864 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 165270, 165302, 0);
5.5865 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (period_count_ = 7)", true, 165836, 166447, 1);
5.5866 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 165873, 165905, 0);
5.5867 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (period_count_ = 8)", true, 166454, 167080, 1);
5.5868 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 166491, 166523, 0);
5.5869 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (period_count_ = 9)", true, 167087, 167718, 1);
5.5870 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 167124, 167156, 0);
5.5871 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (period_count_ = 10)", true, 167725, 168363, 1);
5.5872 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 167763, 167795, 0);
5.5873 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (period_count_ = 11)", true, 168370, 169024, 1);
5.5874 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 168408, 168440, 0);
5.5875 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 12, PlsqlBlockType.IF, "IF (period_count_ = 12)", true, 169031, 169690, 1);
5.5876 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe samwlk 070515", true, 169069, 169101, 0);
5.5877 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 13, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 169697, 170446, 0);
5.5878 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- Bug 76573 Begin. Set the measure to planned state", true, 170454, 170506, 0);
5.5879 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks().get(3).getChildBlocks(), 15, PlsqlBlockType.COMMENT, "-- Bug 76573 End", true, 170588, 170604, 0);
5.5880 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(66).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 170615, 170861, 0);
5.5881 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 67, PlsqlBlockType.PROCEDURE_IMPL, "Update_Referred_Component", true, 170887, 173569, 3);
5.5882 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(67).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "value_cur", true, 171156, 171526, 0);
5.5883 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(67).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "component_cur", true, 171530, 171811, 0);
5.5884 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(67).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "component_cur_ IN component_cur", true, 171933, 173538, 1);
5.5885 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(67).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "value_cur_ IN value_cur", true, 172109, 173438, 1);
5.5886 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(67).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE scorecard_input_value_tab", true, 172262, 173420, 0);
5.5887 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 68, PlsqlBlockType.PROCEDURE_IMPL, "Delete_By_Passed_Value", true, 173570, 174182, 3);
5.5888 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(68).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- objversion_ VARCHAR2(2000);", true, 173732, 173761, 0);
5.5889 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(68).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "Get_rows", true, 173765, 173900, 0);
5.5890 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(68).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "get_rec in Get_rows", true, 174003, 174154, 1);
5.5891 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(68).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Delete___(get_rec.objid,get_rec);", true, 174038, 174075, 0);
5.5892 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 69, PlsqlBlockType.PROCEDURE_IMPL, "Delete_Version_Passed", true, 174183, 174687, 2);
5.5893 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(69).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "Get_rows", true, 174304, 174449, 0);
5.5894 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(69).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "get_rec in Get_rows", true, 174552, 174660, 0);
5.5895 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 70, PlsqlBlockType.PROCEDURE_IMPL, "Delete_Scorecard_Passed", true, 174688, 175204, 2);
5.5896 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(70).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "Get_rows", true, 174814, 174963, 0);
5.5897 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(70).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "get_rec in Get_rows", true, 175067, 175175, 0);
5.5898 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 71, PlsqlBlockType.PROCEDURE_IMPL, "Insert_Data", true, 175205, 176460, 0);
5.5899 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 72, PlsqlBlockType.PROCEDURE_IMPL, "Modify_Data", true, 176461, 177849, 0);
5.5900 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 73, PlsqlBlockType.PROCEDURE_IMPL, "Delete_Data", true, 177850, 178313, 0);
5.5901 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 74, PlsqlBlockType.PROCEDURE_IMPL, "Scorecard_Inputs_By_Batch", true, 178314, 179189, 2);
5.5902 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(74).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (execution_ != 'NOW')", true, 179021, 179103, 0);
5.5903 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(74).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 179107, 179158, 0);
5.5904 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 75, PlsqlBlockType.PROCEDURE_IMPL, "Input_Scorecard_Data", true, 179190, 190918, 12);
5.5905 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_year_conn", true, 180690, 180849, 0);
5.5906 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_mea", true, 180854, 181056, 0);
5.5907 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_comp", true, 181061, 181308, 0);
5.5908 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "chk_exist", true, 181313, 181609, 0);
5.5909 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 4, PlsqlBlockType.IF, "IF scorecard_ IS null", true, 182611, 182812, 0);
5.5910 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 182818, 182981, 0);
5.5911 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 6, PlsqlBlockType.IF, "if version_ IS null", true, 182988, 183260, 0);
5.5912 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSE", true, 183266, 183430, 0);
5.5913 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 8, PlsqlBlockType.IF, "if years_ IS null", true, 183437, 183592, 0);
5.5914 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSE", true, 183598, 183755, 0);
5.5915 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 183762, 183796, 0);
5.5916 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks(), 11, PlsqlBlockType.FOR_LOOP, "ssql_;", true, 183813, 190872, 2);
5.5917 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "meaNo IN get_mea(env, tempscr_)", true, 183941, 187181, 2);
5.5918 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 183993, 184027, 0);
5.5919 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "ssql2_;", true, 184050, 187134, 2);
5.5920 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 184173, 184207, 0);
5.5921 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "ssql3_;", true, 184234, 187083, 1);
5.5922 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (tempver_ != 'ASS')", true, 184567, 187057, 4);
5.5923 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_year_conn%FOUND)", true, 184729, 184802, 0);
5.5924 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 184824, 184901, 0);
5.5925 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_not_exist = 1)", true, 184966, 186362, 4);
5.5926 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (chk_exist%FOUND)", true, 185214, 185283, 0);
5.5927 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 185308, 185388, 0);
5.5928 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_exists = 1)", true, 185455, 185761, 0);
5.5929 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 185786, 186111, 0);
5.5930 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 186385, 187030, 3);
5.5931 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (chk_exist%FOUND)", true, 186560, 186633, 0);
5.5932 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 186658, 186741, 0);
5.5933 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_exists_del = 1)", true, 186808, 187001, 0);
5.5934 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "meaNo IN get_mea(env, tempscr_)", true, 187192, 190855, 1);
5.5935 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "compNo IN get_comp(env, tempscr_, meaNo.level_id)", true, 187245, 190836, 2);
5.5936 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 187351, 187385, 0);
5.5937 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "ssql2_;", true, 187412, 190784, 2);
5.5938 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 187590, 187624, 0);
5.5939 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "ssql3_;", true, 187655, 190727, 1);
5.5940 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (tempver_ != 'ASS')", true, 188053, 190699, 4);
5.5941 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (get_year_conn%FOUND)", true, 188224, 188301, 0);
5.5942 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 188326, 188410, 0);
5.5943 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_not_exist2 = 1)", true, 188481, 189951, 4);
5.5944 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (chk_exist%FOUND)", true, 188744, 188817, 0);
5.5945 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 188845, 188932, 0);
5.5946 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_exists2 = 1)", true, 189005, 189319, 0);
5.5947 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 189347, 189687, 0);
5.5948 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 189977, 190669, 3);
5.5949 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (chk_exist%FOUND)", true, 190162, 190239, 0);
5.5950 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 190267, 190358, 0);
5.5951 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(75).getChildBlocks().get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_exists_del2 = 1)", true, 190431, 190637, 0);
5.5952 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 76, PlsqlBlockType.PROCEDURE_IMPL, "Start_Inputing_Scorecards", true, 190920, 191375, 0);
5.5953 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 77, PlsqlBlockType.PROCEDURE_IMPL, "Hierachical_Distribution", true, 191376, 196033, 7);
5.5954 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_scorecard_objects", true, 191618, 191868, 0);
5.5955 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_components", true, 191873, 192136, 0);
5.5956 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_child_scorecards", true, 192141, 192298, 0);
5.5957 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "check_component_selected", true, 192303, 192597, 0);
5.5958 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 4, PlsqlBlockType.STATEMENT, "INDEX BY BINARY_INTEGER", true, 192698, 192721, 0);
5.5959 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 5, PlsqlBlockType.IF, "IF object_type_ = 'COMPONENT'", true, 193192, 195709, 7);
5.5960 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Get measure components in parent", true, 193233, 193268, 0);
5.5961 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "components_ IN get_components(scorecard_)", true, 193313, 193786, 1);
5.5962 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF check_component_selected%FOUND", true, 193570, 193729, 0);
5.5963 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 2, PlsqlBlockType.IF, "IF index_>0", true, 193794, 194916, 1);
5.5964 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "child_scorecards_ IN get_child_scorecards", true, 193862, 194916, 2);
5.5965 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "components_ IN get_components(child_scorecards_.scorecard)", true, 193964, 194650, 2);
5.5966 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "index_ IN 1 .. parent_component_count_", true, 194087, 194327, 1);
5.5967 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF component_arr_(index_)=components_.level_id", true, 194153, 194302, 0);
5.5968 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF NOT component_exist_", true, 194343, 194563, 0);
5.5969 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF child_component_count_!=parent_component_count_", true, 194663, 194897, 0);
5.5970 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 194923, 195050, 0);
5.5971 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 4, PlsqlBlockType.IF, "IF sel_index_>0", true, 195058, 195273, 1);
5.5972 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "index_ IN 1..sel_index_", true, 195088, 195273, 0);
5.5973 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 195280, 195412, 0);
5.5974 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks(), 6, PlsqlBlockType.FOR_LOOP, "child_scorecards_ IN get_child_scorecards", true, 195419, 195709, 1);
5.5975 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(5).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 76573 Removed the call to Set_To_Planned() since it is called inside Calculate_Measures() method", true, 195590, 195693, 0);
5.5976 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSE", true, 195713, 196002, 1);
5.5977 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(77).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "scorecard_objects_ IN get_scorecard_objects", true, 195724, 195991, 0);
5.5978 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 78, PlsqlBlockType.PROCEDURE_IMPL, "Publish_Environment_Batch", true, 196035, 196725, 3);
5.5979 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(78).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Start_Publish_Environments___(attr_);", true, 196416, 196455, 0);
5.5980 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(78).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (schedule_ != 'NOW')", true, 196552, 196632, 0);
5.5981 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(78).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 196636, 196694, 0);
5.5982 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 79, PlsqlBlockType.PROCEDURE_IMPL, "Set_Publish_Scorecards", true, 196726, 197262, 0);
5.5983 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 80, PlsqlBlockType.PROCEDURE_IMPL, "Publish_Scorecard_Batch", true, 197263, 198029, 3);
5.5984 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(80).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Start_Publish_Environments___(attr_);", true, 197725, 197764, 0);
5.5985 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(80).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (schedule_ != 'NOW')", true, 197859, 197939, 0);
5.5986 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(80).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 197943, 197999, 0);
5.5987 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 81, PlsqlBlockType.PROCEDURE_IMPL, "Hierarchical_Consolidation", true, 198030, 203117, 9);
5.5988 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_scorecard_objects", true, 198261, 198511, 0);
5.5989 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_components", true, 198516, 198779, 0);
5.5990 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_child_scorecards", true, 198784, 198941, 0);
5.5991 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "check_child_scorecards", true, 198946, 199097, 0);
5.5992 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 4, PlsqlBlockType.CURSOR, "check_component_selected", true, 199102, 199396, 0);
5.5993 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 5, PlsqlBlockType.STATEMENT, "INDEX BY BINARY_INTEGER", true, 199497, 199520, 0);
5.5994 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (check_child_scorecards%NOTFOUND)", true, 200127, 200337, 0);
5.5995 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 7, PlsqlBlockType.IF, "IF object_type_ = 'COMPONENT'", true, 200376, 202795, 6);
5.5996 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Get measure components in parent", true, 200417, 200452, 0);
5.5997 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "components_ IN get_components(scorecard_)", true, 200497, 200970, 1);
5.5998 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF check_component_selected%FOUND", true, 200754, 200913, 0);
5.5999 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks(), 2, PlsqlBlockType.IF, "IF index_>0", true, 200978, 202100, 1);
5.6000 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "child_scorecards_ IN get_child_scorecards", true, 201046, 202100, 2);
5.6001 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "components_ IN get_components(child_scorecards_.scorecard)", true, 201148, 201834, 2);
5.6002 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "index_ IN 1 .. parent_component_count_", true, 201271, 201511, 1);
5.6003 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF component_arr_(index_)=components_.level_id", true, 201337, 201486, 0);
5.6004 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF NOT component_exist_", true, 201527, 201747, 0);
5.6005 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF child_component_count_!=parent_component_count_", true, 201847, 202081, 0);
5.6006 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 202107, 202234, 0);
5.6007 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks(), 4, PlsqlBlockType.IF, "IF sel_index_>0", true, 202242, 202656, 2);
5.6008 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "index_ IN 1..sel_index_", true, 202272, 202449, 0);
5.6009 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 76573 Removed the call to Set_To_Planned() since it is called inside Calculate_Measures() method", true, 202553, 202656, 0);
5.6010 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(7).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 202663, 202795, 0);
5.6011 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSE", true, 202801, 203084, 1);
5.6012 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(81).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "scorecard_objects_ IN get_scorecard_objects", true, 202813, 203072, 0);
5.6013 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 82, PlsqlBlockType.PROCEDURE_IMPL, "Consolidate_Values", true, 203118, 212627, 11);
5.6014 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INDEX BY BINARY_INTEGER", true, 203834, 203857, 0);
5.6015 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_child_scorecards", true, 204206, 204375, 0);
5.6016 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_open_child_scr", true, 204380, 204562, 0);
5.6017 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_total_period_val_", true, 204568, 206389, 0);
5.6018 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 4, PlsqlBlockType.CURSOR, "get_period_val_", true, 206395, 208204, 0);
5.6019 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- value_distribution_type_ := scorecard_Structure_api.Get_Value_Dist_Type_Db(scorecard_,scorecard_object_,environment_,object_type_);", true, 208305, 208438, 0);
5.6020 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 6, PlsqlBlockType.IF, "IF value_distribution_type_ IS NULL", true, 208558, 209007, 2);
5.6021 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF object_type_='MEASURE'", true, 208605, 208802, 0);
5.6022 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(6).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 208809, 208996, 0);
5.6023 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 7, PlsqlBlockType.FOR_LOOP, "child_scorecards_ IN get_child_scorecards", true, 209013, 209733, 2);
5.6024 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (temp_val_ = '1')", true, 209262, 209443, 0);
5.6025 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(7).getChildBlocks(), 1, PlsqlBlockType.IF, "IF NOT Check_Exist___(environment_,child_scorecards_.scorecard,year_,version_,scorecard_object_)", true, 209451, 209719, 0);
5.6026 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 8, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 209738, 210210, 1);
5.6027 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.LOOP, "", true, 209841, 210168, 1);
5.6028 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(8).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (temp_period_value_ IS NULL)", true, 209963, 210152, 0);
5.6029 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (value_distribution_type_ = 'PERCENTAGE')", true, 210859, 211452, 1);
5.6030 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 210993, 211405, 0);
5.6031 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (value_distribution_type_ = 'VALUE')", true, 211457, 211836, 1);
5.6032 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(82).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "temp_period_count_ IN 1..period_count_", true, 211512, 211824, 0);
5.6033 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 83, PlsqlBlockType.PROCEDURE_IMPL, "All_Hierarchical_Logic", true, 212628, 217991, 8);
5.6034 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_scorecard_objects", true, 213291, 213535, 0);
5.6035 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_period_count", true, 213540, 213679, 0);
5.6036 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_scorecard_measures", true, 213684, 213906, 0);
5.6037 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_childs", true, 213911, 214086, 0);
5.6038 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 4, PlsqlBlockType.CURSOR, "get_childs_for_cons", true, 214091, 214406, 0);
5.6039 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (get_childs%NOTFOUND)", true, 214575, 214660, 0);
5.6040 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSE", true, 214664, 214703, 0);
5.6041 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (child_exists_ = 'TRUE')", true, 214708, 217963, 3);
5.6042 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_scorecard_objects_ IN get_scorecard_objects(scorecard_)", true, 214748, 215118, 0);
5.6043 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (action_ = 'DISTRIBUTION')", true, 215344, 216008, 3);
5.6044 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (comp_level_ = 'TRUE')", true, 215388, 215705, 1);
5.6045 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_scorecard_measures_ IN get_scorecard_measures(scorecard_)", true, 215431, 215705, 0);
5.6046 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 215715, 215849, 0);
5.6047 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "get_childs_ IN get_childs", true, 215859, 216008, 0);
5.6048 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'CONSOLIDATION')", true, 216016, 217952, 3);
5.6049 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_childs_for_cons_ IN get_childs_for_cons", true, 216064, 217307, 2);
5.6050 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_scorecard_objects_ IN get_scorecard_objects(get_childs_for_cons_.scorecard)", true, 216130, 216586, 0);
5.6051 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (Scorecard_API.Get_Child_Count(get_childs_for_cons_.scorecard,environment_) >=1)", true, 216599, 217288, 2);
5.6052 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (comp_level_ = 'TRUE')", true, 216703, 217084, 1);
5.6053 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_scorecard_measures_ IN get_scorecard_measures(get_childs_for_cons_.scorecard)", true, 216752, 217084, 0);
5.6054 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 217100, 217268, 0);
5.6055 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- for the selected scorecard", true, 217317, 217346, 0);
5.6056 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (Scorecard_API.Get_Child_Count(scorecard_,environment_) >=1)", true, 217356, 217938, 2);
5.6057 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (comp_level_ = 'TRUE')", true, 217437, 217766, 1);
5.6058 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_scorecard_measures_ IN get_scorecard_measures(scorecard_)", true, 217483, 217766, 0);
5.6059 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(83).getChildBlocks().get(7).getChildBlocks().get(2).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 217779, 217921, 0);
5.6060 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 84, PlsqlBlockType.PROCEDURE_IMPL, "Call_Hierarchical_Logic", true, 217992, 218913, 0);
5.6061 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 85, PlsqlBlockType.PROCEDURE_IMPL, "Start_Hierarchical_Logic", true, 218914, 219428, 0);
5.6062 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 86, PlsqlBlockType.PROCEDURE_IMPL, "Background_Hierarchical_Logic", true, 219429, 220430, 2);
5.6063 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(86).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (execution_plan_ != 'NOW')", true, 220245, 220337, 0);
5.6064 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(86).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 220341, 220395, 0);
5.6065 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 87, PlsqlBlockType.PROCEDURE_IMPL, "Set_To_Planned", true, 220431, 221614, 2);
5.6066 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(87).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 220766, 220995, 0);
5.6067 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(87).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- rec2_:=Lock_By_Keys___(environment_,scorecard_,year_,version_,scorecard_object_);", true, 221311, 221505, 0);
5.6068 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 88, PlsqlBlockType.FUNCTION_IMPL, "Get_Sco_Obj_State_Date", true, 221615, 222103, 1);
5.6069 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(88).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 221794, 221985, 0);
5.6070 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 89, PlsqlBlockType.PROCEDURE_IMPL, "Budget_And_Calculate", true, 222104, 233629, 9);
5.6071 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INDEX BY BINARY_INTEGER", true, 223409, 223432, 0);
5.6072 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_comp_details", true, 224030, 224139, 0);
5.6073 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_period_details", true, 224141, 224315, 0);
5.6074 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_code_part", true, 224317, 224438, 0);
5.6075 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 4, PlsqlBlockType.IF, "IF NOT scr_code_part_ IS NULL", true, 225344, 225684, 0);
5.6076 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 225691, 225740, 0);
5.6077 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 6, PlsqlBlockType.COMMENT, "-- since table_name_ is hardcoded we can set asserted", true, 225748, 225842, 0);
5.6078 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 7, PlsqlBlockType.FOR_LOOP, "input_value_tab_stmt_;\n\n OPEN get_period_details;", true, 225875, 226165, 0);
5.6079 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks(), 8, PlsqlBlockType.LOOP, "", true, 226242, 233463, 18);
5.6080 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- check amount type", true, 226564, 226646, 0);
5.6081 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 1, PlsqlBlockType.IF, "IF component_rec_.amount_type = 'AMTBAL'", true, 226656, 226921, 0);
5.6082 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF component_rec_.amount_type = 'CURBAL'", true, 226931, 227244, 0);
5.6083 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF component_rec_.amount_type = 'QTYBAL'", true, 227254, 227528, 0);
5.6084 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF component_rec_.amount_type = 'PROJBAL'", true, 227538, 227807, 0);
5.6085 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF component_rec_.amount_type = 'PRJCURBAL'", true, 227817, 228133, 0);
5.6086 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF component_rec_.amount_type = 'PROJQTY'", true, 228143, 228435, 0);
5.6087 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- Add ledger Id", true, 228746, 228762, 0);
5.6088 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "-- Add account list", true, 228848, 228867, 0);
5.6089 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 9, PlsqlBlockType.IF, "IF NOT account_list_ IS null", true, 228985, 229234, 0);
5.6090 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "-- check amount type", true, 229245, 229265, 0);
5.6091 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 11, PlsqlBlockType.IF, "IF component_rec_.amount_type = 'PROJBAL' OR component_rec_.amount_type = 'PROJQTY' OR component_rec_.amount_type ='PRJCURBAL'", true, 229275, 229498, 0);
5.6092 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 12, PlsqlBlockType.COMMENT, "-- Initialize field values", true, 229745, 229771, 0);
5.6093 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "-- ifs_assert_safe shsalk 20060117", true, 230238, 230272, 0);
5.6094 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 14, PlsqlBlockType.FOR_LOOP, "source_stmt_ USING company_,budget_version_,year_,component_rec_.ledger_id;\n count_period_ :=1;\n is_visited_:=false;", true, 230306, 231846, 14);
5.6095 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN 1..count_", true, 230598, 230796, 1);
5.6096 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF budget_year_ = per_match_identity_type_(i)", true, 230638, 230774, 0);
5.6097 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 1, PlsqlBlockType.CASE, "CASE count_period_\n WHEN 1", true, 230810, 230898, 0);
5.6098 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 2, PlsqlBlockType.CASE, "WHEN 2", true, 230918, 230968, 0);
5.6099 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 3, PlsqlBlockType.CASE, "WHEN 3", true, 230988, 231038, 0);
5.6100 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 4, PlsqlBlockType.CASE, "WHEN 4", true, 231058, 231108, 0);
5.6101 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 5, PlsqlBlockType.CASE, "WHEN 5", true, 231128, 231178, 0);
5.6102 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 6, PlsqlBlockType.CASE, "WHEN 6", true, 231198, 231248, 0);
5.6103 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 7, PlsqlBlockType.CASE, "WHEN 7", true, 231268, 231318, 0);
5.6104 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 8, PlsqlBlockType.CASE, "WHEN 8", true, 231338, 231388, 0);
5.6105 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 9, PlsqlBlockType.CASE, "WHEN 9", true, 231408, 231458, 0);
5.6106 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 10, PlsqlBlockType.CASE, "WHEN 10", true, 231478, 231528, 0);
5.6107 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 11, PlsqlBlockType.CASE, "WHEN 11", true, 231548, 231598, 0);
5.6108 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 12, PlsqlBlockType.CASE, "WHEN 12", true, 231618, 231668, 0);
5.6109 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks().get(14).getChildBlocks(), 13, PlsqlBlockType.CASE, "ELSE", true, 231688, 231794, 0);
5.6110 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 15, PlsqlBlockType.IF, "IF NOT is_visited_", true, 231892, 232086, 0);
5.6111 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 16, PlsqlBlockType.IF, "IF mea_type_ = 'PERCENTAGE'", true, 233124, 233249, 0);
5.6112 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(89).getChildBlocks().get(8).getChildBlocks(), 17, PlsqlBlockType.IF, "ELSIF mea_type_ = 'VALUE'", true, 233259, 233354, 0);
5.6113 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 90, PlsqlBlockType.PROCEDURE_IMPL, "Get_Error_Msg_For_Comp", true, 233631, 234162, 2);
5.6114 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(90).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (check_value_ = 'TRUE')", true, 233838, 233900, 0);
5.6115 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(90).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 233904, 234134, 1);
5.6116 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(90).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF invalid_comp_ <> 0", true, 233973, 234123, 0);
5.6117 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 91, PlsqlBlockType.PROCEDURE_IMPL, "Return_Periods", true, 234163, 236217, 3);
5.6118 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_period", true, 234598, 234755, 0);
5.6119 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_periodCount", true, 234760, 234901, 0);
5.6120 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "i IN 1..per_no", true, 235350, 236175, 12);
5.6121 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (i = 1)", true, 235420, 235468, 0);
5.6122 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (i = 2)", true, 235478, 235529, 0);
5.6123 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (i = 3)", true, 235539, 235590, 0);
5.6124 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (i = 4)", true, 235600, 235651, 0);
5.6125 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (i = 5)", true, 235661, 235712, 0);
5.6126 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (i = 6)", true, 235722, 235773, 0);
5.6127 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (i = 7)", true, 235783, 235834, 0);
5.6128 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (i = 8)", true, 235844, 235895, 0);
5.6129 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSIF (i = 9)", true, 235905, 235956, 0);
5.6130 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 9, PlsqlBlockType.IF, "ELSIF (i = 10)", true, 235966, 236019, 0);
5.6131 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 10, PlsqlBlockType.IF, "ELSIF (i = 11)", true, 236029, 236082, 0);
5.6132 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(91).getChildBlocks().get(2).getChildBlocks(), 11, PlsqlBlockType.IF, "ELSIF (i = 12)", true, 236092, 236162, 0);
5.6133 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 92, PlsqlBlockType.PROCEDURE_IMPL, "Import_Planned_Values", true, 236218, 238930, 2);
5.6134 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_update_record", true, 236818, 237113, 0);
5.6135 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks(), 1, PlsqlBlockType.LOOP, "", true, 237212, 238902, 2);
5.6136 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "( Client_SYS.Get_Next_From_Attr(key_value_attr_, ptr_, name_, value_) )", true, 237224, 237618, 2);
5.6137 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'KEY')", true, 237317, 237492, 0);
5.6138 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'VALUE')", true, 237502, 237601, 0);
5.6139 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ((get_update_record%FOUND) AND (column_ IS NOT NULL))", true, 237975, 238765, 1);
5.6140 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(92).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 238522, 238751, 0);
5.6141 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 93, PlsqlBlockType.PROCEDURE_IMPL, "Calculate_Year_Value", true, 238932, 242594, 16);
5.6142 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "measure_value", true, 239923, 240318, 0);
5.6143 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (formula_p1_ IS NOT NULL)", true, 240756, 240866, 0);
5.6144 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (formula_p2_ IS NOT NULL)", true, 240871, 240981, 0);
5.6145 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (formula_p3_ IS NOT NULL)", true, 240986, 241096, 0);
5.6146 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (formula_p4_ IS NOT NULL)", true, 241101, 241211, 0);
5.6147 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (formula_p5_ IS NOT NULL)", true, 241216, 241326, 0);
5.6148 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (formula_p6_ IS NOT NULL)", true, 241331, 241441, 0);
5.6149 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (formula_p7_ IS NOT NULL)", true, 241446, 241556, 0);
5.6150 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (formula_p8_ IS NOT NULL)", true, 241561, 241671, 0);
5.6151 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (formula_p9_ IS NOT NULL)", true, 241676, 241786, 0);
5.6152 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (formula_p10_ IS NOT NULL)", true, 241791, 241903, 0);
5.6153 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (formula_p11_ IS NOT NULL)", true, 241908, 242020, 0);
5.6154 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 12, PlsqlBlockType.IF, "IF (formula_p12_ IS NOT NULL)", true, 242025, 242137, 0);
5.6155 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 13, PlsqlBlockType.IF, "IF (measure_type_ = 'PERCENTAGE' AND count_ > 0)", true, 242142, 242228, 0);
5.6156 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 14, PlsqlBlockType.IF, "ELSIF NOT(measure_type_ = 'VALUE')", true, 242232, 242304, 0);
5.6157 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(93).getChildBlocks(), 15, PlsqlBlockType.IF, "IF (total_ IS NOT NULL)", true, 242309, 242567, 0);
5.6158 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 94, PlsqlBlockType.PROCEDURE_IMPL, "Aggregate_Planned_Values", true, 242595, 244073, 2);
5.6159 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(94).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_update_record", true, 242893, 243172, 0);
5.6160 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(94).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (get_update_record%FOUND)", true, 243323, 244014, 1);
5.6161 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(94).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "BLOCK COMMENT", true, 243789, 244003, 0);
5.6162 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 95, PlsqlBlockType.PROCEDURE_IMPL, "Load_Planned_Values", true, 244075, 251638, 4);
5.6163 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 66984 Begin", true, 244483, 244500, 0);
5.6164 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 66984 End", true, 244545, 244560, 0);
5.6165 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_keys", true, 245134, 245355, 0);
5.6166 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks(), 3, PlsqlBlockType.IF, "IF ( bp_installed_ )", true, 245435, 251606, 17);
5.6167 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (rec_.p1_key IS NOT NULL)", true, 245634, 245744, 0);
5.6168 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (rec_.p2_key IS NOT NULL)", true, 245752, 245862, 0);
5.6169 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_.p3_key IS NOT NULL)", true, 245870, 245980, 0);
5.6170 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (rec_.p4_key IS NOT NULL)", true, 245988, 246098, 0);
5.6171 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (rec_.p5_key IS NOT NULL)", true, 246106, 246216, 0);
5.6172 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (rec_.p6_key IS NOT NULL)", true, 246224, 246334, 0);
5.6173 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (rec_.p7_key IS NOT NULL)", true, 246342, 246452, 0);
5.6174 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (rec_.p8_key IS NOT NULL)", true, 246460, 246570, 0);
5.6175 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (rec_.p9_key IS NOT NULL)", true, 246578, 246688, 0);
5.6176 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (rec_.p10_key IS NOT NULL)", true, 246696, 246809, 0);
5.6177 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (rec_.p11_key IS NOT NULL)", true, 246817, 246930, 0);
5.6178 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (rec_.p12_key IS NOT NULL)", true, 246938, 247051, 0);
5.6179 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 12, PlsqlBlockType.IF, "IF (attr_ IS NOT NULL)", true, 247059, 247146, 0);
5.6180 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 13, PlsqlBlockType.COMMENT, "-- Bug 66984 Begin,Added the line for Budget_Template_API.Is_Period_Matching() method call to stop loading values from templates which don't have matching periods", true, 247153, 247399, 0);
5.6181 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060111", true, 247833, 247865, 0);
5.6182 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 15, PlsqlBlockType.FOR_LOOP, "stmt_bp_call_ USING scorecard_, environment_,'TRUE';", true, 247889, 251573, 4);
5.6183 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 66984 Begin,Added the if condition line and the else part", true, 248013, 248076, 0);
5.6184 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks(), 1, PlsqlBlockType.IF, "IF get_budpro%FOUND", true, 248086, 251453, 3);
5.6185 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ((template_rec_.company IS NULL) AND (attr_ IS NOT NULL))", true, 248124, 250274, 3);
5.6186 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060111", true, 248622, 248654, 0);
5.6187 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (node_rec_.company IS NOT NULL)", true, 248850, 250077, 2);
5.6188 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Load the value from Budget Node", true, 248908, 248941, 0);
5.6189 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060111", true, 249595, 249627, 0);
5.6190 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 250093, 250274, 0);
5.6191 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (attr_ IS NOT NULL)", true, 250287, 251165, 2);
5.6192 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Load the value from Budget Template", true, 250330, 250367, 0);
5.6193 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060111", true, 250806, 250838, 0);
5.6194 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (attr_ IS NOT NULL)", true, 251178, 251453, 0);
5.6195 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 251463, 251532, 0);
5.6196 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks().get(15).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Bug 66984 End", true, 251542, 251557, 0);
5.6197 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(95).getChildBlocks().get(3).getChildBlocks(), 16, PlsqlBlockType.COMMENT, "-- Bug 66984 End", true, 251580, 251595, 0);
5.6198 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 96, PlsqlBlockType.FUNCTION_IMPL, "Get_No_Of_Periods", true, 251640, 253416, 13);
5.6199 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_record", true, 251895, 252168, 0);
5.6200 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (rec_.p1_key IS NOT NULL)", true, 252252, 252340, 0);
5.6201 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (rec_.p2_key IS NOT NULL)", true, 252345, 252433, 0);
5.6202 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (rec_.p3_key IS NOT NULL)", true, 252438, 252526, 0);
5.6203 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (rec_.p4_key IS NOT NULL)", true, 252531, 252619, 0);
5.6204 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (rec_.p5_key IS NOT NULL)", true, 252624, 252712, 0);
5.6205 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (rec_.p6_key IS NOT NULL)", true, 252717, 252805, 0);
5.6206 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (rec_.p7_key IS NOT NULL)", true, 252810, 252898, 0);
5.6207 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (rec_.p8_key IS NOT NULL)", true, 252903, 252991, 0);
5.6208 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (rec_.p9_key IS NOT NULL)", true, 252996, 253084, 0);
5.6209 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (rec_.p10_key IS NOT NULL)", true, 253089, 253178, 0);
5.6210 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (rec_.p11_key IS NOT NULL)", true, 253183, 253272, 0);
5.6211 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(96).getChildBlocks(), 12, PlsqlBlockType.IF, "IF (rec_.p12_key IS NOT NULL)", true, 253277, 253366, 0);
5.6212 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 97, PlsqlBlockType.PROCEDURE_IMPL, "Import_Fin_Values", true, 253418, 271245, 10);
5.6213 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 71089, Begin", true, 253670, 253689, 0);
5.6214 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 71089, End", true, 253740, 253757, 0);
5.6215 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 71089, Begin", true, 254548, 254567, 0);
5.6216 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Bug 71089, End", true, 254610, 254627, 0);
5.6217 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Bug 68118, Begin", true, 255079, 255098, 0);
5.6218 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Bug 68118, End", true, 255288, 255305, 0);
5.6219 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 6, PlsqlBlockType.CURSOR, "get_keys", true, 255310, 255629, 0);
5.6220 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 7, PlsqlBlockType.CURSOR, "get_measure_accounts", true, 255633, 255754, 0);
5.6221 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 8, PlsqlBlockType.COMMENT, "-- Bug 68118, Begin", true, 255764, 255894, 0);
5.6222 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks(), 9, PlsqlBlockType.IF, "IF ( bp_installed_ )", true, 255976, 271222, 15);
5.6223 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 71089, Begin", true, 256045, 256064, 0);
5.6224 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- ifs_assert_safe makrlk 080205", true, 256459, 256515, 0);
5.6225 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (temp_rec_.p1_key IS NOT NULL)", true, 256605, 256974, 0);
5.6226 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (temp_rec_.p2_key IS NOT NULL)", true, 256982, 257351, 0);
5.6227 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (temp_rec_.p3_key IS NOT NULL)", true, 257359, 257728, 0);
5.6228 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (temp_rec_.p4_key IS NOT NULL)", true, 257736, 258105, 0);
5.6229 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (temp_rec_.p5_key IS NOT NULL)", true, 258113, 258482, 0);
5.6230 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (temp_rec_.p6_key IS NOT NULL)", true, 258490, 258859, 0);
5.6231 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (temp_rec_.p7_key IS NOT NULL)", true, 258867, 259236, 0);
5.6232 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (temp_rec_.p8_key IS NOT NULL)", true, 259244, 259613, 0);
5.6233 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (temp_rec_.p9_key IS NOT NULL)", true, 259621, 259990, 0);
5.6234 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (temp_rec_.p10_key IS NOT NULL)", true, 259998, 260373, 0);
5.6235 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 12, PlsqlBlockType.IF, "IF (temp_rec_.p11_key IS NOT NULL)", true, 260381, 260756, 0);
5.6236 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 13, PlsqlBlockType.IF, "IF (temp_rec_.p12_key IS NOT NULL)", true, 260764, 261139, 0);
5.6237 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks(), 14, PlsqlBlockType.IF, "IF (attr_ IS NOT NULL)", true, 261147, 271210, 2);
5.6238 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060220", true, 261561, 261593, 0);
5.6239 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (template_rec_.company IS NOT NULL)", true, 261802, 271195, 1);
5.6240 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "rec_ IN get_keys", true, 261859, 271101, 6);
5.6241 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "i IN 0..11", true, 261954, 262036, 0);
5.6242 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- the call has been made from busper side which means only selected measures should be updated", true, 262214, 262308, 0);
5.6243 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(scorecard_object_, mea_ptr_, mea_name_, mea_value_))", true, 262324, 265132, 1);
5.6244 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (current_ = mea_value_)", true, 262438, 265106, 2);
5.6245 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- get the list of accounts connected to the current measure...", true, 262491, 262553, 0);
5.6246 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "acc_rec_ IN get_measure_accounts", true, 262575, 265080, 5);
5.6247 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 68118, Begin", true, 262639, 262658, 0);
5.6248 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 71089, Begin. change the OPEN line", true, 263003, 263103, 0);
5.6249 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 71089, End", true, 263405, 263528, 0);
5.6250 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (temp_measure_ = acc_rec_.account)", true, 263554, 264988, 1);
5.6251 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060220", true, 264313, 264345, 0);
5.6252 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(2).getChildBlocks().get(0).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Bug 68118, End the IF condition ", true, 265013, 265049, 0);
5.6253 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- the call has been made from budpro side which means all measures should be updated", true, 265149, 265233, 0);
5.6254 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (scorecard_object_ IS NULL)", true, 265249, 267816, 2);
5.6255 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- get the list of accounts connected to the current measure...", true, 265303, 265365, 0);
5.6256 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "acc_rec_ IN get_measure_accounts", true, 265384, 267793, 5);
5.6257 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 68118, Begin", true, 265447, 265466, 0);
5.6258 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 71089, Begin. change the OPEN line", true, 265796, 265893, 0);
5.6259 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 71089, End", true, 266183, 266300, 0);
5.6260 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (temp_measure_ = acc_rec_.account)", true, 266322, 267708, 1);
5.6261 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- ifs_assert_safe iswalk 060220", true, 267057, 267089, 0);
5.6262 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Bug 68118, End the IF condition", true, 267730, 267764, 0);
5.6263 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (cum_val_attr_ IS NOT NULL)", true, 267833, 271078, 2);
5.6264 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(cum_val_attr_, ptr_, name_, value_))", true, 267921, 270243, 12);
5.6265 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (temp_rec_.p1_key = name_)", true, 268022, 268183, 0);
5.6266 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (temp_rec_.p2_key = name_)", true, 268206, 268367, 0);
5.6267 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (temp_rec_.p3_key = name_)", true, 268390, 268551, 0);
5.6268 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (temp_rec_.p4_key = name_)", true, 268574, 268735, 0);
5.6269 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (temp_rec_.p5_key = name_)", true, 268758, 268919, 0);
5.6270 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "IF (temp_rec_.p6_key = name_)", true, 268942, 269103, 0);
5.6271 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (temp_rec_.p7_key = name_)", true, 269126, 269287, 0);
5.6272 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "IF (temp_rec_.p8_key = name_)", true, 269310, 269471, 0);
5.6273 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "IF (temp_rec_.p9_key = name_)", true, 269494, 269655, 0);
5.6274 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 9, PlsqlBlockType.IF, "IF (temp_rec_.p10_key = name_)", true, 269678, 269840, 0);
5.6275 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 10, PlsqlBlockType.IF, "IF (temp_rec_.p11_key = name_)", true, 269863, 270027, 0);
5.6276 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(0).getChildBlocks(), 11, PlsqlBlockType.IF, "IF (temp_rec_.p12_key = name_)", true, 270050, 270214, 0);
5.6277 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "i IN 0..11", true, 270320, 270580, 2);
5.6278 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Bug 68118, Begin remove the the IF condition", true, 270363, 270410, 0);
5.6279 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(97).getChildBlocks().get(9).getChildBlocks().get(14).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(5).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Bug 68118, End", true, 270534, 270551, 0);
5.6280 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 98, PlsqlBlockType.PROCEDURE_IMPL, "Calc_Measure_From_Budpro", true, 271246, 274564, 5);
5.6281 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_level_type", true, 271886, 272115, 0);
5.6282 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_measures_planform", true, 272120, 272370, 0);
5.6283 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks(), 2, PlsqlBlockType.CURSOR, "get_years", true, 272375, 272503, 0);
5.6284 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks(), 3, PlsqlBlockType.CURSOR, "get_period_count", true, 272508, 272683, 0);
5.6285 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks(), 4, PlsqlBlockType.WHILE_LOOP, "( Client_SYS.Get_Next_From_Attr(comp_attr_, ptr_, name_, value_) )", true, 272904, 274534, 2);
5.6286 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'OBJECT_ID')", true, 272988, 273062, 0);
5.6287 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (level_type_ = 'COMPONENT')", true, 273172, 274521, 2);
5.6288 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_measures_planform_ IN get_measures_planform", true, 273238, 273492, 1);
5.6289 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( INSTR(get_measures_planform_.measure_calc_formula,object_id_) > 0)", true, 273307, 273473, 0);
5.6290 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF ( measures_tab.COUNT > 0 )", true, 273591, 274507, 1);
5.6291 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "x IN measures_tab.FIRST..measures_tab.LAST", true, 273638, 274490, 1);
5.6292 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "get_years_ IN get_years", true, 273705, 274468, 1);
5.6293 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(98).getChildBlocks().get(4).getChildBlocks().get(1).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF ( Check_Exist___ (environment_,scorecard_,year_,budget_version_,measures_tab(x)))", true, 273950, 274443, 0);
5.6294 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 99, PlsqlBlockType.FUNCTION_IMPL, "Get", true, 274567, 275123, 1);
5.6295 + assertBlock(lstBlockFac.get(20).getChildBlocks().get(99).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 274765, 275024, 0);
5.6296 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 100, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 275124, 275588, 0);
5.6297 + assertBlock(lstBlockFac.get(20).getChildBlocks(), 101, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 275590, 275632, 0);
5.6298 + assertBlock(lstBlockFac, 21, PlsqlBlockType.COMMENT, "COMMENT...", false, 275876, 275953, 0);
5.6299 + } finally {
5.6300 + if (fileObject != null) {
5.6301 + fileObject.delete();
5.6302 + }
5.6303 + }
5.6304 + }
5.6305
5.6306 - @Test
5.6307 - public void testAdvanced13() throws IOException, BadLocationException {
5.6308 - System.out.println("Advanced test case 13");
5.6309 - FileObject fileObject = fs.getRoot().createData("Trainer.apy");
5.6310 - assertNotNull(fileObject);
5.6311 - try {
5.6312 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "Trainer.apy");
5.6313 - assertNotNull(blockFac);
5.6314 + @Test
5.6315 + public void testAdvanced13() throws IOException, BadLocationException {
5.6316 + System.out.println("Advanced test case 13");
5.6317 + FileObject fileObject = fs.getRoot().createData("Trainer.apy");
5.6318 + assertNotNull(fileObject);
5.6319 + try {
5.6320 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "Trainer.apy");
5.6321 + assertNotNull(blockFac);
5.6322
5.6323 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.6324 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.6325 // printHierarchy(lstBlockFac, "");
5.6326 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.6327 - assertTrue(lstBlockFac.size() == 11);
5.6328 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: Trainer", false, 0, 601, 0);
5.6329 - assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- VIEWS FOR SELECTS ", false, 933, 1166, 0);
5.6330 - assertBlock(lstBlockFac, 2, PlsqlBlockType.VIEW, "TRAINER", false, 1196, 1939, 0);
5.6331 - assertBlock(lstBlockFac, 3, PlsqlBlockType.TABLE_COMMENT, "TRAINER", false, 1942, 2010, 0);
5.6332 - assertBlock(lstBlockFac, 4, PlsqlBlockType.COLUMN_COMMENT, "TRAINER", false, 2013, 2956, 0);
5.6333 - assertBlock(lstBlockFac, 5, PlsqlBlockType.VIEW, "TRAINER_LOV1", false, 2993, 3251, 0);
5.6334 - assertBlock(lstBlockFac, 6, PlsqlBlockType.TABLE_COMMENT, "TRAINER_LOV1", false, 3254, 3342, 0);
5.6335 - assertBlock(lstBlockFac, 7, PlsqlBlockType.COLUMN_COMMENT, "TRAINER_LOV1", false, 3345, 3658, 0);
5.6336 - assertBlock(lstBlockFac, 8, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 3661, 3894, 0);
5.6337 - assertBlock(lstBlockFac, 9, PlsqlBlockType.PACKAGE_BODY, "TRAINER_API", false, 3933, 28781, 34);
5.6338 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 3973, 5083, 0);
5.6339 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Id___", true, 5084, 6240, 5);
5.6340 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 5378, 5530, 0);
5.6341 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "exist_control", true, 5534, 5624, 0);
5.6342 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 5689, 5773, 0);
5.6343 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 5859, 5940, 0);
5.6344 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 5944, 6011, 0);
5.6345 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Keys___", true, 6242, 6797, 3);
5.6346 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 6382, 6491, 0);
5.6347 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 6556, 6629, 0);
5.6348 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 6633, 6699, 0);
5.6349 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Id___", true, 6799, 7208, 2);
5.6350 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 6909, 6992, 0);
5.6351 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%NOTFOUND)", true, 7048, 7146, 0);
5.6352 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 4, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Keys___", true, 7210, 7528, 1);
5.6353 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 7326, 7412, 0);
5.6354 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 5, PlsqlBlockType.FUNCTION_IMPL, "Check_Exist___", true, 7530, 7935, 2);
5.6355 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 7623, 7717, 0);
5.6356 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 7786, 7873, 0);
5.6357 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_IMPL, "Get_Id_Version_By_Keys___", true, 7937, 8307, 1);
5.6358 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_version", true, 8072, 8180, 0);
5.6359 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR INSERT ", true, 8308, 9053, 0);
5.6360 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Insert___", true, 9055, 9176, 0);
5.6361 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 9, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Insert___", true, 9179, 12003, 6);
5.6362 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 9496, 10607, 9);
5.6363 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'PERSON_ID')", true, 9573, 9640, 0);
5.6364 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'INTERNAL')", true, 9647, 9715, 0);
5.6365 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'FNAME')", true, 9722, 9787, 0);
5.6366 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'LNAME')", true, 9794, 9859, 0);
5.6367 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'TRAINING_INSTITUTION_NAME')", true, 9866, 10131, 1);
5.6368 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 10009, 10131, 0);
5.6369 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'DATE_OF_BIRTH')", true, 10138, 10250, 0);
5.6370 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'SEX')", true, 10257, 10438, 1);
5.6371 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 10351, 10438, 0);
5.6372 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'REMARK')", true, 10445, 10509, 0);
5.6373 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSE", true, 10516, 10594, 0);
5.6374 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (dummy_rec_.name1 IS NULL) OR (dummy_rec_.name4 IS NULL)", true, 10715, 11035, 2);
5.6375 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dummy_rec_.name1 IS NULL)", true, 10847, 10932, 0);
5.6376 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (dummy_rec_.name4 IS NULL)", true, 10939, 11024, 0);
5.6377 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (dummy_rec_.date_of_birth IS NULL)", true, 11106, 11240, 0);
5.6378 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (dummy_rec_.sex IS NULL)", true, 11244, 11371, 0);
5.6379 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (newrec_.internal = '1')", true, 11444, 11671, 1);
5.6380 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Trainer_API.Check_Person_Internal(newrec_.person_id) = 0)", true, 11483, 11671, 0);
5.6381 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 11675, 11885, 1);
5.6382 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Trainer_API.Check_Person_Internal(newrec_.person_id) = 1)", true, 11686, 11874, 0);
5.6383 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 10, PlsqlBlockType.PROCEDURE_IMPL, "Insert___", true, 12006, 13457, 4);
5.6384 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_objid", true, 12270, 12373, 0);
5.6385 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT", true, 12458, 12766, 0);
5.6386 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- update person register", true, 12768, 12799, 0);
5.6387 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (get_objid_)", true, 13248, 13359, 0);
5.6388 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR UPDATE ", true, 13459, 14043, 0);
5.6389 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Update___", true, 14045, 16803, 6);
5.6390 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 14351, 15479, 9);
5.6391 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'PERSON_ID')", true, 14428, 14512, 0);
5.6392 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'INTERNAL')", true, 14519, 14587, 0);
5.6393 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'FNAME')", true, 14594, 14659, 0);
5.6394 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'LNAME')", true, 14666, 14731, 0);
5.6395 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'TRAINING_INSTITUTION_NAME')", true, 14738, 15003, 1);
5.6396 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 14881, 15003, 0);
5.6397 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'DATE_OF_BIRTH')", true, 15010, 15122, 0);
5.6398 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'SEX')", true, 15129, 15310, 1);
5.6399 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 15223, 15310, 0);
5.6400 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'REMARK')", true, 15317, 15381, 0);
5.6401 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSE", true, 15388, 15466, 0);
5.6402 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (dummy_rec_.name1 IS NULL) OR (dummy_rec_.name4 IS NULL)", true, 15516, 15836, 2);
5.6403 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dummy_rec_.name1 IS NULL)", true, 15648, 15733, 0);
5.6404 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (dummy_rec_.name4 IS NULL)", true, 15740, 15825, 0);
5.6405 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (dummy_rec_.date_of_birth IS NULL)", true, 15907, 16041, 0);
5.6406 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (dummy_rec_.sex IS NULL)", true, 16045, 16172, 0);
5.6407 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (newrec_.internal = '1')", true, 16245, 16472, 1);
5.6408 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Trainer_API.Check_Person_Internal(newrec_.person_id) = 0)", true, 16284, 16472, 0);
5.6409 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 16476, 16686, 1);
5.6410 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Trainer_API.Check_Person_Internal(newrec_.person_id) = 1)", true, 16487, 16675, 0);
5.6411 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Update___", true, 16806, 18487, 3);
5.6412 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF by_keys_", true, 17217, 17547, 1);
5.6413 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE trainer_tab t", true, 17240, 17546, 0);
5.6414 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 17551, 17866, 1);
5.6415 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE trainer_tab t", true, 17562, 17854, 0);
5.6416 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- update person register", true, 17874, 17917, 0);
5.6417 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR DELETE ", true, 18489, 19086, 0);
5.6418 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Check_Delete___", true, 19088, 19295, 0);
5.6419 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Delete___", true, 19298, 19788, 2);
5.6420 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (by_keys_)", true, 19565, 19680, 1);
5.6421 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE FROM &TABLE", true, 19616, 19679, 0);
5.6422 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(16).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 19684, 19773, 1);
5.6423 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(16).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 19695, 19761, 0);
5.6424 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 19790, 22085, 0);
5.6425 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Lock__", true, 22087, 22382, 0);
5.6426 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 19, PlsqlBlockType.PROCEDURE_IMPL, "New__", true, 22385, 23047, 3);
5.6427 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'PREPARE')", true, 22683, 22744, 0);
5.6428 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(19).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'CHECK')", true, 22748, 22835, 0);
5.6429 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(19).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 22839, 22999, 0);
5.6430 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Modify__", true, 23050, 23830, 2);
5.6431 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 23381, 23519, 0);
5.6432 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(20).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 23523, 23779, 0);
5.6433 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Remove__", true, 23833, 24385, 2);
5.6434 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 24068, 24173, 0);
5.6435 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(21).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 24177, 24334, 0);
5.6436 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 22, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 24387, 24840, 0);
5.6437 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 24842, 25067, 1);
5.6438 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(person_id_))", true, 24961, 25056, 0);
5.6439 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 24, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 25069, 26009, 0);
5.6440 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 25, PlsqlBlockType.FUNCTION_IMPL, "Get_Training_Institution_Name", true, 26011, 26416, 1);
5.6441 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 26149, 26258, 0);
5.6442 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 26, PlsqlBlockType.FUNCTION_IMPL, "Get_Fname", true, 26419, 26549, 0);
5.6443 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 27, PlsqlBlockType.FUNCTION_IMPL, "Get_Lname", true, 26552, 26682, 0);
5.6444 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 28, PlsqlBlockType.FUNCTION_IMPL, "Get_Name", true, 26684, 26819, 0);
5.6445 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 29, PlsqlBlockType.FUNCTION_IMPL, "Check_Person_Internal", true, 26821, 26997, 0);
5.6446 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 30, PlsqlBlockType.FUNCTION_IMPL, "Get_Internal_External", true, 26999, 27309, 2);
5.6447 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(30).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (internal_ = '0')", true, 27086, 27169, 0);
5.6448 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(30).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (internal_ = '1')", true, 27173, 27266, 0);
5.6449 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 31, PlsqlBlockType.FUNCTION_IMPL, "Replace_Person_Id", true, 27311, 28260, 4);
5.6450 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(31).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_pers", true, 27425, 27536, 0);
5.6451 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(31).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (new_person_id_ = old_person_id_)", true, 27704, 27777, 0);
5.6452 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(31).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (Check_Exist___(new_person_id_) = TRUE)", true, 27781, 27861, 0);
5.6453 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(31).getChildBlocks(), 3, PlsqlBlockType.WHILE_LOOP, "(get_pers%FOUND)", true, 27927, 28199, 1);
5.6454 - assertBlock(lstBlockFac.get(9).getChildBlocks().get(31).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE trainer_tab t", true, 28014, 28138, 0);
5.6455 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 32, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 28261, 28725, 0);
5.6456 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 33, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 28727, 28769, 0);
5.6457 - assertBlock(lstBlockFac, 10, PlsqlBlockType.COMMENT, "COMMENT...", false, 28796, 28873, 0);
5.6458 - } finally {
5.6459 - if (fileObject != null) {
5.6460 - fileObject.delete();
5.6461 - }
5.6462 - }
5.6463 - }
5.6464 + assertTrue(lstBlockFac.size() == 11);
5.6465 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: Trainer", false, 0, 601, 0);
5.6466 + assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- VIEWS FOR SELECTS ", false, 933, 1166, 0);
5.6467 + assertBlock(lstBlockFac, 2, PlsqlBlockType.VIEW, "TRAINER", false, 1196, 1939, 0);
5.6468 + assertBlock(lstBlockFac, 3, PlsqlBlockType.TABLE_COMMENT, "TRAINER", false, 1942, 2010, 0);
5.6469 + assertBlock(lstBlockFac, 4, PlsqlBlockType.COLUMN_COMMENT, "TRAINER", false, 2013, 2956, 0);
5.6470 + assertBlock(lstBlockFac, 5, PlsqlBlockType.VIEW, "TRAINER_LOV1", false, 2993, 3251, 0);
5.6471 + assertBlock(lstBlockFac, 6, PlsqlBlockType.TABLE_COMMENT, "TRAINER_LOV1", false, 3254, 3342, 0);
5.6472 + assertBlock(lstBlockFac, 7, PlsqlBlockType.COLUMN_COMMENT, "TRAINER_LOV1", false, 3345, 3658, 0);
5.6473 + assertBlock(lstBlockFac, 8, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 3661, 3894, 0);
5.6474 + assertBlock(lstBlockFac, 9, PlsqlBlockType.PACKAGE_BODY, "TRAINER_API", false, 3933, 28781, 34);
5.6475 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 3973, 5083, 0);
5.6476 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Id___", true, 5084, 6240, 5);
5.6477 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 5378, 5530, 0);
5.6478 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "exist_control", true, 5534, 5624, 0);
5.6479 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 5689, 5773, 0);
5.6480 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 5859, 5940, 0);
5.6481 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSE", true, 5944, 6011, 0);
5.6482 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_IMPL, "Lock_By_Keys___", true, 6242, 6797, 3);
5.6483 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "lock_control", true, 6382, 6491, 0);
5.6484 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (lock_control%FOUND)", true, 6556, 6629, 0);
5.6485 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 6633, 6699, 0);
5.6486 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Id___", true, 6799, 7208, 2);
5.6487 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 6909, 6992, 0);
5.6488 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (getrec%NOTFOUND)", true, 7048, 7146, 0);
5.6489 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 4, PlsqlBlockType.FUNCTION_IMPL, "Get_Object_By_Keys___", true, 7210, 7528, 1);
5.6490 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "getrec", true, 7326, 7412, 0);
5.6491 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 5, PlsqlBlockType.FUNCTION_IMPL, "Check_Exist___", true, 7530, 7935, 2);
5.6492 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 7623, 7717, 0);
5.6493 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(5).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (exist_control%FOUND)", true, 7786, 7873, 0);
5.6494 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_IMPL, "Get_Id_Version_By_Keys___", true, 7937, 8307, 1);
5.6495 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_version", true, 8072, 8180, 0);
5.6496 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 7, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR INSERT ", true, 8308, 9053, 0);
5.6497 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_IMPL, "Prepare_Insert___", true, 9055, 9176, 0);
5.6498 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 9, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Insert___", true, 9179, 12003, 6);
5.6499 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 9496, 10607, 9);
5.6500 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'PERSON_ID')", true, 9573, 9640, 0);
5.6501 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'INTERNAL')", true, 9647, 9715, 0);
5.6502 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'FNAME')", true, 9722, 9787, 0);
5.6503 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'LNAME')", true, 9794, 9859, 0);
5.6504 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'TRAINING_INSTITUTION_NAME')", true, 9866, 10131, 1);
5.6505 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 10009, 10131, 0);
5.6506 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'DATE_OF_BIRTH')", true, 10138, 10250, 0);
5.6507 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'SEX')", true, 10257, 10438, 1);
5.6508 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 10351, 10438, 0);
5.6509 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'REMARK')", true, 10445, 10509, 0);
5.6510 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSE", true, 10516, 10594, 0);
5.6511 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (dummy_rec_.name1 IS NULL) OR (dummy_rec_.name4 IS NULL)", true, 10715, 11035, 2);
5.6512 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dummy_rec_.name1 IS NULL)", true, 10847, 10932, 0);
5.6513 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (dummy_rec_.name4 IS NULL)", true, 10939, 11024, 0);
5.6514 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (dummy_rec_.date_of_birth IS NULL)", true, 11106, 11240, 0);
5.6515 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (dummy_rec_.sex IS NULL)", true, 11244, 11371, 0);
5.6516 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (newrec_.internal = '1')", true, 11444, 11671, 1);
5.6517 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Trainer_API.Check_Person_Internal(newrec_.person_id) = 0)", true, 11483, 11671, 0);
5.6518 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 11675, 11885, 1);
5.6519 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(9).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Trainer_API.Check_Person_Internal(newrec_.person_id) = 1)", true, 11686, 11874, 0);
5.6520 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 10, PlsqlBlockType.PROCEDURE_IMPL, "Insert___", true, 12006, 13457, 4);
5.6521 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_objid", true, 12270, 12373, 0);
5.6522 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT", true, 12458, 12766, 0);
5.6523 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- update person register", true, 12768, 12799, 0);
5.6524 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(10).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (get_objid_)", true, 13248, 13359, 0);
5.6525 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 11, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR UPDATE ", true, 13459, 14043, 0);
5.6526 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_IMPL, "Unpack_Check_Update___", true, 14045, 16803, 6);
5.6527 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.WHILE_LOOP, "(Client_SYS.Get_Next_From_Attr(attr_, ptr_, name_, value_))", true, 14351, 15479, 9);
5.6528 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (name_ = 'PERSON_ID')", true, 14428, 14512, 0);
5.6529 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (name_ = 'INTERNAL')", true, 14519, 14587, 0);
5.6530 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (name_ = 'FNAME')", true, 14594, 14659, 0);
5.6531 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSIF (name_ = 'LNAME')", true, 14666, 14731, 0);
5.6532 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 4, PlsqlBlockType.IF, "ELSIF (name_ = 'TRAINING_INSTITUTION_NAME')", true, 14738, 15003, 1);
5.6533 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 14881, 15003, 0);
5.6534 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSIF (name_ = 'DATE_OF_BIRTH')", true, 15010, 15122, 0);
5.6535 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 6, PlsqlBlockType.IF, "ELSIF (name_ = 'SEX')", true, 15129, 15310, 1);
5.6536 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (value_ IS NOT NULL)", true, 15223, 15310, 0);
5.6537 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 7, PlsqlBlockType.IF, "ELSIF (name_ = 'REMARK')", true, 15317, 15381, 0);
5.6538 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(0).getChildBlocks(), 8, PlsqlBlockType.IF, "ELSE", true, 15388, 15466, 0);
5.6539 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (dummy_rec_.name1 IS NULL) OR (dummy_rec_.name4 IS NULL)", true, 15516, 15836, 2);
5.6540 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (dummy_rec_.name1 IS NULL)", true, 15648, 15733, 0);
5.6541 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (dummy_rec_.name4 IS NULL)", true, 15740, 15825, 0);
5.6542 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (dummy_rec_.date_of_birth IS NULL)", true, 15907, 16041, 0);
5.6543 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (dummy_rec_.sex IS NULL)", true, 16045, 16172, 0);
5.6544 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (newrec_.internal = '1')", true, 16245, 16472, 1);
5.6545 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(4).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Trainer_API.Check_Person_Internal(newrec_.person_id) = 0)", true, 16284, 16472, 0);
5.6546 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks(), 5, PlsqlBlockType.IF, "ELSE", true, 16476, 16686, 1);
5.6547 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(12).getChildBlocks().get(5).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (Trainer_API.Check_Person_Internal(newrec_.person_id) = 1)", true, 16487, 16675, 0);
5.6548 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Update___", true, 16806, 18487, 3);
5.6549 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.IF, "IF by_keys_", true, 17217, 17547, 1);
5.6550 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE trainer_tab t", true, 17240, 17546, 0);
5.6551 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 17551, 17866, 1);
5.6552 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE trainer_tab t", true, 17562, 17854, 0);
5.6553 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(13).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- update person register", true, 17874, 17917, 0);
5.6554 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 14, PlsqlBlockType.COMMENT, "-- IMPLEMENTATION BASE METHODS FOR DELETE ", true, 18489, 19086, 0);
5.6555 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Check_Delete___", true, 19088, 19295, 0);
5.6556 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Delete___", true, 19298, 19788, 2);
5.6557 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (by_keys_)", true, 19565, 19680, 1);
5.6558 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(16).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE FROM &TABLE", true, 19616, 19679, 0);
5.6559 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(16).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 19684, 19773, 1);
5.6560 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(16).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "DELETE", true, 19695, 19761, 0);
5.6561 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 17, PlsqlBlockType.COMMENT, "-- PRIVATE BASE METHODS ", true, 19790, 22085, 0);
5.6562 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Lock__", true, 22087, 22382, 0);
5.6563 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 19, PlsqlBlockType.PROCEDURE_IMPL, "New__", true, 22385, 23047, 3);
5.6564 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(19).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'PREPARE')", true, 22683, 22744, 0);
5.6565 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(19).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'CHECK')", true, 22748, 22835, 0);
5.6566 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(19).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 22839, 22999, 0);
5.6567 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Modify__", true, 23050, 23830, 2);
5.6568 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(20).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 23381, 23519, 0);
5.6569 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(20).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 23523, 23779, 0);
5.6570 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 21, PlsqlBlockType.PROCEDURE_IMPL, "Remove__", true, 23833, 24385, 2);
5.6571 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(21).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (action_ = 'CHECK')", true, 24068, 24173, 0);
5.6572 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(21).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (action_ = 'DO')", true, 24177, 24334, 0);
5.6573 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 22, PlsqlBlockType.COMMENT, "-- PUBLIC BASE METHODS ", true, 24387, 24840, 0);
5.6574 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 23, PlsqlBlockType.PROCEDURE_IMPL, "Exist", true, 24842, 25067, 1);
5.6575 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(23).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (NOT Check_Exist___(person_id_))", true, 24961, 25056, 0);
5.6576 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 24, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 25069, 26009, 0);
5.6577 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 25, PlsqlBlockType.FUNCTION_IMPL, "Get_Training_Institution_Name", true, 26011, 26416, 1);
5.6578 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(25).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_attr", true, 26149, 26258, 0);
5.6579 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 26, PlsqlBlockType.FUNCTION_IMPL, "Get_Fname", true, 26419, 26549, 0);
5.6580 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 27, PlsqlBlockType.FUNCTION_IMPL, "Get_Lname", true, 26552, 26682, 0);
5.6581 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 28, PlsqlBlockType.FUNCTION_IMPL, "Get_Name", true, 26684, 26819, 0);
5.6582 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 29, PlsqlBlockType.FUNCTION_IMPL, "Check_Person_Internal", true, 26821, 26997, 0);
5.6583 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 30, PlsqlBlockType.FUNCTION_IMPL, "Get_Internal_External", true, 26999, 27309, 2);
5.6584 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(30).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (internal_ = '0')", true, 27086, 27169, 0);
5.6585 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(30).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSIF (internal_ = '1')", true, 27173, 27266, 0);
5.6586 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 31, PlsqlBlockType.FUNCTION_IMPL, "Replace_Person_Id", true, 27311, 28260, 4);
5.6587 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(31).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_pers", true, 27425, 27536, 0);
5.6588 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(31).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (new_person_id_ = old_person_id_)", true, 27704, 27777, 0);
5.6589 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(31).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (Check_Exist___(new_person_id_) = TRUE)", true, 27781, 27861, 0);
5.6590 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(31).getChildBlocks(), 3, PlsqlBlockType.WHILE_LOOP, "(get_pers%FOUND)", true, 27927, 28199, 1);
5.6591 + assertBlock(lstBlockFac.get(9).getChildBlocks().get(31).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "UPDATE trainer_tab t", true, 28014, 28138, 0);
5.6592 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 32, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 28261, 28725, 0);
5.6593 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 33, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 28727, 28769, 0);
5.6594 + assertBlock(lstBlockFac, 10, PlsqlBlockType.COMMENT, "COMMENT...", false, 28796, 28873, 0);
5.6595 + } finally {
5.6596 + if (fileObject != null) {
5.6597 + fileObject.delete();
5.6598 + }
5.6599 + }
5.6600 + }
5.6601
5.6602 - @Test
5.6603 - public void testAdvanced14() throws IOException, BadLocationException {
5.6604 - System.out.println("Advanced test case 14");
5.6605 - FileObject fileObject = fs.getRoot().createData("fndbas_ora.cre");
5.6606 - assertNotNull(fileObject);
5.6607 - try {
5.6608 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "fndbas_ora.cre");
5.6609 - assertNotNull(blockFac);
5.6610 + @Test
5.6611 + public void testAdvanced14() throws IOException, BadLocationException {
5.6612 + System.out.println("Advanced test case 14");
5.6613 + FileObject fileObject = fs.getRoot().createData("fndbas_ora.cre");
5.6614 + assertNotNull(fileObject);
5.6615 + try {
5.6616 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "fndbas_ora.cre");
5.6617 + assertNotNull(blockFac);
5.6618
5.6619 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.6620 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.6621 // printHierarchy(lstBlockFac, "");
5.6622 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.6623 - assertTrue(lstBlockFac.size() == 12);
5.6624 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- File : fndbas_ora.cre", false, 0, 232, 0);
5.6625 - assertBlock(lstBlockFac, 1, PlsqlBlockType.STATEMENT, "TABLE &AO..X_ACTIVITY_GRANT_FILTER_TAB", false, 234, 556, 0);
5.6626 - assertBlock(lstBlockFac, 2, PlsqlBlockType.STATEMENT, "TABLE &AO..X_ACTIVITY_GRANT_FILTER_TAB", false, 558, 770, 0);
5.6627 - assertBlock(lstBlockFac, 3, PlsqlBlockType.STATEMENT, "TABLE &AO..X_FNDDR_ACTIVITY_ENT_USAGE_TAB", false, 773, 1079, 0);
5.6628 - assertBlock(lstBlockFac, 4, PlsqlBlockType.STATEMENT, "TABLE &AO..X_FNDDR_ACTIVITY_ENT_USAGE_TAB", false, 1081, 1291, 0);
5.6629 - assertBlock(lstBlockFac, 5, PlsqlBlockType.STATEMENT, "INDEX &AO..X_FNDDR_ACTIVITY_ENT_USEAGE_FK", false, 1293, 1435, 0);
5.6630 - assertBlock(lstBlockFac, 6, PlsqlBlockType.COMMENT, "-- CREATE sequence", false, 1438, 1456, 0);
5.6631 - assertBlock(lstBlockFac, 7, PlsqlBlockType.STATEMENT, "SEQUENCE &AO..X_Ext_File_Batch_Param_Seq", false, 1458, 1505, 0);
5.6632 - assertBlock(lstBlockFac, 8, PlsqlBlockType.COMMENT, "-- CREATE trigger", false, 1508, 1525, 0);
5.6633 - assertBlock(lstBlockFac, 9, PlsqlBlockType.TRIGGER, "x_vmogss_base_usermap_change", false, 1527, 1958, 1);
5.6634 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "insert into &AO..vmo_base_gss_scope(gss_id, created, source_tbl, source_info) values(:newrec.gss_id, sysdate, 'VMO_BASE_GSS_USERMAP_CHANGE', :newrec.gss_id)", true, 1757, 1913, 0);
5.6635 - assertBlock(lstBlockFac, 10, PlsqlBlockType.COMMENT, "-- CREATE trigger dynamically", false, 1962, 1991, 0);
5.6636 - assertBlock(lstBlockFac, 11, PlsqlBlockType.BEGIN_END, "", false, 1993, 2612, 3);
5.6637 - assertBlock(lstBlockFac.get(11).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- OK if ORA ", true, 2430, 2479, 0);
5.6638 - assertBlock(lstBlockFac.get(11).getChildBlocks(), 1, PlsqlBlockType.IF, "IF INSTR(SQLERRM,'-00942') != 0", true, 2488, 2530, 0);
5.6639 - assertBlock(lstBlockFac.get(11).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 2539, 2605, 0);
5.6640 - } finally {
5.6641 - if (fileObject != null) {
5.6642 - fileObject.delete();
5.6643 - }
5.6644 - }
5.6645 - }
5.6646 + assertTrue(lstBlockFac.size() == 12);
5.6647 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- File : fndbas_ora.cre", false, 0, 232, 0);
5.6648 + assertBlock(lstBlockFac, 1, PlsqlBlockType.STATEMENT, "TABLE &AO..X_ACTIVITY_GRANT_FILTER_TAB", false, 234, 556, 0);
5.6649 + assertBlock(lstBlockFac, 2, PlsqlBlockType.STATEMENT, "TABLE &AO..X_ACTIVITY_GRANT_FILTER_TAB", false, 558, 770, 0);
5.6650 + assertBlock(lstBlockFac, 3, PlsqlBlockType.STATEMENT, "TABLE &AO..X_FNDDR_ACTIVITY_ENT_USAGE_TAB", false, 773, 1079, 0);
5.6651 + assertBlock(lstBlockFac, 4, PlsqlBlockType.STATEMENT, "TABLE &AO..X_FNDDR_ACTIVITY_ENT_USAGE_TAB", false, 1081, 1291, 0);
5.6652 + assertBlock(lstBlockFac, 5, PlsqlBlockType.STATEMENT, "INDEX &AO..X_FNDDR_ACTIVITY_ENT_USEAGE_FK", false, 1293, 1435, 0);
5.6653 + assertBlock(lstBlockFac, 6, PlsqlBlockType.COMMENT, "-- CREATE sequence", false, 1438, 1456, 0);
5.6654 + assertBlock(lstBlockFac, 7, PlsqlBlockType.STATEMENT, "SEQUENCE &AO..X_Ext_File_Batch_Param_Seq", false, 1458, 1505, 0);
5.6655 + assertBlock(lstBlockFac, 8, PlsqlBlockType.COMMENT, "-- CREATE trigger", false, 1508, 1525, 0);
5.6656 + assertBlock(lstBlockFac, 9, PlsqlBlockType.TRIGGER, "x_vmogss_base_usermap_change", false, 1527, 1958, 1);
5.6657 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "insert into &AO..vmo_base_gss_scope(gss_id, created, source_tbl, source_info) values(:newrec.gss_id, sysdate, 'VMO_BASE_GSS_USERMAP_CHANGE', :newrec.gss_id)", true, 1757, 1913, 0);
5.6658 + assertBlock(lstBlockFac, 10, PlsqlBlockType.COMMENT, "-- CREATE trigger dynamically", false, 1962, 1991, 0);
5.6659 + assertBlock(lstBlockFac, 11, PlsqlBlockType.BEGIN_END, "", false, 1993, 2612, 3);
5.6660 + assertBlock(lstBlockFac.get(11).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- OK if ORA ", true, 2430, 2479, 0);
5.6661 + assertBlock(lstBlockFac.get(11).getChildBlocks(), 1, PlsqlBlockType.IF, "IF INSTR(SQLERRM,'-00942') != 0", true, 2488, 2530, 0);
5.6662 + assertBlock(lstBlockFac.get(11).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 2539, 2605, 0);
5.6663 + } finally {
5.6664 + if (fileObject != null) {
5.6665 + fileObject.delete();
5.6666 + }
5.6667 + }
5.6668 + }
5.6669
5.6670 - @Test
5.6671 - public void testAdvanced15() throws IOException, BadLocationException {
5.6672 - System.out.println("Advanced test case 15");
5.6673 - FileObject fileObject = fs.getRoot().createData("person.ins");
5.6674 - assertNotNull(fileObject);
5.6675 - try {
5.6676 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "person.ins");
5.6677 - assertNotNull(blockFac);
5.6678 + @Test
5.6679 + public void testAdvanced15() throws IOException, BadLocationException {
5.6680 + System.out.println("Advanced test case 15");
5.6681 + FileObject fileObject = fs.getRoot().createData("person.ins");
5.6682 + assertNotNull(fileObject);
5.6683 + try {
5.6684 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "person.ins");
5.6685 + assertNotNull(blockFac);
5.6686
5.6687 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.6688 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.6689 // printHierarchy(lstBlockFac, "");
5.6690 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.6691 - assertTrue(lstBlockFac.size() == 23);
5.6692 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Module: PERSON", false, 0, 1680, 0);
5.6693 - assertBlock(lstBlockFac, 1, PlsqlBlockType.BEGIN_END, "", false, 1683, 1814, 1);
5.6694 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 1689, 1808, 0);
5.6695 - assertBlock(lstBlockFac, 2, PlsqlBlockType.DECLARE_END, "", false, 1817, 2105, 1);
5.6696 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (val_ is NULL or val_='Yes,No')", true, 1939, 2100, 0);
5.6697 - assertBlock(lstBlockFac, 3, PlsqlBlockType.COMMENT, "-- Transfer companies from finance to hr", false, 2108, 2148, 0);
5.6698 - assertBlock(lstBlockFac, 4, PlsqlBlockType.BEGIN_END, "", false, 2375, 2664, 1);
5.6699 - assertBlock(lstBlockFac.get(4).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO person_company_tab (", true, 2381, 2658, 0);
5.6700 - assertBlock(lstBlockFac, 5, PlsqlBlockType.DECLARE_END, "", false, 2667, 3275, 2);
5.6701 - assertBlock(lstBlockFac.get(5).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exits", true, 2678, 2860, 0);
5.6702 - assertBlock(lstBlockFac.get(5).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "rec_ IN ( * FROM company_emp_tab)", true, 2887, 3270, 1);
5.6703 - assertBlock(lstBlockFac.get(5).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (check_exits%NOTFOUND)", true, 3024, 3232, 1);
5.6704 - assertBlock(lstBlockFac.get(5).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO company_person_tab(company_id,emp_no,master_employment,operator,rowversion)", true, 3061, 3218, 0);
5.6705 - assertBlock(lstBlockFac, 6, PlsqlBlockType.DECLARE_END, "", false, 3278, 3823, 2);
5.6706 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exits", true, 3289, 3415, 0);
5.6707 - assertBlock(lstBlockFac.get(6).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "rec_ IN ( * FROM person_info_tab)", true, 3446, 3818, 1);
5.6708 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (check_exits%NOTFOUND)", true, 3578, 3767, 1);
5.6709 - assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO pers_tab(person_id,have_child,external_display_name,rowversion)", true, 3621, 3748, 0);
5.6710 - assertBlock(lstBlockFac, 7, PlsqlBlockType.BEGIN_END, "", false, 3826, 4088, 1);
5.6711 - assertBlock(lstBlockFac.get(7).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO employee_name_configurator_tab", true, 3832, 4082, 0);
5.6712 - assertBlock(lstBlockFac, 8, PlsqlBlockType.DECLARE_END, "", false, 4100, 5981, 5);
5.6713 - assertBlock(lstBlockFac.get(8).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 4142, 4145, 0);
5.6714 - assertBlock(lstBlockFac.get(8).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "COMMENT...", true, 4807, 4810, 0);
5.6715 - assertBlock(lstBlockFac.get(8).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 58601, Modified hardcoded date values to Database_SYS.get_first_calendar_date and get_last_calendar_date.", true, 5053, 5165, 0);
5.6716 - assertBlock(lstBlockFac.get(8).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "COMMENT...", true, 5390, 5393, 0);
5.6717 - assertBlock(lstBlockFac.get(8).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Bug 58601, Modified hardcoded date values to Database_SYS.get_first_calendar_date and get_last_calendar_date.", true, 5641, 5753, 0);
5.6718 - assertBlock(lstBlockFac, 9, PlsqlBlockType.DECLARE_END, "", false, 5993, 7846, 5);
5.6719 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 6035, 6038, 0);
5.6720 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "COMMENT...", true, 6700, 6703, 0);
5.6721 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 58601, Modified hardcoded date values to Database_SYS.get_first_calendar_date and get_last_calendar_date.", true, 6934, 7046, 0);
5.6722 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "COMMENT...", true, 7271, 7274, 0);
5.6723 - assertBlock(lstBlockFac.get(9).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Bug 58601, Modified hardcoded date values to Database_SYS.get_first_calendar_date and get_last_calendar_date.", true, 7506, 7618, 0);
5.6724 - assertBlock(lstBlockFac, 10, PlsqlBlockType.DECLARE_END, "", false, 7858, 8561, 1);
5.6725 - assertBlock(lstBlockFac.get(10).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 7900, 7903, 0);
5.6726 - assertBlock(lstBlockFac, 11, PlsqlBlockType.DECLARE_END, "", false, 8574, 9270, 2);
5.6727 - assertBlock(lstBlockFac.get(11).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_comp_exist", true, 8585, 8757, 0);
5.6728 - assertBlock(lstBlockFac.get(11).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "get_company_ IN ( DISTINCT company_id FROM person_company_tab)", true, 8794, 9265, 1);
5.6729 - assertBlock(lstBlockFac.get(11).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (check_comp_exist%NOTFOUND)", true, 8983, 9219, 1);
5.6730 - assertBlock(lstBlockFac.get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO EMPLOYEE_STATUS_TAB(company_id, seq_no, employee_status, active, status_obsolete, rowversion)", true, 9028, 9203, 0);
5.6731 - assertBlock(lstBlockFac, 12, PlsqlBlockType.BEGIN_END, "", false, 9273, 9978, 0);
5.6732 - assertBlock(lstBlockFac, 13, PlsqlBlockType.PROCEDURE_IMPL, "Temp_Person_Document_Default", false, 10084, 11481, 2);
5.6733 - assertBlock(lstBlockFac.get(13).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "existdoc", true, 10416, 10546, 0);
5.6734 - assertBlock(lstBlockFac.get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "IF existdoc%NOTFOUND", true, 10635, 11428, 1);
5.6735 - assertBlock(lstBlockFac.get(13).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 10667, 11116, 0);
5.6736 - assertBlock(lstBlockFac, 14, PlsqlBlockType.DECLARE_END, "", false, 11484, 11672, 0);
5.6737 - assertBlock(lstBlockFac, 15, PlsqlBlockType.STATEMENT, "DROP PROCEDURE Temp_Person_Document_Default", false, 11722, 11765, 0);
5.6738 - assertBlock(lstBlockFac, 16, PlsqlBlockType.BEGIN_END, "", false, 11769, 11973, 0);
5.6739 - assertBlock(lstBlockFac, 17, PlsqlBlockType.DECLARE_END, "", false, 12190, 14461, 2);
5.6740 - assertBlock(lstBlockFac.get(17).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exits", true, 12201, 12307, 0);
5.6741 - assertBlock(lstBlockFac.get(17).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (check_exits%NOTFOUND)", true, 12475, 14428, 6);
5.6742 - assertBlock(lstBlockFac.get(17).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT MARITAL_STATUS_ID.NEXTVAL INTO married_seq_ FROM dual", true, 12512, 12572, 0);
5.6743 - assertBlock(lstBlockFac.get(17).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT", true, 12581, 12835, 0);
5.6744 - assertBlock(lstBlockFac.get(17).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.STATEMENT, "SELECT MARITAL_STATUS_ID.NEXTVAL INTO unmarried_seq_ FROM dual", true, 13113, 13175, 0);
5.6745 - assertBlock(lstBlockFac.get(17).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.STATEMENT, "INSERT", true, 13187, 13475, 0);
5.6746 - assertBlock(lstBlockFac.get(17).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.STATEMENT, "SELECT MARITAL_STATUS_ID.NEXTVAL INTO widower_seq_ FROM dual", true, 13775, 13835, 0);
5.6747 - assertBlock(lstBlockFac.get(17).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.STATEMENT, "INSERT", true, 13847, 14133, 0);
5.6748 - assertBlock(lstBlockFac, 18, PlsqlBlockType.BEGIN_END, "", false, 14497, 14715, 0);
5.6749 - assertBlock(lstBlockFac, 19, PlsqlBlockType.DECLARE_END, "", false, 14939, 16749, 2);
5.6750 - assertBlock(lstBlockFac.get(19).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exits", true, 14950, 15100, 0);
5.6751 - assertBlock(lstBlockFac.get(19).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (check_exits%NOTFOUND)", true, 15185, 16719, 11);
5.6752 - assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 15226, 15355, 0);
5.6753 - assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 15362, 15482, 0);
5.6754 - assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 15490, 15633, 0);
5.6755 - assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 15640, 15767, 0);
5.6756 - assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 15776, 15904, 0);
5.6757 - assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 15911, 16035, 0);
5.6758 - assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 6, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 16044, 16170, 0);
5.6759 - assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 7, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 16177, 16297, 0);
5.6760 - assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 8, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 16306, 16430, 0);
5.6761 - assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 9, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 16438, 16566, 0);
5.6762 - assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 10, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 16574, 16701, 0);
5.6763 - assertBlock(lstBlockFac, 20, PlsqlBlockType.COMMENT, "-- Bug 73297, Start", false, 16761, 16779, 0);
5.6764 - assertBlock(lstBlockFac, 21, PlsqlBlockType.DECLARE_END, "", false, 17024, 18309, 2);
5.6765 - assertBlock(lstBlockFac.get(21).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 17066, 17069, 0);
5.6766 - assertBlock(lstBlockFac.get(21).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "COMMENT...", true, 17686, 17689, 0);
5.6767 - assertBlock(lstBlockFac, 22, PlsqlBlockType.COMMENT, "-- Bug 73297, End", false, 18320, 18336, 0);
5.6768 - } finally {
5.6769 - if (fileObject != null) {
5.6770 - fileObject.delete();
5.6771 - }
5.6772 - }
5.6773 - }
5.6774 + assertTrue(lstBlockFac.size() == 23);
5.6775 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Module: PERSON", false, 0, 1680, 0);
5.6776 + assertBlock(lstBlockFac, 1, PlsqlBlockType.BEGIN_END, "", false, 1683, 1814, 1);
5.6777 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 1689, 1808, 0);
5.6778 + assertBlock(lstBlockFac, 2, PlsqlBlockType.DECLARE_END, "", false, 1817, 2105, 1);
5.6779 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (val_ is NULL or val_='Yes,No')", true, 1939, 2100, 0);
5.6780 + assertBlock(lstBlockFac, 3, PlsqlBlockType.COMMENT, "-- Transfer companies from finance to hr", false, 2108, 2148, 0);
5.6781 + assertBlock(lstBlockFac, 4, PlsqlBlockType.BEGIN_END, "", false, 2375, 2664, 1);
5.6782 + assertBlock(lstBlockFac.get(4).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO person_company_tab (", true, 2381, 2658, 0);
5.6783 + assertBlock(lstBlockFac, 5, PlsqlBlockType.DECLARE_END, "", false, 2667, 3275, 2);
5.6784 + assertBlock(lstBlockFac.get(5).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exits", true, 2678, 2860, 0);
5.6785 + assertBlock(lstBlockFac.get(5).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "rec_ IN ( * FROM company_emp_tab)", true, 2887, 3270, 1);
5.6786 + assertBlock(lstBlockFac.get(5).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (check_exits%NOTFOUND)", true, 3024, 3232, 1);
5.6787 + assertBlock(lstBlockFac.get(5).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO company_person_tab(company_id,emp_no,master_employment,operator,rowversion)", true, 3061, 3218, 0);
5.6788 + assertBlock(lstBlockFac, 6, PlsqlBlockType.DECLARE_END, "", false, 3278, 3823, 2);
5.6789 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exits", true, 3289, 3415, 0);
5.6790 + assertBlock(lstBlockFac.get(6).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "rec_ IN ( * FROM person_info_tab)", true, 3446, 3818, 1);
5.6791 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (check_exits%NOTFOUND)", true, 3578, 3767, 1);
5.6792 + assertBlock(lstBlockFac.get(6).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO pers_tab(person_id,have_child,external_display_name,rowversion)", true, 3621, 3748, 0);
5.6793 + assertBlock(lstBlockFac, 7, PlsqlBlockType.BEGIN_END, "", false, 3826, 4088, 1);
5.6794 + assertBlock(lstBlockFac.get(7).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO employee_name_configurator_tab", true, 3832, 4082, 0);
5.6795 + assertBlock(lstBlockFac, 8, PlsqlBlockType.DECLARE_END, "", false, 4100, 5981, 5);
5.6796 + assertBlock(lstBlockFac.get(8).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 4142, 4145, 0);
5.6797 + assertBlock(lstBlockFac.get(8).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "COMMENT...", true, 4807, 4810, 0);
5.6798 + assertBlock(lstBlockFac.get(8).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 58601, Modified hardcoded date values to Database_SYS.get_first_calendar_date and get_last_calendar_date.", true, 5053, 5165, 0);
5.6799 + assertBlock(lstBlockFac.get(8).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "COMMENT...", true, 5390, 5393, 0);
5.6800 + assertBlock(lstBlockFac.get(8).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Bug 58601, Modified hardcoded date values to Database_SYS.get_first_calendar_date and get_last_calendar_date.", true, 5641, 5753, 0);
5.6801 + assertBlock(lstBlockFac, 9, PlsqlBlockType.DECLARE_END, "", false, 5993, 7846, 5);
5.6802 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 6035, 6038, 0);
5.6803 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "COMMENT...", true, 6700, 6703, 0);
5.6804 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Bug 58601, Modified hardcoded date values to Database_SYS.get_first_calendar_date and get_last_calendar_date.", true, 6934, 7046, 0);
5.6805 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "COMMENT...", true, 7271, 7274, 0);
5.6806 + assertBlock(lstBlockFac.get(9).getChildBlocks(), 4, PlsqlBlockType.COMMENT, "-- Bug 58601, Modified hardcoded date values to Database_SYS.get_first_calendar_date and get_last_calendar_date.", true, 7506, 7618, 0);
5.6807 + assertBlock(lstBlockFac, 10, PlsqlBlockType.DECLARE_END, "", false, 7858, 8561, 1);
5.6808 + assertBlock(lstBlockFac.get(10).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 7900, 7903, 0);
5.6809 + assertBlock(lstBlockFac, 11, PlsqlBlockType.DECLARE_END, "", false, 8574, 9270, 2);
5.6810 + assertBlock(lstBlockFac.get(11).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_comp_exist", true, 8585, 8757, 0);
5.6811 + assertBlock(lstBlockFac.get(11).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "get_company_ IN ( DISTINCT company_id FROM person_company_tab)", true, 8794, 9265, 1);
5.6812 + assertBlock(lstBlockFac.get(11).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (check_comp_exist%NOTFOUND)", true, 8983, 9219, 1);
5.6813 + assertBlock(lstBlockFac.get(11).getChildBlocks().get(1).getChildBlocks().get(0).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO EMPLOYEE_STATUS_TAB(company_id, seq_no, employee_status, active, status_obsolete, rowversion)", true, 9028, 9203, 0);
5.6814 + assertBlock(lstBlockFac, 12, PlsqlBlockType.BEGIN_END, "", false, 9273, 9978, 0);
5.6815 + assertBlock(lstBlockFac, 13, PlsqlBlockType.PROCEDURE_IMPL, "Temp_Person_Document_Default", false, 10084, 11481, 2);
5.6816 + assertBlock(lstBlockFac.get(13).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "existdoc", true, 10416, 10546, 0);
5.6817 + assertBlock(lstBlockFac.get(13).getChildBlocks(), 1, PlsqlBlockType.IF, "IF existdoc%NOTFOUND", true, 10635, 11428, 1);
5.6818 + assertBlock(lstBlockFac.get(13).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT", true, 10667, 11116, 0);
5.6819 + assertBlock(lstBlockFac, 14, PlsqlBlockType.DECLARE_END, "", false, 11484, 11672, 0);
5.6820 + assertBlock(lstBlockFac, 15, PlsqlBlockType.STATEMENT, "DROP PROCEDURE Temp_Person_Document_Default", false, 11722, 11765, 0);
5.6821 + assertBlock(lstBlockFac, 16, PlsqlBlockType.BEGIN_END, "", false, 11769, 11973, 0);
5.6822 + assertBlock(lstBlockFac, 17, PlsqlBlockType.DECLARE_END, "", false, 12190, 14461, 2);
5.6823 + assertBlock(lstBlockFac.get(17).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exits", true, 12201, 12307, 0);
5.6824 + assertBlock(lstBlockFac.get(17).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (check_exits%NOTFOUND)", true, 12475, 14428, 6);
5.6825 + assertBlock(lstBlockFac.get(17).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "SELECT MARITAL_STATUS_ID.NEXTVAL INTO married_seq_ FROM dual", true, 12512, 12572, 0);
5.6826 + assertBlock(lstBlockFac.get(17).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT", true, 12581, 12835, 0);
5.6827 + assertBlock(lstBlockFac.get(17).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.STATEMENT, "SELECT MARITAL_STATUS_ID.NEXTVAL INTO unmarried_seq_ FROM dual", true, 13113, 13175, 0);
5.6828 + assertBlock(lstBlockFac.get(17).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.STATEMENT, "INSERT", true, 13187, 13475, 0);
5.6829 + assertBlock(lstBlockFac.get(17).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.STATEMENT, "SELECT MARITAL_STATUS_ID.NEXTVAL INTO widower_seq_ FROM dual", true, 13775, 13835, 0);
5.6830 + assertBlock(lstBlockFac.get(17).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.STATEMENT, "INSERT", true, 13847, 14133, 0);
5.6831 + assertBlock(lstBlockFac, 18, PlsqlBlockType.BEGIN_END, "", false, 14497, 14715, 0);
5.6832 + assertBlock(lstBlockFac, 19, PlsqlBlockType.DECLARE_END, "", false, 14939, 16749, 2);
5.6833 + assertBlock(lstBlockFac.get(19).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exits", true, 14950, 15100, 0);
5.6834 + assertBlock(lstBlockFac.get(19).getChildBlocks(), 1, PlsqlBlockType.IF, "IF (check_exits%NOTFOUND)", true, 15185, 16719, 11);
5.6835 + assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 15226, 15355, 0);
5.6836 + assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 15362, 15482, 0);
5.6837 + assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 15490, 15633, 0);
5.6838 + assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 15640, 15767, 0);
5.6839 + assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 4, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 15776, 15904, 0);
5.6840 + assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 5, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 15911, 16035, 0);
5.6841 + assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 6, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 16044, 16170, 0);
5.6842 + assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 7, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 16177, 16297, 0);
5.6843 + assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 8, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 16306, 16430, 0);
5.6844 + assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 9, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 16438, 16566, 0);
5.6845 + assertBlock(lstBlockFac.get(19).getChildBlocks().get(1).getChildBlocks(), 10, PlsqlBlockType.STATEMENT, "INSERT INTO protected_information_tab(Protected_Field,Protected_Value,Rowversion)", true, 16574, 16701, 0);
5.6846 + assertBlock(lstBlockFac, 20, PlsqlBlockType.COMMENT, "-- Bug 73297, Start", false, 16761, 16779, 0);
5.6847 + assertBlock(lstBlockFac, 21, PlsqlBlockType.DECLARE_END, "", false, 17024, 18309, 2);
5.6848 + assertBlock(lstBlockFac.get(21).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "COMMENT...", true, 17066, 17069, 0);
5.6849 + assertBlock(lstBlockFac.get(21).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "COMMENT...", true, 17686, 17689, 0);
5.6850 + assertBlock(lstBlockFac, 22, PlsqlBlockType.COMMENT, "-- Bug 73297, End", false, 18320, 18336, 0);
5.6851 + } finally {
5.6852 + if (fileObject != null) {
5.6853 + fileObject.delete();
5.6854 + }
5.6855 + }
5.6856 + }
5.6857
5.6858 - @Test
5.6859 - public void testAdvanced16() throws IOException, BadLocationException {
5.6860 - System.out.println("Advanced test case 16");
5.6861 - FileObject fileObject = fs.getRoot().createData("sys_IalObjectSlave.api");
5.6862 - assertNotNull(fileObject);
5.6863 - try {
5.6864 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "sys_IalObjectSlave.api");
5.6865 - assertNotNull(blockFac);
5.6866 + @Test
5.6867 + public void testAdvanced16() throws IOException, BadLocationException {
5.6868 + System.out.println("Advanced test case 16");
5.6869 + FileObject fileObject = fs.getRoot().createData("sys_IalObjectSlave.api");
5.6870 + assertNotNull(fileObject);
5.6871 + try {
5.6872 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "sys_IalObjectSlave.api");
5.6873 + assertNotNull(blockFac);
5.6874
5.6875 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.6876 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.6877 // printHierarchy(lstBlockFac, "");
5.6878 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.6879 - assertTrue(lstBlockFac.size() == 3);
5.6880 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: IalObjectSlave", false, 0, 513, 0);
5.6881 - assertBlock(lstBlockFac, 1, PlsqlBlockType.PACKAGE, "IAL_OBJECT_SLAVE_API", false, 679, 2462, 11);
5.6882 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 814, 1519, 0);
5.6883 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 1, PlsqlBlockType.PROCEDURE_DEF, "Exec_Ddl_Statement", true, 1521, 1582, 0);
5.6884 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 2, PlsqlBlockType.PROCEDURE_DEF, "Enumerate_Column_Info", true, 1584, 1665, 0);
5.6885 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 3, PlsqlBlockType.PROCEDURE_DEF, "Enumerate_Index_Info", true, 1667, 1759, 0);
5.6886 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 4, PlsqlBlockType.PROCEDURE_DEF, "Add_Index", true, 1761, 1842, 0);
5.6887 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 5, PlsqlBlockType.PROCEDURE_DEF, "Remove_Index", true, 1844, 1928, 0);
5.6888 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_DEF, "Get_Object_Info", true, 1930, 2011, 0);
5.6889 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 7, PlsqlBlockType.FUNCTION_DEF, "Check_Index", true, 2013, 2111, 0);
5.6890 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_DEF, "Get_Table_Info", true, 2113, 2199, 0);
5.6891 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 2201, 2434, 0);
5.6892 - assertBlock(lstBlockFac.get(1).getChildBlocks(), 10, PlsqlBlockType.PROCEDURE_DEF, "Init", true, 2436, 2451, 0);
5.6893 - assertBlock(lstBlockFac, 2, PlsqlBlockType.COMMENT, "COMMENT...", false, 2477, 2554, 0);
5.6894 - } finally {
5.6895 - if (fileObject != null) {
5.6896 - fileObject.delete();
5.6897 - }
5.6898 - }
5.6899 - }
5.6900 + assertTrue(lstBlockFac.size() == 3);
5.6901 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: IalObjectSlave", false, 0, 513, 0);
5.6902 + assertBlock(lstBlockFac, 1, PlsqlBlockType.PACKAGE, "IAL_OBJECT_SLAVE_API", false, 679, 2462, 11);
5.6903 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 814, 1519, 0);
5.6904 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 1, PlsqlBlockType.PROCEDURE_DEF, "Exec_Ddl_Statement", true, 1521, 1582, 0);
5.6905 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 2, PlsqlBlockType.PROCEDURE_DEF, "Enumerate_Column_Info", true, 1584, 1665, 0);
5.6906 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 3, PlsqlBlockType.PROCEDURE_DEF, "Enumerate_Index_Info", true, 1667, 1759, 0);
5.6907 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 4, PlsqlBlockType.PROCEDURE_DEF, "Add_Index", true, 1761, 1842, 0);
5.6908 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 5, PlsqlBlockType.PROCEDURE_DEF, "Remove_Index", true, 1844, 1928, 0);
5.6909 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 6, PlsqlBlockType.PROCEDURE_DEF, "Get_Object_Info", true, 1930, 2011, 0);
5.6910 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 7, PlsqlBlockType.FUNCTION_DEF, "Check_Index", true, 2013, 2111, 0);
5.6911 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 8, PlsqlBlockType.PROCEDURE_DEF, "Get_Table_Info", true, 2113, 2199, 0);
5.6912 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 9, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 2201, 2434, 0);
5.6913 + assertBlock(lstBlockFac.get(1).getChildBlocks(), 10, PlsqlBlockType.PROCEDURE_DEF, "Init", true, 2436, 2451, 0);
5.6914 + assertBlock(lstBlockFac, 2, PlsqlBlockType.COMMENT, "COMMENT...", false, 2477, 2554, 0);
5.6915 + } finally {
5.6916 + if (fileObject != null) {
5.6917 + fileObject.delete();
5.6918 + }
5.6919 + }
5.6920 + }
5.6921
5.6922 - @Test
5.6923 - public void testAdvanced17() throws IOException, BadLocationException {
5.6924 - System.out.println("Advanced test case 17");
5.6925 - FileObject fileObject = fs.getRoot().createData("sys_IalObjectSlave.apy");
5.6926 - assertNotNull(fileObject);
5.6927 - try {
5.6928 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "sys_IalObjectSlave.apy");
5.6929 - assertNotNull(blockFac);
5.6930 + @Test
5.6931 + public void testAdvanced17() throws IOException, BadLocationException {
5.6932 + System.out.println("Advanced test case 17");
5.6933 + FileObject fileObject = fs.getRoot().createData("sys_IalObjectSlave.apy");
5.6934 + assertNotNull(fileObject);
5.6935 + try {
5.6936 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "sys_IalObjectSlave.apy");
5.6937 + assertNotNull(blockFac);
5.6938
5.6939 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.6940 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.6941 // printHierarchy(lstBlockFac, "");
5.6942 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.6943 - assertTrue(lstBlockFac.size() == 4);
5.6944 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: IalObjectSlave", false, 0, 1094, 0);
5.6945 - assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 1209, 1442, 0);
5.6946 - assertBlock(lstBlockFac, 2, PlsqlBlockType.PACKAGE_BODY, "IAL_OBJECT_SLAVE_API", false, 1494, 13066, 21);
5.6947 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 1547, 1780, 0);
5.6948 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_DEF, "Is_Locally_Managed___", true, 1782, 1859, 0);
5.6949 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_DEF, "Is_Column_Indexed___", true, 1861, 1968, 0);
5.6950 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_DEF, "Get_Column_Id___", true, 1970, 2073, 0);
5.6951 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 4, PlsqlBlockType.FUNCTION_DEF, "Table_Exist___", true, 2075, 2145, 0);
5.6952 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 2147, 2380, 0);
5.6953 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 6, PlsqlBlockType.FUNCTION_IMPL, "Is_Locally_Managed___", true, 2382, 2830, 1);
5.6954 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_extent_management", true, 2502, 2638, 0);
5.6955 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 7, PlsqlBlockType.FUNCTION_IMPL, "Is_Column_Indexed___", true, 2832, 3438, 3);
5.6956 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_index", true, 3075, 3196, 0);
5.6957 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(7).getChildBlocks(), 1, PlsqlBlockType.IF, "IF get_index%FOUND", true, 3283, 3330, 0);
5.6958 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(7).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 3334, 3374, 0);
5.6959 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 8, PlsqlBlockType.FUNCTION_IMPL, "Get_Column_Id___", true, 3440, 3824, 1);
5.6960 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_id", true, 3565, 3713, 0);
5.6961 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 9, PlsqlBlockType.FUNCTION_IMPL, "Table_Exist___", true, 3826, 4230, 2);
5.6962 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 3922, 4012, 0);
5.6963 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.IF, "IF exist_control%FOUND", true, 4081, 4167, 0);
5.6964 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 4232, 4937, 0);
5.6965 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 11, PlsqlBlockType.PROCEDURE_IMPL, "Exec_Ddl_Statement", true, 4939, 5143, 1);
5.6966 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Safe as package is in IAL Owner schema", true, 5012, 5091, 0);
5.6967 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_IMPL, "Enumerate_Column_Info", true, 5145, 6488, 3);
5.6968 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_column_info", true, 5389, 5531, 0);
5.6969 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks(), 1, PlsqlBlockType.IF, "IF Table_Exist___(table_name_)", true, 5541, 6017, 1);
5.6970 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "rec_ IN get_column_info(table_name_)", true, 5583, 6017, 0);
5.6971 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 6021, 6438, 1);
5.6972 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "rec_ IN get_column_info(view_name_)", true, 6032, 6427, 0);
5.6973 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Enumerate_Index_Info", true, 6490, 8726, 3);
5.6974 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_index_info", true, 6793, 6896, 0);
5.6975 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_columns", true, 6901, 7071, 0);
5.6976 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "ind_ IN get_index_info", true, 7081, 8672, 4);
5.6977 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (ind_.uniqueness = 'UNIQUE')", true, 7119, 7253, 0);
5.6978 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 7260, 7369, 0);
5.6979 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "col_ IN get_columns(ind_.index_name)", true, 7423, 7571, 0);
5.6980 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (col_list_ IS NOT NULL)", true, 7578, 8659, 3);
5.6981 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Statements only necessary if not locally managed tablespace", true, 7765, 7827, 0);
5.6982 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF NOT Is_Locally_Managed___(ind_.tablespace_name)", true, 7837, 8538, 0);
5.6983 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Add this index to the list for all indexes", true, 8548, 8593, 0);
5.6984 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_IMPL, "Add_Index", true, 8728, 9019, 0);
5.6985 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Remove_Index", true, 9021, 9272, 0);
5.6986 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Get_Object_Info", true, 9274, 10356, 3);
5.6987 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "find_objdate_column", true, 9469, 9615, 0);
5.6988 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 1, PlsqlBlockType.IF, "IF Table_Exist___(table_name_)", true, 9625, 10145, 4);
5.6989 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Add table name", true, 9667, 9684, 0);
5.6990 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Add info about objdate column", true, 9781, 9813, 0);
5.6991 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF find_objdate_column%FOUND", true, 9897, 10008, 0);
5.6992 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 10015, 10112, 0);
5.6993 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 10149, 10312, 1);
5.6994 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- If no table exist, then no objdate column will exist either...", true, 10160, 10225, 0);
5.6995 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 17, PlsqlBlockType.FUNCTION_IMPL, "Check_Index", true, 10358, 11197, 3);
5.6996 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_indexes", true, 10534, 10641, 0);
5.6997 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "find_index_column", true, 10646, 10816, 0);
5.6998 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "rec_ IN get_indexes", true, 10826, 11160, 1);
5.6999 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF find_index_column%FOUND", true, 10951, 11116, 0);
5.7000 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Get_Table_Info", true, 11199, 12544, 2);
5.7001 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_table_information", true, 11330, 11463, 0);
5.7002 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "tab_ IN get_table_information(name_ || '_TAB')", true, 11473, 12498, 4);
5.7003 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Initial statement", true, 11535, 11555, 0);
5.7004 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Statements only necessary if not locally managed tablespace", true, 11680, 11742, 0);
5.7005 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF NOT Is_Locally_Managed___(tab_.tablespace_name)", true, 11749, 12391, 0);
5.7006 - assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Final statement", true, 12398, 12416, 0);
5.7007 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 19, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 12546, 13010, 0);
5.7008 - assertBlock(lstBlockFac.get(2).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 13012, 13054, 0);
5.7009 - assertBlock(lstBlockFac, 3, PlsqlBlockType.COMMENT, "COMMENT...", false, 13081, 13158, 0);
5.7010 - } finally {
5.7011 - if (fileObject != null) {
5.7012 - fileObject.delete();
5.7013 - }
5.7014 - }
5.7015 - }
5.7016 + assertTrue(lstBlockFac.size() == 4);
5.7017 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- Logical unit: IalObjectSlave", false, 0, 1094, 0);
5.7018 + assertBlock(lstBlockFac, 1, PlsqlBlockType.COMMENT, "-- PACKAGES FOR METHODS ", false, 1209, 1442, 0);
5.7019 + assertBlock(lstBlockFac, 2, PlsqlBlockType.PACKAGE_BODY, "IAL_OBJECT_SLAVE_API", false, 1494, 13066, 21);
5.7020 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHOD DECLARATIONS ", true, 1547, 1780, 0);
5.7021 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 1, PlsqlBlockType.FUNCTION_DEF, "Is_Locally_Managed___", true, 1782, 1859, 0);
5.7022 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 2, PlsqlBlockType.FUNCTION_DEF, "Is_Column_Indexed___", true, 1861, 1968, 0);
5.7023 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 3, PlsqlBlockType.FUNCTION_DEF, "Get_Column_Id___", true, 1970, 2073, 0);
5.7024 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 4, PlsqlBlockType.FUNCTION_DEF, "Table_Exist___", true, 2075, 2145, 0);
5.7025 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- LU SPECIFIC IMPLEMENTATION METHODS ", true, 2147, 2380, 0);
5.7026 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 6, PlsqlBlockType.FUNCTION_IMPL, "Is_Locally_Managed___", true, 2382, 2830, 1);
5.7027 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(6).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_extent_management", true, 2502, 2638, 0);
5.7028 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 7, PlsqlBlockType.FUNCTION_IMPL, "Is_Column_Indexed___", true, 2832, 3438, 3);
5.7029 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(7).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_index", true, 3075, 3196, 0);
5.7030 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(7).getChildBlocks(), 1, PlsqlBlockType.IF, "IF get_index%FOUND", true, 3283, 3330, 0);
5.7031 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(7).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 3334, 3374, 0);
5.7032 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 8, PlsqlBlockType.FUNCTION_IMPL, "Get_Column_Id___", true, 3440, 3824, 1);
5.7033 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(8).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_id", true, 3565, 3713, 0);
5.7034 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 9, PlsqlBlockType.FUNCTION_IMPL, "Table_Exist___", true, 3826, 4230, 2);
5.7035 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(9).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "exist_control", true, 3922, 4012, 0);
5.7036 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(9).getChildBlocks(), 1, PlsqlBlockType.IF, "IF exist_control%FOUND", true, 4081, 4167, 0);
5.7037 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 10, PlsqlBlockType.COMMENT, "-- LU SPECIFIC PRIVATE METHODS ", true, 4232, 4937, 0);
5.7038 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 11, PlsqlBlockType.PROCEDURE_IMPL, "Exec_Ddl_Statement", true, 4939, 5143, 1);
5.7039 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(11).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Safe as package is in IAL Owner schema", true, 5012, 5091, 0);
5.7040 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 12, PlsqlBlockType.PROCEDURE_IMPL, "Enumerate_Column_Info", true, 5145, 6488, 3);
5.7041 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_column_info", true, 5389, 5531, 0);
5.7042 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks(), 1, PlsqlBlockType.IF, "IF Table_Exist___(table_name_)", true, 5541, 6017, 1);
5.7043 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "rec_ IN get_column_info(table_name_)", true, 5583, 6017, 0);
5.7044 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 6021, 6438, 1);
5.7045 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(12).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.FOR_LOOP, "rec_ IN get_column_info(view_name_)", true, 6032, 6427, 0);
5.7046 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 13, PlsqlBlockType.PROCEDURE_IMPL, "Enumerate_Index_Info", true, 6490, 8726, 3);
5.7047 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_index_info", true, 6793, 6896, 0);
5.7048 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "get_columns", true, 6901, 7071, 0);
5.7049 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "ind_ IN get_index_info", true, 7081, 8672, 4);
5.7050 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF (ind_.uniqueness = 'UNIQUE')", true, 7119, 7253, 0);
5.7051 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks(), 1, PlsqlBlockType.IF, "ELSE", true, 7260, 7369, 0);
5.7052 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "col_ IN get_columns(ind_.index_name)", true, 7423, 7571, 0);
5.7053 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks(), 3, PlsqlBlockType.IF, "IF (col_list_ IS NOT NULL)", true, 7578, 8659, 3);
5.7054 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Statements only necessary if not locally managed tablespace", true, 7765, 7827, 0);
5.7055 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 1, PlsqlBlockType.IF, "IF NOT Is_Locally_Managed___(ind_.tablespace_name)", true, 7837, 8538, 0);
5.7056 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(13).getChildBlocks().get(2).getChildBlocks().get(3).getChildBlocks(), 2, PlsqlBlockType.COMMENT, "-- Add this index to the list for all indexes", true, 8548, 8593, 0);
5.7057 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 14, PlsqlBlockType.PROCEDURE_IMPL, "Add_Index", true, 8728, 9019, 0);
5.7058 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 15, PlsqlBlockType.PROCEDURE_IMPL, "Remove_Index", true, 9021, 9272, 0);
5.7059 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 16, PlsqlBlockType.PROCEDURE_IMPL, "Get_Object_Info", true, 9274, 10356, 3);
5.7060 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "find_objdate_column", true, 9469, 9615, 0);
5.7061 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 1, PlsqlBlockType.IF, "IF Table_Exist___(table_name_)", true, 9625, 10145, 4);
5.7062 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Add table name", true, 9667, 9684, 0);
5.7063 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Add info about objdate column", true, 9781, 9813, 0);
5.7064 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF find_objdate_column%FOUND", true, 9897, 10008, 0);
5.7065 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.IF, "ELSE", true, 10015, 10112, 0);
5.7066 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks(), 2, PlsqlBlockType.IF, "ELSE", true, 10149, 10312, 1);
5.7067 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(16).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- If no table exist, then no objdate column will exist either...", true, 10160, 10225, 0);
5.7068 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 17, PlsqlBlockType.FUNCTION_IMPL, "Check_Index", true, 10358, 11197, 3);
5.7069 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_indexes", true, 10534, 10641, 0);
5.7070 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 1, PlsqlBlockType.CURSOR, "find_index_column", true, 10646, 10816, 0);
5.7071 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks(), 2, PlsqlBlockType.FOR_LOOP, "rec_ IN get_indexes", true, 10826, 11160, 1);
5.7072 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(17).getChildBlocks().get(2).getChildBlocks(), 0, PlsqlBlockType.IF, "IF find_index_column%FOUND", true, 10951, 11116, 0);
5.7073 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 18, PlsqlBlockType.PROCEDURE_IMPL, "Get_Table_Info", true, 11199, 12544, 2);
5.7074 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "get_table_information", true, 11330, 11463, 0);
5.7075 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks(), 1, PlsqlBlockType.FOR_LOOP, "tab_ IN get_table_information(name_ || '_TAB')", true, 11473, 12498, 4);
5.7076 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks(), 0, PlsqlBlockType.COMMENT, "-- Initial statement", true, 11535, 11555, 0);
5.7077 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Statements only necessary if not locally managed tablespace", true, 11680, 11742, 0);
5.7078 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks(), 2, PlsqlBlockType.IF, "IF NOT Is_Locally_Managed___(tab_.tablespace_name)", true, 11749, 12391, 0);
5.7079 + assertBlock(lstBlockFac.get(2).getChildBlocks().get(18).getChildBlocks().get(1).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Final statement", true, 12398, 12416, 0);
5.7080 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 19, PlsqlBlockType.COMMENT, "-- FOUNDATION1 METHODS ", true, 12546, 13010, 0);
5.7081 + assertBlock(lstBlockFac.get(2).getChildBlocks(), 20, PlsqlBlockType.PROCEDURE_IMPL, "Init", true, 13012, 13054, 0);
5.7082 + assertBlock(lstBlockFac, 3, PlsqlBlockType.COMMENT, "COMMENT...", false, 13081, 13158, 0);
5.7083 + } finally {
5.7084 + if (fileObject != null) {
5.7085 + fileObject.delete();
5.7086 + }
5.7087 + }
5.7088 + }
5.7089
5.7090 - @Test
5.7091 - public void testAdvanced18() throws IOException, BadLocationException {
5.7092 - System.out.println("Advanced test case 18");
5.7093 - FileObject fileObject = fs.getRoot().createData("txtser.ins");
5.7094 - assertNotNull(fileObject);
5.7095 - try {
5.7096 - PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "txtser.ins");
5.7097 - assertNotNull(blockFac);
5.7098 + @Test
5.7099 + public void testAdvanced18() throws IOException, BadLocationException {
5.7100 + System.out.println("Advanced test case 18");
5.7101 + FileObject fileObject = fs.getRoot().createData("txtser.ins");
5.7102 + assertNotNull(fileObject);
5.7103 + try {
5.7104 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "txtser.ins");
5.7105 + assertNotNull(blockFac);
5.7106
5.7107 - List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.7108 + List<PlsqlBlock> lstBlockFac = blockFac.getBlockHierarchy();
5.7109 // printHierarchy(lstBlockFac, "");
5.7110 // generateAssert(lstBlockFac, "lstBlockFac", "false");
5.7111 - assertTrue(lstBlockFac.size() == 4);
5.7112 - assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- File: txtser.ins", false, 0, 977, 0);
5.7113 - assertBlock(lstBlockFac, 1, PlsqlBlockType.JAVA_SOURCE, "", false, 995, 6190, 0);
5.7114 - assertBlock(lstBlockFac, 2, PlsqlBlockType.COMMENT, "-- Creation of Schedules", false, 6194, 6218, 0);
5.7115 - assertBlock(lstBlockFac, 3, PlsqlBlockType.DECLARE_END, "", false, 6289, 9815, 7);
5.7116 - assertBlock(lstBlockFac.get(3).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exist", true, 6654, 6753, 0);
5.7117 - assertBlock(lstBlockFac.get(3).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Sync Index", true, 6773, 6799, 0);
5.7118 - assertBlock(lstBlockFac.get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (check_exist%NOTFOUND)", true, 6999, 7666, 0);
5.7119 - assertBlock(lstBlockFac.get(3).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Optimize Index", true, 7698, 7728, 0);
5.7120 - assertBlock(lstBlockFac.get(3).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (check_exist%NOTFOUND)", true, 7971, 8639, 0);
5.7121 - assertBlock(lstBlockFac.get(3).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Delete old Search Results ", true, 8669, 8881, 0);
5.7122 - assertBlock(lstBlockFac.get(3).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (check_exist%NOTFOUND)", true, 9117, 9786, 0);
5.7123 - } finally {
5.7124 - if (fileObject != null) {
5.7125 - fileObject.delete();
5.7126 - }
5.7127 - }
5.7128 - }
5.7129 + assertTrue(lstBlockFac.size() == 4);
5.7130 + assertBlock(lstBlockFac, 0, PlsqlBlockType.COMMENT, "-- File: txtser.ins", false, 0, 977, 0);
5.7131 + assertBlock(lstBlockFac, 1, PlsqlBlockType.JAVA_SOURCE, "", false, 995, 6190, 0);
5.7132 + assertBlock(lstBlockFac, 2, PlsqlBlockType.COMMENT, "-- Creation of Schedules", false, 6194, 6218, 0);
5.7133 + assertBlock(lstBlockFac, 3, PlsqlBlockType.DECLARE_END, "", false, 6289, 9815, 7);
5.7134 + assertBlock(lstBlockFac.get(3).getChildBlocks(), 0, PlsqlBlockType.CURSOR, "check_exist", true, 6654, 6753, 0);
5.7135 + assertBlock(lstBlockFac.get(3).getChildBlocks(), 1, PlsqlBlockType.COMMENT, "-- Sync Index", true, 6773, 6799, 0);
5.7136 + assertBlock(lstBlockFac.get(3).getChildBlocks(), 2, PlsqlBlockType.IF, "IF (check_exist%NOTFOUND)", true, 6999, 7666, 0);
5.7137 + assertBlock(lstBlockFac.get(3).getChildBlocks(), 3, PlsqlBlockType.COMMENT, "-- Optimize Index", true, 7698, 7728, 0);
5.7138 + assertBlock(lstBlockFac.get(3).getChildBlocks(), 4, PlsqlBlockType.IF, "IF (check_exist%NOTFOUND)", true, 7971, 8639, 0);
5.7139 + assertBlock(lstBlockFac.get(3).getChildBlocks(), 5, PlsqlBlockType.COMMENT, "-- Delete old Search Results ", true, 8669, 8881, 0);
5.7140 + assertBlock(lstBlockFac.get(3).getChildBlocks(), 6, PlsqlBlockType.IF, "IF (check_exist%NOTFOUND)", true, 9117, 9786, 0);
5.7141 + } finally {
5.7142 + if (fileObject != null) {
5.7143 + fileObject.delete();
5.7144 + }
5.7145 + }
5.7146 + }
5.7147
5.7148 - private PlsqlBlockFactory loadAsTmpFile(FileObject fileObj, String fileName) throws IOException, BadLocationException {
5.7149 - InputStreamReader indexReader = null;
5.7150 - InputStream inputStream = null;
5.7151 - BufferedReader input = null;
5.7152 - String content = "";
5.7153 - inputStream = PlsqlBlockFactoryTest.class.getResourceAsStream(fileName);
5.7154 - indexReader = new InputStreamReader(inputStream);
5.7155 - input = new BufferedReader(indexReader);
5.7156 - while (input.ready()) {
5.7157 - content = content + input.readLine() + "\n";
5.7158 - }
5.7159 - input.close();
5.7160 - inputStream.close();
5.7161 - indexReader.close();
5.7162 - writeFile(content, fileObj);
5.7163 + private PlsqlBlockFactory loadAsTmpFile(FileObject fileObj, String fileName) throws IOException, BadLocationException {
5.7164 + InputStream inputStream = PlsqlBlockFactoryTest.class.getResourceAsStream(fileName);
5.7165 + InputStreamReader indexReader = new InputStreamReader(inputStream);
5.7166 + BufferedReader input = new BufferedReader(indexReader);
5.7167 + String content = "";
5.7168 + while (input.ready()) {
5.7169 + content = content + input.readLine() + "\n";
5.7170 + }
5.7171 + input.close();
5.7172 + inputStream.close();
5.7173 + indexReader.close();
5.7174 + writeFile(content, fileObj);
5.7175
5.7176 - DataObject dataObj = DataFolder.find(fileObj);
5.7177 - EditorCookie ec = dataObj.getCookie(EditorCookie.class);
5.7178 - assertNotNull(ec);
5.7179 - Task task = ec.prepareDocument();
5.7180 - task.waitFinished();
5.7181 - PlsqlBlockFactory blockFac = dataObj.getLookup().lookup(PlsqlBlockFactory.class);
5.7182 - assertNotNull(blockFac);
5.7183 - Document doc = ec.getDocument();
5.7184 - assertNotNull(doc);
5.7185 - doc.putProperty(Language.class, PlsqlTokenId.language());
5.7186 + DataObject dataObj = DataFolder.find(fileObj);
5.7187 + EditorCookie ec = dataObj.getLookup().lookup(EditorCookie.class);
5.7188 + assertNotNull(ec);
5.7189 + Task task = ec.prepareDocument();
5.7190 + task.waitFinished();
5.7191 + PlsqlBlockFactory blockFac = dataObj.getLookup().lookup(PlsqlBlockFactory.class);
5.7192 + assertNotNull(blockFac);
5.7193 + Document doc = ec.getDocument();
5.7194 + assertNotNull(doc);
5.7195 + doc.putProperty(Language.class, PlsqlTokenId.language());
5.7196
5.7197 - TokenHierarchy tokenHier = TokenHierarchy.get(doc);
5.7198 - assertNotNull(tokenHier);
5.7199 - TokenSequence<PlsqlTokenId> ts = tokenHier.tokenSequence(PlsqlTokenId.language());
5.7200 - assertNotNull(ts);
5.7201 - blockFac.initHierarchy(doc);
5.7202 + TokenHierarchy tokenHier = TokenHierarchy.get(doc);
5.7203 + assertNotNull(tokenHier);
5.7204 + TokenSequence<PlsqlTokenId> ts = tokenHier.tokenSequence(PlsqlTokenId.language());
5.7205 + assertNotNull(ts);
5.7206 + blockFac.initHierarchy(doc);
5.7207
5.7208 - return blockFac;
5.7209 - }
5.7210 + return blockFac;
5.7211 + }
5.7212
5.7213 - private void writeFile(String content, FileObject file) throws IOException {
5.7214 - OutputStream os = file.getOutputStream();
5.7215 - os.write(content.getBytes("UTF-8"));
5.7216 - os.close();
5.7217 - }
5.7218 + private void writeFile(String content, FileObject file) throws IOException {
5.7219 + OutputStream os = file.getOutputStream();
5.7220 + os.write(content.getBytes("UTF-8"));
5.7221 + os.close();
5.7222 + }
5.7223
5.7224 - private void printHierarchy(List<PlsqlBlock> lstBlockFac, String txt) {
5.7225 - for (PlsqlBlock block : lstBlockFac) {
5.7226 - System.out.println(txt + "Block Name:" + block.getName() + " Type:" + block.getType() + " Start:" + block.getStartOffset() + " End:" + block.getEndOffset() + " Children:" + block.getChildBlocks().size());
5.7227 - printHierarchy(block.getChildBlocks(), txt + "\t");
5.7228 - }
5.7229 - }
5.7230 + private void printHierarchy(List<PlsqlBlock> lstBlockFac, String txt) {
5.7231 + for (PlsqlBlock block : lstBlockFac) {
5.7232 + System.out.println(txt + "Block Name:" + block.getName() + " Type:" + block.getType() + " Start:" + block.getStartOffset() + " End:" + block.getEndOffset() + " Children:" + block.getChildBlocks().size());
5.7233 + printHierarchy(block.getChildBlocks(), txt + "\t");
5.7234 + }
5.7235 + }
5.7236
5.7237 - private void assertBlock(List<PlsqlBlock> lstBlock, int index, PlsqlBlockType type, String name, boolean parentExisting, int startOffset, int endOffset, int childCount) {
5.7238 - PlsqlBlock block = lstBlock.get(index);
5.7239 - assertNotNull(block);
5.7240 - assertTrue(block.getType() == type);
5.7241 - assertTrue(block.getName().equals(name));
5.7242 - assertTrue(block.getStartOffset() == startOffset);
5.7243 - assertTrue(block.getEndOffset() == endOffset);
5.7244 - assertTrue(block.getChildCount() == childCount);
5.7245 + private void assertBlock(List<PlsqlBlock> lstBlock, int index, PlsqlBlockType type, String name, boolean parentExisting, int startOffset, int endOffset, int childCount) {
5.7246 + PlsqlBlock block = lstBlock.get(index);
5.7247 + assertNotNull(block);
5.7248 + assertTrue(block.getType() == type);
5.7249 + assertTrue(block.getName().equals(name));
5.7250 + assertTrue(block.getStartOffset() == startOffset);
5.7251 + assertTrue(block.getEndOffset() == endOffset);
5.7252 + assertTrue(block.getChildCount() == childCount);
5.7253
5.7254 - if (parentExisting) {
5.7255 - assertNotNull(block.getParent());
5.7256 - } else {
5.7257 - assertNull(block.getParent());
5.7258 - }
5.7259 - }
5.7260 + if (parentExisting) {
5.7261 + assertNotNull(block.getParent());
5.7262 + } else {
5.7263 + assertNull(block.getParent());
5.7264 + }
5.7265 + }
5.7266
5.7267 - /**
5.7268 - * Method that generates the assert block statements
5.7269 - * @param lstBlockFac
5.7270 - * @param txt
5.7271 - * @param isParent
5.7272 - */
5.7273 - private void generateAssert(List<PlsqlBlock> lstBlockFac, String txt, String isParent) {
5.7274 - for (int i = 0; i < lstBlockFac.size(); i++) {
5.7275 - PlsqlBlock block = lstBlockFac.get(i);
5.7276 - System.out.println("assertBlock(" + txt + ", " + i + ", PlsqlBlockType." + block.getType() + ", \"" + toOneLine(block.getName())
5.7277 - + "\", " + isParent + ", " + block.getStartOffset() + ", " + block.getEndOffset() + ", " + block.getChildBlocks().size() + ");");
5.7278 - generateAssert(block.getChildBlocks(), txt + ".get(" + i + ").getChildBlocks()", "true");
5.7279 - }
5.7280 - }
5.7281 + /**
5.7282 + * Method that generates the assert block statements
5.7283 + *
5.7284 + * @param lstBlockFac
5.7285 + * @param txt
5.7286 + * @param isParent
5.7287 + */
5.7288 + private void generateAssert(List<PlsqlBlock> lstBlockFac, String txt, String isParent) {
5.7289 + for (int i = 0; i < lstBlockFac.size(); i++) {
5.7290 + PlsqlBlock block = lstBlockFac.get(i);
5.7291 + System.out.println("assertBlock(" + txt + ", " + i + ", PlsqlBlockType." + block.getType() + ", \"" + toOneLine(block.getName())
5.7292 + + "\", " + isParent + ", " + block.getStartOffset() + ", " + block.getEndOffset() + ", " + block.getChildBlocks().size() + ");");
5.7293 + generateAssert(block.getChildBlocks(), txt + ".get(" + i + ").getChildBlocks()", "true");
5.7294 + }
5.7295 + }
5.7296
5.7297 - private String toOneLine(String name) {
5.7298 - String tmp = "";
5.7299 - int index = name.indexOf("\n");
5.7300 - if (index == -1) {
5.7301 - return name;
5.7302 - }
5.7303 + private String toOneLine(String name) {
5.7304 + String tmp = "";
5.7305 + int index = name.indexOf("\n");
5.7306 + if (index == -1) {
5.7307 + return name;
5.7308 + }
5.7309
5.7310 - while (index != -1) {
5.7311 - tmp = tmp + name.substring(0, index) + "\\n";
5.7312 - if (name.length() > index + 1) {
5.7313 - name = name.substring(index + 1);
5.7314 - index = name.indexOf("\n");
5.7315 - if (index == -1) {
5.7316 - tmp = tmp + name + "\\n"; //\n is added here because we substring in the end
5.7317 + while (index != -1) {
5.7318 + tmp = tmp + name.substring(0, index) + "\\n";
5.7319 + if (name.length() > index + 1) {
5.7320 + name = name.substring(index + 1);
5.7321 + index = name.indexOf("\n");
5.7322 + if (index == -1) {
5.7323 + tmp = tmp + name + "\\n"; //\n is added here because we substring in the end
5.7324 + }
5.7325 + } else {
5.7326 + break;
5.7327 }
5.7328 - } else {
5.7329 - break;
5.7330 - }
5.7331 - }
5.7332 + }
5.7333
5.7334 - tmp = tmp.substring(0, tmp.length() - 2);
5.7335 - return tmp;
5.7336 - }
5.7337 + tmp = tmp.substring(0, tmp.length() - 2);
5.7338 + return tmp;
5.7339 + }
5.7340 +
5.7341 + @Test
5.7342 + public void testIsBlockAtOffsetOfType() throws IOException, BadLocationException {
5.7343 + System.out.println("testIsBlockAtOffsetOfType");
5.7344 + FileObject fileObject = fs.getRoot().createData("test.apy");
5.7345 + assertNotNull(fileObject);
5.7346 + try {
5.7347 + PlsqlBlockFactory blockFac = loadAsTmpFile(fileObject, "test.apy");
5.7348 + assertNotNull(blockFac);
5.7349 + assertTrue(blockFac.isBlockAtOffsetOfType(2134, PlsqlBlockType.COMMENT));
5.7350 + assertTrue(blockFac.isBlockAtOffsetOfType(100, PlsqlBlockType.COMMENT));
5.7351 + assertFalse(blockFac.isBlockAtOffsetOfType(1000, PlsqlBlockType.COMMENT));
5.7352 + assertTrue(blockFac.isBlockAtOffsetOfType(1000, PlsqlBlockType.VIEW));
5.7353 + assertTrue(blockFac.isBlockAtOffsetOfType(3538, PlsqlBlockType.PROCEDURE_IMPL));
5.7354 + } finally {
5.7355 + if (fileObject != null) {
5.7356 + fileObject.delete();
5.7357 + }
5.7358 + }
5.7359 + }
5.7360 }
6.1 --- a/PLSQL/Lexer/test/unit/src/org/netbeans/modules/plsql/lexer/PlsqlBlockTypeTest.java Tue Apr 02 13:40:25 2013 +0200
6.2 +++ b/PLSQL/Lexer/test/unit/src/org/netbeans/modules/plsql/lexer/PlsqlBlockTypeTest.java Thu Apr 04 16:00:59 2013 +0200
6.3 @@ -50,9 +50,6 @@
6.4 */
6.5 public class PlsqlBlockTypeTest {
6.6
6.7 - public PlsqlBlockTypeTest() {
6.8 - }
6.9 -
6.10 /**
6.11 * Test of valueOf method, of class PlsqlBlockType.
6.12 */