JBPM Workflow deployment - jboss

I am very new to JBPM and KieWorkbench ,infact from .net background.
I've installed JBPM 6 on my machine and have developed some guided rules and workflows using KieWorkbench.
On local I can easily create,run and Test workflows and Rules, because as I do ant start.demo all setup is done.
Moving forward now I've to deploy this on production environment and share the source code with team members.
Limitation is I cannot use Git.
Now I've 2 questions :-
1.How to deploy this on production?
2.How can I share code/project with my teammates.
Any help will be much appreciated.
Thanks in advance.

There was a similar question about using KIE Workbench in production environment. Look at my answer here. If you do not need GUI, I would recommend to use KIE Server for process execution. Unfortunately, it is not described in jBPM documentation but you can find it in the Drools one.
When it comes to sharing projects created in KIE Workbench, you can do one of these two things:
Clone a Git repository from KIE Workbench. It should be available on address git://localhost:9418/repository_name.
Deploy a project in KIE Workbench and find the artifact with your process and rule definitions in your ~/.m2/repository.
It may also be a good idea to have your development version of KIE Workbench deployed somewhere where others can access it and see your process definitions directly in this application.

Related

KIE Drool Workbench: Unable to get to workbench UI due to "Forbidden" screen

I have been trying follow the links and details available to set up a KIE Drools workbench for Drools like https://www.intertech.com/simple-setup-of-drools-kie-workbench-and-kie-server-in-one-wildfly-instance/.
From what I could analyze and read up KIE Drools Workbench will let me configure a rule engine through a front end and that Guvnor used to handle this aspect prior to workbench. These configured rules can be blended into my Spring Boot application to drive my loan application requirement. I hope that this understanding of usage of KIE Drools workbench is correct. Please confirm.
Below are the things I tried.
Set up KIE Workbench in Wildfly
Set up KIE Server in Wildfly
Getting them deployed I had to go through many issues which I was able to resolve like updating the jboss-deployment-structure.xml and executing using standalone-full.xml.
This is the UI I see now.
But for the workbench I am only seeing FORBIDDEN on screen.
Can you please suggest what can be done so that I can have the UI to create my custom rules.
Just thought of updating that I was able to resolve the issue I faced. The only thing to be done is to follow the link I shared word by word :) . The users were created as stated and the exact version of war files were used and I am now able to access the workbench. Now on I will be exploring the usage.

How to create KJar locally without using business central kie containers

Do we have any documentation / suggestion available on how to generate/build Redhat Drools rules Kjar locally without using Business Central Kie-Containers ?
Any advice/help would be greatly appreciated.
To build kjars locally, use the kie-maven-plugin
See https://docs.jboss.org/drools/release/latest/drools-docs/html_single/index.html#_buildingwithmaven

Can't see Process Management in KIE workbench menu

I am running KIE Drools workbench version 7.5.0 (kie-drools-wb-7.5.0.Final-wildfly10.war) on WildFly 10. On my workbench, I can create a new project and add a new Business Process. However, I can't access the Process Management page that most tutorials show because the menu doesn't display it at all. See the screenshot to get a clearer idea of what I am saying.
My KIE Workbench shows Projects and Dashboard under Design, Deployments and Execution Servers under DevOps and Business Dashboards under Track. Most tutorials show that this menu has much more than this, atleast a Process Management option.
So the problem is I can't see the Process Management option in my menu. Can somebody help me out here?
The Kie Workbench has a few variations, the one you're trying (kie-drools-wb) is target for authoring and deploying rules only. To have access the full set process related features, please try kie-wb instead: https://repository.jboss.org/nexus/content/groups/public-jboss/org/kie/kie-wb/7.5.0.Final/kie-wb-7.5.0.Final-wildfly10.war

How to deploy rules from Drools Guvnor

I want to execute Drools rules via REST or SOAP.
I'm already using Drools Guvnor as facts, rules designer/repository. And it works just fine, but I haven't found any clear guidance on how to deploy these rules for execution.
I would be grateful if anyone points to tutorial.
Is it achievable without Eclipse?
If you're looking to execute Drools rules via REST or SOAP, look into Drools Server.
http://www.plugtree.com/drools-server-overview/
In this setup, your rules are actually executed on the remote server.
If you just want to use the built rule package from Guvnor in a standalone Java application, there is plenty of information in the Guvnor documentation that will show you how to use the URL where guvnor exposes your compiled package. See Chapter 9 for Knowledge Agent configuration.
http://docs.jboss.org/drools/release/6.0.0.CR5/drools-guvnor-docs/pdf/drools-wb-docs.pdf

how can I set up a continuous deployment with TFSBuild for MVC app?

I have some questions around the best mechanism to deploy MVC web applications to different environments. Previously I used setup projects (.msi's) but as these have been discontinued in VS2012 I am looking to move to an alternative.
Let me explain my current setup. I currently have a CI setup using TFSBuild 2010 with Team Foundation Server for source control.
A number of developers work on their local machines and check in to the TFS Server. We regularly deploy to a single server dev environment and a load balanced qa environment with 2 servers. Our current process includes installing an msi which carries out some of the following custom actions:
brings current app offline with the app_offline.htm file
run in database scripts (from database project in the solution)
modifies web.config (different for each web server of qa)
labels the code
warmup each deployed file via http request
etc
This is the current process. Now I would like to make some changes. Firstly, I need alternative to msi's. From som research I believe that web deploy via IIS and using MsDeploy is the best alternative. I can use web config transforms for web config modifications. Is this correct and if so, could I get an outline of what I need to do?
Secondly I want to set up continuous delivery via TFSBuild, I have no idea how this may be achieved, would it be possible to get an outline of how it can be integrated in to my current setup? Rather than check in driven, I would like it to be user driven following check in. Also, would it be possible for this to also run in database scripts from a database project in the solution.
Finally, there is also a production environment, but I would like to manually deploy this - can my process also produce an artifact that I can manually install?
Vishal Joshi has some information on his blog that is reasonably good, http://vishaljoshi.blogspot.com/2010/11/team-build-web-deployment-web-deploy-vs.html. It does have the downside that your deployment password is include in the properties you pass to msbuild.
Syed Hashimi has also posted some information on this in another questions Team Build: Publish locally using MSDeploy.