Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-05 Thread Michael Anstis
Sure.

GIT is a version control system and is the repository implementation the
workbench has by default. Simply put much like any VCS you can push/commit
changes to it.

Whether the changes are made within the workbench (as would be the normal
case for most users) or whether you have a link to the VCS from another
tool; does not matter.

Within Eclipse you should be able to clone the GIT repository (think take
a copy for local use) behind the workbench (using the EGIT plugin). If you
use the SSH protocol (e.g. git clone ssh://admin@server/repository) you
will be able to push changes made in Eclipse back to the workbench (you
could use HTTP, but you won't be able to push changes back).

If this sounds like mumbo-jumbo, please read a bit more about GIT.

With kind regards,

Mike



On 4 March 2014 23:18, mattmadhavan mmadha...@facs.org wrote:

 Hi Manstis,
 Thank very much for your reply! Please bear with me if I repeat my self
 with
 my questions.

 This is the scenario!
 * We are moving away from a custom rule engine to Drools
 * We are converting the existing rules to .drl using a parser
 * I have an standard eclipse project which I am using to test the rules by
 loading bunch of facts (Stateless Session) from the Database. All looking
 good.

 Now I want to set up the Drools-workbench so that my analysts can take over
 and start adding new rules and test them.

 I am new to  drools/Guvnor/Workbench. But i have mastered the standard .DRL
 syntax, have written my own custom operator (Which I am going to share
 because its really useful for others too) and the project is working great.
 I am really strong with Maven but with Git kind'a newbie.

 I have gone thro' the docs and able to create a Project, import my model
 jars and related jars.  Now I want to import the DRL file from my eclipse
 project, set it up and test the individual rules.

 I do not really understand your second point!

 *2) In order to manipulate a project outside of the workbench (I.e. add
 your
 rule files) you will need to clone it with the ssh protocol. The workbench
 will display the url in the Administration perspective. *

 Could you please elaborate how do I suck the .drl file from my eclipse
 project to the Drools Wrokbench ?

 Thanks
 Matt'M




 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Drools-6-0-1-Workbench-How-to-import-existing-drl-files-tp4028495p4028508.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-05 Thread mattmadhavan
HI Mantis,
I think I am getting it! You pretty much want me to export clone my
existing maven project in Eclipse IDE to a GIT repo and suck it in to the
Drools WorkBench. 

I have limited experience in GIT. I can do it, 

But can you please confirm if this is what you meant?

Also one more question for you later! How do I keep them all in sync? I save
my projects in SVN and the workbench use Git. I guess its for another
discussion thread.

Thanks
Matt



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-6-0-1-Workbench-How-to-import-existing-drl-files-tp4028495p4028541.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-05 Thread Michael Anstis
Ok, if I understand correctly you keep your rules in SVN, maintain them in
Eclipse and want them in the workbench too?

If this is correct then things are a little more tricky.

As far as I recall Eclipse will not allow you to associate an Eclipse
project with multiple VCSs. At the moment I suspect you have it configured
to use SVN.

You can therefore fetch the latest from SVN, modify as needed and commit
back to SVN.

You have two choices to get the rules, from SVN, into the workbench:-

(1) Create a new (git) repository in the workbench, clone it to a folder
somewhere and then manually copy rules into the
/src/main/resources/whatever/package/needed folder before committing and
pushing back to the workbench (git) repository.

(2) Create a git repository in a folder somewhere, manually copy rules into
/src/main/resources/whatever/package/needed and add this git repository to
the workbench.

You should read the section in the User Guide about repositories. You will
also need to become familar with git.

You could alternatively choose to keep your source code in git (and not use
SVN) however I appreciate this may not be viable. Things would be more
simple for you.

Whilst you use two VCSs (SVN and GIT, as required by the workbench) there
is little you can do to avoid the manual process (although this could
obviously be scripted and automated).

Sent on the move
On 5 Mar 2014 16:53, mattmadhavan mmadha...@facs.org wrote:

 HI Mantis,
 I think I am getting it! You pretty much want me to export clone my
 existing maven project in Eclipse IDE to a GIT repo and suck it in to the
 Drools WorkBench.

 I have limited experience in GIT. I can do it,

 But can you please confirm if this is what you meant?

 Also one more question for you later! How do I keep them all in sync? I
 save
 my projects in SVN and the workbench use Git. I guess its for another
 discussion thread.

 Thanks
 Matt



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Drools-6-0-1-Workbench-How-to-import-existing-drl-files-tp4028495p4028541.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-05 Thread mattmadhavan
HI Mantist,
I think I am really confused now.

I have a working Drools 5.4 application (5.6 has issues with Custom
operators) in eclipse. I am able to Unit test my rules.

I want to use either Guvnor or the workbench so that my analysts can
author/test their rules. 

Can I import an existing Eclipse application into Guvnor/Workbench? 

If Git is my only option - do I need to instal a Git Server in my machine?

I just want a GUI environment for my analysts to write rules, test it.

What are my options?

Thanks
Matt




--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-6-0-1-Workbench-How-to-import-existing-drl-files-tp4028495p4028552.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-04 Thread Alexandre Porcelli
I understand import means that you already have a repository and a project 
setup inside Workbench, right?

If so.. the simplest solution would be using external ssh based git access to 
the repository, place files in the proper place, commit and them push. 
Workbench will be automatically notified of your new files and your project 
explorer will have all your new files.

Regards,
--- 
Alexandre Porcelli
Principal Software Engineer 
Red Hat Business Systems and Intelligence Group

On Mar 4, 2014, at 2:54 PM, mattmadhavan mmadha...@facs.org wrote:

 Hiell,
 I want to import existing drl files with about 60 rules to drools
 work-bench. Not sure how to do it. I went through the manula but am not
 clear how to do it.
 
 Any ideas please?
 
 Also can some one point me to some additional documentaion?
 
 Thanks
 Matt
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Drools-6-0-1-Workbench-How-to-import-existing-drl-files-tp4028495.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-04 Thread mattmadhavan
HI Alexandre,
Sorry to say I do not have anything set up. I have a .drl file with about 60
rules and couple of Jar file off my Eclipse.

I want to import the drl file and the jars into the work bench inside a
project. I want to set it up such that the analysts can write additional
rules and be able to document and test the rules within the workbench.

Any ideas please?

And have you had any luck in testing your own custom operators with in the
Work bench?

Thanks in advance!
Matt'M




--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-6-0-1-Workbench-How-to-import-existing-drl-files-tp4028495p4028497.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-04 Thread Alexandre Porcelli
Hi Matt,

 So you'll have to create a new repo and create a new project (check docs). If 
your dependencies are already mavenized, add those dependencies to your 
project, if not... you can upload your jars (check docs) and Workbench will 
prompt for GAV info for each lib.

 After that you can clone using ssh git, add your rules (that should be places 
in proper resource folder - in doubt checkout demo), and push your changes 
back. After that you'll have your project with your project setup as expected.

 (regarding custom operators, sorry I don't have such experience)

Regards,
--- 
Alexandre Porcelli
Principal Software Engineer 
Red Hat Business Systems and Intelligence Group

On Mar 4, 2014, at 3:42 PM, mattmadhavan mmadha...@facs.org wrote:

 HI Alexandre,
 Sorry to say I do not have anything set up. I have a .drl file with about 60
 rules and couple of Jar file off my Eclipse.
 
 I want to import the drl file and the jars into the work bench inside a
 project. I want to set it up such that the analysts can write additional
 rules and be able to document and test the rules within the workbench.
 
 Any ideas please?
 
 And have you had any luck in testing your own custom operators with in the
 Work bench?
 
 Thanks in advance!
 Matt'M
 
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Drools-6-0-1-Workbench-How-to-import-existing-drl-files-tp4028495p4028497.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-04 Thread mattmadhavan
Hi Alexandre,
Could you please elaborate on couple of points below or point me to the rt
documentation?

* What do you mean by *prompt for GAV info*  ?
* What do you mean by  *clone using ssh git, add your rules* ?
* Where can I get the demo?

Thanks
Matt'M





--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-6-0-1-Workbench-How-to-import-existing-drl-files-tp4028495p4028503.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-04 Thread Michael Anstis
1) When you upload a JAR to the workbench's maven repository you will be
prompted for Group ID, Artifact ID and version; as required by maven, if
the JAR does not already have a pom.

2) In order to manipulate a project outside of the workbench (I.e. add your
rule files) you will need to clone it with the ssh protocol. The workbench
will display the url in the Administration perspective.

