How can we create dynamic drop down list in Drools(Kie server)? - drools

I need to work on drop down list in Kie server for Drools using "GUIDED DECISION TABLES".
where I can make drop down list which is constant. But, I need to read the data from backend of code as list of string and then the same I can display in drop down list. I tried multiple source but not found any source to make dynamic data in drop down.
we can have a look where I have created as drop down list ->
enter image description here

Have you looked in the documentation There is a part "External data sources in enumerations"?
'Applicant.region' : (new com.mycompany.DataHelper()).getListOfRegions()
Have a look you have what you need.
Of course, you have to package you java code in a maven artefact that you add as a dependency in your kjar drools maven artefact
Regards

Related

how to quickly locate which sheets/dashboards contain a field?

I am creating a data dictionary and I am supposed to track the location of any used field in a workbook. For example (superstore sample data), I need to specify which sheets/dashboards have the [sub-category] field.
My dataset has hundreds of measures/dimensions/calc fields, so it's incredibly time exhaustive to click into every single sheet/dashboard just to see if a field exists in there, so is there a quicker way to do this?
One robust, but not free, approach is to use Tableau's Data Catalog which is part of the Tableau Server Data Management Add-On
Another option is to build your own cross reference - You could start with Chris Gerrard's ruby libraries described in the article http://tableaufriction.blogspot.com/2018/09/documenting-dashboards-and-their.html

In Grafana, is there a way to add manual data?

Looking for a way to add manual data into Grafana. Want to display the results of a simple survey consisting of questions such as, "how old are you?", "how long have you worked here?" and so on. Summarizing the answers in grafana with graphs or similar would be tremendous.
Setting up a data source for this seems unnecessary, wondering if there is a plugin or something that allows me to do this? Not too familiar with the JSON behind the panels, but maybe it is possible through that aswell.
If anyone is wondering why I'm trying to do this in such a weird and unfitting way, it's for a school thing... :)
You can generate graph by manually putting data. To do so:
Go to configuration: click on Add data source
Select TestData DB, Change the name and click Save & Test
Create new dashboard: Add Panel -> Add query -> select data source to TestData
Add data to string input field and Alias (i.e. How old are you?)
Learn more about TestData
You can use CSV plugin for grafana. I use excel and then save the data as CSV.
Below is snapshot of the data where we are portraying our test results.

Change Properties of multiple diagrams in Enterprise Architect

I would like to change the properties of multiple diagrams together rather than clicking on them one by one. Does anyone know how this can be achieved?
You can use the scripting facility of Enterprise Architect to loop the diagrams you would like to change and update them.
See this section of the manual to get help.
There is a bunch of example scripts included with EA, either from the local scripts, or from the EAScriptLib MDG.
Another source of examples is my Github repository: https://github.com/GeertBellekens/Enterprise-Architect-VBScript-Library
You could write a SQL to manipulate your database. t_diagram.PDATA holds a long cryptic string where one part is ScalePI=0; (which is the default for no scaling). You can alter that to be ScalePI=1; (meaning scale to one page).
String manipulations vary from database to database. So you need to write your own which you can execute in a script using
Repository.Execute("UPDATE t_diagram ...")
Note that you should test this in a sandbox first since invalid SQLs can easily disrupt your whole repository.

how can i control jpa data source creation

I have eclipse link data sources created using weblogic server. I have 2 data sources one for read and another for write. I want to have default load the the read data source and in run time(i mean request) want to create the write data source.
is there any option like that. i have tried with 2 data sources not above said.
can any one tell me how to proceed.

m2eclipse resource filtering

I've having problems with resource filtering using m2eclipse Maven support in Eclipse. It seems that filtering only takes place on resources that have changed. This is fundamentally flawed because, if I have a file that references properties (e.g. ${my.property}, if the value of the property changes, the filtering will only be performed if the referencing file is also modified - if I only change the property value (in my pom.xml), the filtering is not applied to the files that that reference it.
So, if I make a change to a property in my pom file, the filtering is not applied. However, if I then go to the file that references that property (e.g. a Spring config file) then edit and save it, the filtering is applied.
I did read somewhere that:
"m2eclipse skips filtering if there were no resource changes during incremental build"
I'm using m2eclipse 0.10.x
Has anyone else come across this?
Thanks,
Andrew
Yes, this is mentioned in this lengthy discussion (the topic is not exactly about resources filtering but the current behavior is mentioned):
When resource filtering is enabled, m2eclipse will run specified goals ("process-resources resources:testResources" by default) to filter resources into project's output folder (target/classes or target-eclipse/classes) as part of Eclipse build. m2eclipse skips filtering if there were no resource changes during incremental build
And my understanding is that this was a design choice (see the last message from Eugene):
There was concern that resource filtering may affect performance in the IDE and not always needed (e.g. when filtering is only used to store some stuff about build into the result jar)
So, after a change in your POM, you should update the project configuration: right-click on your project then Maven > Update Project Configuration (and this will trigger process-resources).
To my knowledge, this is still the current status. There are many issues about resource filtering though, maybe check to see if you can find an similar one.
Yes, you are right.
You should open an issue in m2eclipse's bug tracker.