Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Self generated elements #935

Open
textanalyticsman opened this issue Jul 6, 2021 · 6 comments
Open

Self generated elements #935

textanalyticsman opened this issue Jul 6, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request SOA

Comments

@textanalyticsman
Copy link

Hello,

I am working with BAM and BPM domains and after adjusting my models it works. However, I can see these elements.

image

These elements are not part of my model and I know I can delete it from them by using

    JMSServer:
        # TO DELETE JMS SERVERS CREATED BY DEFAULT
        '!BamReportCacheJmsServer_auto_1':
        '!BamReportCacheJmsServer_auto_2':
        '!BamPersistenceJmsServer_auto_1':
        '!BamPersistenceJmsServer_auto_2':
        '!BamAlertEngineJmsServer_auto_1':
        '!BamAlertEngineJmsServer_auto_2':

However, suffixes such as auto_[9,10,11,12,13] look totally random for my domain whose BAM cluster only has two servers.

Is there any way to delete elements by using wildcards or regular expressions? For example,

    JMSServer:
        # TO DELETE JMS SERVERS CREATED BY DEFAULT
        '!BamReportCacheJmsServer_auto_*':
        '!BamPersistenceJmsServer_auto_*':
        '!BamAlertEngineJmsServer_auto_*':

Best regards,
TAM

@CarolynRountree
Copy link
Contributor

To be reviewed for enhancement

@CarolynRountree CarolynRountree added the enhancement New feature or request label Jul 6, 2021
@textanalyticsman
Copy link
Author

Hello,

Here you can see an example of the element that are generated in my domain. I have two managed servers in a BamCluster and then I do not understand how these numbers are generated.

        '!BamCQServiceJmsFileStore_auto_1':
        '!BamCQServiceJmsFileStore_auto_7':
        '!BamCQServiceJmsFileStore_auto_8':        
        '!BamCQServiceJmsFileStore_auto_9':
        '!BamCQServiceJmsFileStore_auto_10':                
        '!BamCQServiceJmsFileStore_auto_11':
        '!BamCQServiceJmsFileStore_auto_12':                
        '!BamCQServiceJmsFileStore_auto_13':
        '!BamCQServiceJmsFileStore_auto_14':  

Best regards,
TAM

@robertpatrick robertpatrick self-assigned this Jan 3, 2022
@robertpatrick
Copy link
Member

@textanalyticsman Can you help me understand what you are doing with WDT and these BAM/BPM domains? For example, are you just using createDomain from a model that you are maintaining? Are you trying to use discoverDomain?

I am just trying to make sure I understand what you are trying to do so that I can scope the work needed. For example, the createDomain case would suggest that you need the wildcard syntax in the model itself whereas the discoverDomain case would require putting the wildcard syntax in the system-elements portion of the typedef file.

@robertpatrick
Copy link
Member

@textanalyticsman As it turns out, the system-elements portion of the typedef file already supports that due to the elements being treated as regular expressions. There are several tricky elements of implementing this wildcard syntax, such as how to detect when a name is a name versus a pattern since there is one (or more?) properties folder that supports names that end in an asterisk (see PR 563).

@textanalyticsman
Copy link
Author

Could you provide an example about using regular expressions?

@robertpatrick
Copy link
Member

@textanalyticsman The system-elements section of the typedef files support the use of regular expressions for filtering out "system components," which is primarily used for excluding model definitions of these components during discovery since these components are created by the WLST domain extension templates applied to a JRF domain. See https://github.com/oracle/weblogic-deploy-tooling/blob/main/core/src/main/typedefs/JRF.json for examples.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request SOA
Projects
None yet
Development

No branches or pull requests

4 participants