3) If you downloaded the drools workbench distribution from the drools
download page it contains a zip with examples.

Drools workbench 6.0 is based upon maven standards and a git repository. If
you are unfamiliar with these please read up on them.

I would also urge you to run the workbench, read the user guide and
familiarise yourself with its operation.

Sent on the move
On 4 Mar 2014 22:24, mattmadhavan mmadha...@facs.org wrote:

 Hi Alexandre,
 Could you please elaborate on couple of points below or point me to the rt
 documentation?

 * What do you mean by *prompt for GAV info*  ?
 * What do you mean by  *clone using ssh git, add your rules* ?
 * Where can I get the demo?

 Thanks
 Matt'M





 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Drools-6-0-1-Workbench-How-to-import-existing-drl-files-tp4028495p4028503.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Drools 6.0.1 Workbench - How to import existing drl files?

2014-03-04 Thread mattmadhavan
Hi Manstis,
Thank very much for your reply! Please bear with me if I repeat my self with
my questions.

This is the scenario! 
* We are moving away from a custom rule engine to Drools
* We are converting the existing rules to .drl using a parser
* I have an standard eclipse project which I am using to test the rules by
loading bunch of facts (Stateless Session) from the Database. All looking
good.

Now I want to set up the Drools-workbench so that my analysts can take over
and start adding new rules and test them.

I am new to  drools/Guvnor/Workbench. But i have mastered the standard .DRL
syntax, have written my own custom operator (Which I am going to share
because its really useful for others too) and the project is working great.
I am really strong with Maven but with Git kind'a newbie.

I have gone thro' the docs and able to create a Project, import my model
jars and related jars.  Now I want to import the DRL file from my eclipse
project, set it up and test the individual rules.

I do not really understand your second point!

*2) In order to manipulate a project outside of the workbench (I.e. add your
rule files) you will need to clone it with the ssh protocol. The workbench
will display the url in the Administration perspective. *

Could you please elaborate how do I suck the .drl file from my eclipse
project to the Drools Wrokbench ?

Thanks
Matt'M




--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-6-0-1-Workbench-How-to-import-existing-drl-files-tp4028495p4028508.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users