How to add a driver to add data source in Drools Business Central - datasource

I am using Drools Business Central first time and I am trying to add a data source in Drools but for this I need to add a driver. Can anyone please let me know how can I add a driver in drools, It is asking for Driver class name and I have no idea what it is.

For postgres class name is
org.postgresql.Driver

Related

Attach Screenshot in ALM Test Case step level using QuerySerge

can we execute Test Cases and attach screenshot in ALM/HPQC using QuerySerge Tool.
We are trying to implement automation and want to execute the Test case and attach screenshot using the tool. I am aware that we can connect the QC and QuerySerge. But not finding any useful info regarding my requirement of running the Test Case and attaching the screenshot. Please share any useful info or any links that will help me.
Thanks in advance.
Could you please be more specific on your query? Which version of QC are you using? Old HP or the new micro focus version?
On the MicroFocus site you have the complete userguide. For instance you can use different kind of scripting (SQL query or API).
I am using REST API and able to connect, update test results and attachment of whatever type.
Please check on the microfocus if you can find what is needed for your QuerySerge (not sure on that):
https://admhelp.microfocus.com/alm/en/15.5-15.5.1/online_help/Content/APIs/API_ALM_REST_Site_Admin.htm
Hope that help and clarify your question.
Have a nice day.

how to know the current activity of a workflow instance openerp

I am new to Odoo OpenERP, I am working on V8, currently I am trying to understand the workflow.
I am thinking if there is a way to know what is the current activity of a specific workflow instance.
I found the solution, I would like to share it with you.
you can check the database table, wkf_workitem, in this table you will find the act_id (activity id) field of the latest executed activity on the workflow instance (inst_id).
Hope this may help.
Feel free to contact me for any detail.

Attach Timestamp and SI_ID to a schedule report using SDK

I am scheduling a report using Java to a file location, I need to append %SI_ID% and Timestamp(%SI_STARTTIME%) to the name of Schedule report.
I am able to generate reports to the file location but I dont know how to apply placeholders on the schedule report name using Java SDK.
If someone has some working code or know how to do this please let me know.
Thanks
Got the solution... just attach %SI_ID% or %SI_STARTTIME% with the instance name and BO scheduler will replace with the correct values.

How to create Eclipse custom java-based new File Wizard based on code templates?

I'm just starting into some Eclipse (juno) plugin experimentation. A key part of the plugin I want to create needs to provide the user with the ability to create New java-based classes. These classes may be 1 of 3 different types.
Is it possible to do this using variation of the NewFileWizard that will use a template for each class type under the hood?
For example, when the user is in the new Custom project they created from the plugin, I'd like them to be able to do a right-click, "New" and be given 3 choices. Depending on the choice, the wizard will use a corrosponding code template - filling in class name, package name, etc., and then generating the file in the proper project folder.
Please let me know if you need any clarification on what I'm asking.
Is it possible to do this using variation of the NewFileWizard that will use a template for each class type under the hood?
Yes.
You're basically going to have to get the Eclipse source code for the New File Wizard, bring it into an Eclipse plug-in project, and modify it to meet your specific needs.

How do I access SQL from XPages

What is the process to access data from a SQL data source and have it fill in a list box control so that the user may select one of the values?
I have been given the name of the database and server, the login ID and password.
Code samples would really be appreciated as I have never done any SQL coding.
The latest Extension Library on OpenNTF ( extlib.openntf.org ) has a whole bunch of Relational Database extensions.
You'll need to get the JDBC drivers for whatever SQL server your going to be accessing and then take a look at the ExtLib demo application on how to create the JDBC connector from your application. Once the connector is in place you can then just the new controls in ExtLib to easily create a view pane etc.
You will also need more then the SQL server, username and password, you'll need to find out the different tables that you'll be accessing so that you can reference them from your Xpages application.
I've created a video showing JDBC access from XPages: http://www.youtube.com/watch?v=p6oRCsTsVqc
Wait for the book that will e released soon about the extlib. I know Jeremy hodge wrote the chapter so you might be able to get some info from him.
From an answer I gave earlier: you might want to check out the blog post announcing the JDBC support . It has an excellent video explanation and a link to a slide deck.
Also, take a look at Xpages101 lesson 61. It's paid-for content, but well worth it if you're serious about Xpages development.
If you want to combine Upgrade Pack 1 (UP1) with the Extension Library JDBC parts, then make sure to use the Extension Library that matches exactly the UP1 version. This is version 853-20111215 of the Extension Library. Then you can use the update site method to only deploy the experimental parts of the Extension Library (com.ibm.xsp.extlibx.feature_8.5.3.20111215-0914.jar).
For newer releases of Extension Library things might (will) have changed so that UP1 and Extension Library can not work together.
When UP2 is released, you need to remove the Extension Library package and deploy UP2. At that point in time UP2 might contain the JDBC support.
Roy,
As the previous posters put the ext library stuff will make it a little more "Drag and Drop", but you can use regular JDBC connection to get the data you want, Its pretty simple, but a lot more code than using Domino as a backend. You might want to look at this John Mackey blog post about doing a very similar thing...http://www.jmackey.net/groupwareinc/johnblog/johnblog.nsf/d6plinks/GROC-7G9GT4
Keep in mind that you need the actual ext. library for this. The upgrade pack does not contain the JDBC stuff.
Edit:
Keep in mind that if you don't need "LIVE" data access, and the information you want is fairly static you could always just use a lotusscript agent to pull the data down into Notes Documents. Run that once a day or whatever. No fancy XPages stuff needed. That's fairly common coding and practices with examples available.
Then just have the list box pull from the documents you brought down.