on 07-02-2015 9:52 AM
Hi
I need to get all the Rules Project Names that are been created in my NWDS.
That names are to be displayed on the UI screen .
Please help me in getting all the Rules Project Name using BRM Edit API .
Thanks And Regards
Mani Gupta
Hello Mani,
Yes you can. Here is the code snippet for the same :
DefaultRulesEditAPIFactory apiInstance =
DefaultRulesEditAPIFactory.getInstance();
RulesEditAPI api = apiInstance.getAPI();
IProject project = api.getProject(<RULES_PROJECT_NAME>);
String[] rulesets = project.getRulesetNames();
---- Iterate over the rule name ----
project.getRuleset(<rulesetname>)
Hope this helps.
Regards,
Archana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Archana
The code snippet you mentioned works fine if we already know the Project Name.
But if we does not have an idea what will be the project name then this code doesnt work .
If it possible can you help me getting all the rules project name considering the user does not know what all rules project have been created earlier .
Regards
Mani Gupta
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.