public Set<CLEANUP_CATEGORY> getCleanupCategories(boolean instanceSucceeded) { return processCleanupConfImpl.getCleanupCategories(instanceSucceeded); }
public Set<CLEANUP_CATEGORY> getCleanupCategories(boolean instanceSucceeded) { return processCleanupConfImpl.getCleanupCategories(instanceSucceeded); }
public Set<CLEANUP_CATEGORY> getCleanupCategories(boolean instanceSucceeded) { return processCleanupConfImpl.getCleanupCategories(instanceSucceeded); }
ProcessCleanupConfImpl(TDeployment.Process pinfo) { for( TCleanup cleanup : pinfo.getCleanupList() ) { if( cleanup.getOn() == TCleanup.On.SUCCESS || cleanup.getOn() == TCleanup.On.ALWAYS ) { processACleanup(successCategories, cleanup.getCategoryList()); } if( cleanup.getOn() == TCleanup.On.FAILURE || cleanup.getOn() == TCleanup.On.ALWAYS ) { processACleanup(failureCategories, cleanup.getCategoryList()); } } // validate configurations Set<CLEANUP_CATEGORY> categories = getCleanupCategories(true); if( categories.contains(CLEANUP_CATEGORY.INSTANCE) && !categories.containsAll(EnumSet.of(CLEANUP_CATEGORY.CORRELATIONS, CLEANUP_CATEGORY.VARIABLES))) { throw new ContextException("Cleanup configuration error: the instance category requires both the correlations and variables categories specified together!!!"); } categories = getCleanupCategories(false); if( categories.contains(CLEANUP_CATEGORY.INSTANCE) && !categories.containsAll(EnumSet.of(CLEANUP_CATEGORY.CORRELATIONS, CLEANUP_CATEGORY.VARIABLES))) { throw new ContextException("Cleanup configuration error: the instance category requires both the correlations and variables categories specified together!!!"); } }
public ProcessCleanupConfImpl(TDeployment.Process pinfo) { for( TCleanup cleanup : pinfo.getCleanupList() ) { if( cleanup.getOn() == TCleanup.On.SUCCESS || cleanup.getOn() == TCleanup.On.ALWAYS ) { processACleanup(successCategories, cleanup.getCategoryList()); } if( cleanup.getOn() == TCleanup.On.FAILURE || cleanup.getOn() == TCleanup.On.ALWAYS ) { processACleanup(failureCategories, cleanup.getCategoryList()); } } // validate configurations Set<CLEANUP_CATEGORY> categories = getCleanupCategories(true); if( categories.contains(CLEANUP_CATEGORY.INSTANCE) && !categories.containsAll(EnumSet.of(CLEANUP_CATEGORY.CORRELATIONS, CLEANUP_CATEGORY.VARIABLES))) { throw new ContextException("Cleanup configuration error: the instance category requires both the correlations and variables categories specified together!!!"); } categories = getCleanupCategories(false); if( categories.contains(CLEANUP_CATEGORY.INSTANCE) && !categories.containsAll(EnumSet.of(CLEANUP_CATEGORY.CORRELATIONS, CLEANUP_CATEGORY.VARIABLES))) { throw new ContextException("Cleanup configuration error: the instance category requires both the correlations and variables categories specified together!!!"); } }
public void setProcessCleanupConfImpl(CleanUpListType cleanUpList) { processCleanupConfImpl.getCleanupCategories(true).clear(); processCleanupConfImpl.getCleanupCategories(false).clear(); if (cleanUpList != null) { List<TCleanup.Category.Enum> sucessCategoryList = new ArrayList<TCleanup.Category.Enum>(); sucessCategoryList.add(TCleanup.Category.Enum.forString(categoryType1.getValue())); ProcessCleanupConfImpl.processACleanup(processCleanupConfImpl.getCleanupCategories(true), sucessCategoryList); failCategoryList.add(TCleanup.Category.Enum.forString(categoryType1.getValue())); ProcessCleanupConfImpl.processACleanup(processCleanupConfImpl.getCleanupCategories(false) , failCategoryList);