Eric D. Schabell

Tuesday, July 3, 2012

JBoss BRMS 5.3 running in OpenShift Origin on JBoss EAP 6

After some polish and shine, we now have for you to demo, play with or just take with you to your next customer visit a fully running JBoss BRMS instance running on the brand new JBoss EAP 6!

Note: this is a running instance with no SLA, might be down, might be up, I will try to keep it running full time. Just let me know if it goes down after a new OpenShift release (they happen almost every two weeks) and I will reset it for you.

This includes the knowledge artifact repository, the BRM component and the BPMN2 web designer. There is also a demo repository zip file provided so you can import a complete demo package that is designed to evaluate customers as previously posted. The login is user 'admin' and password 'brms'.

You can replicate this in your very own instance of OpenShift (called a gear) by following the README found in the project repository.

PS. A word of thanks to kbhattac who created the initial brms53 repo in his project space.

Here's how you do it:


Running on OpenShift

Create a jbosseap-6.0 application
rhc app create -a brms53 -t jbosseap-6.0
Add this upstream openshift-brms53 repo.
cd brms53
git remote add upstream -m master https://github.com/eschabell/openshift-brms53.git
git pull -s recursive -X theirs upstream master
Then push the repo upstream
git push
That's it, you can now checkout your application at:
http://brms53-$your_domain.rhcloud.com
But you are not done... there is a configuration step needed right now until we sort out the OpenShift variable needed to identify this gears among a few other things. See the following Configuration Notes to get this finished. We hope to automate these steps soon.
CONFIGURATION NOTES:
This project was fully researched and created initially by Kaushik Bhattacharya, give him a shout of thanks over at his project headquarters:https://github.com/kbhattac/brms53
Some steps:
1) You need to specify the jackrabbit repo location in components.xml of jboss-brms.war. It should be configured to use Openshift environment variables, on TODO list. For now you can find it in the UUID displayed in this command:
rhc app show -a brms5.3

Application Info
================
brms53
Framework: jbossas-7
Creation: 2012-06-24T08:44:30-04:00
UUID: [some-big-number-here]
Git URL: ssh://[some-big-number-here]@brms53-onthe.rhcloud.com/~/git/brms53.git/
Public URL: http://brms53-$your_domain.rhcloud.com/
Embedded: None
So in this case, need to add in the UUID number to the componets.xml.
2) You need modify the host ip in profiles/jbpm.xml in designer.war It should have the value of $OPENSHIFT_INTERNAL_IP, which you can find by ssh'ing into the instance, then running cmd 'export' to find variable. Put that value in the host attribute:
<!-- update host, ssh into instance, run cmd 'export', locate variable OPENSHIFT_INTERNAL_IP, fill in for host.  -->
<externalloadurl protocol="http" host="127.8.133.1:8080" subdomain="jboss-brms/org.drools.guvnor.Guvnor/oryxeditor" usr="admin" pwd="brms"/ -->
3) Due to memory issues, deploying jboss-brms.war and designer.war at the same time doesn't work. So by default, we have configured only jboss-brms.war to deploy automatically. After jboss-brms.war is deployed, you need to rename the file 'designer.war.dodeploy.delayed' to 'designer.war.dodeploy' to trigger the deployment of the designer app.
$ ssh [UUID]@brms53-$your_domain.rhcloud.com
$ mv brms53/jbosseap-6.0/standalone/deployments/designer.war.dodeploy.delayed  /
     brms53/jbosseap-6.0/standalone/deployments/designer.war.dodeploy
You should see the web designer war deploy if you are watching the logs:
$ rhc-tail-files -a brms53
That is really it now, once it starts up your BRMS 5.3 product is available at:
http://brms53-$your_domain.rhcloud.com/jboss-brms
Finally, you can import the demo application by importing the file import_demo_to_brms.zip into the Administration -> Import Export tab from the console.

Chinese translation available by Christina Lin.

Devoxx 2012 CFP - OpenShift State of the Union

I have been working and going to Devoxx for some years now. I have always had too much booth duty to want to submit a talk. This year I am not working it, so I wanted to submit a talk to Devoxx as a conference talk.

As I am working on a book in this area, I wanted to run some of the material past an audience. Hope we get the chance to go through this talk together.

OpenShift State of the Union
There are plenty of clouds and platform-as-a-services to choose from, but where to start?


Join us for an action-packed hour of power where we'll show you how to deploy an application written in the language of your choice - Java, Ruby, PHP, Perl or Python, with the framework of your choice - EE6, CDI, Seam, Spring or Rails to the OpenShift PaaS in just minutes. All without having to rewrite your app to get it to work as the cloud provider thinks it should work.


We will focus on examples that highlight what OpenShift has to offer, how to get started, & provide example projects that you can access now. Bring your laptop & follow along as we help you get started with Aerogears, Drools Planner, BRMS, Switchyard & much more. Real world projects put on display for you with code you can access live during this session.


If you want to learn how the OpenShift PaaS & investing an hour of your time can change everything you thought you knew about developing apps in the cloud, this session is for you!

Monday, July 2, 2012

Telling an Integration & BPM story at GOTO Aarhus 2012

I will get to tell an Integration & BPM product story at the GOTO Aarhus 2012 Conference in Denmark this coming October 1-3. I will be there with Mark Little, so make sure you drop by and chat with us at the stand.

I will update this post with details as I find out. Abstract soon to follow but I hope to cover some of the new Integration & BPM products that we have been releasing in a furious tempo of late. Things like JBoss BRMS, SOA-P and EDS-P.

Stay tuned!

Monday, June 25, 2012

OpenShift State of the Union, brought to you by JBoss (slides)

My talk this year at JUDCon 2012 in Boston was on the State of the Union with OpenShift in regards to JBoss projects.

The talk was well received and was approached the rest of the week by various customers, partner and developers that stated they did not know that there were so many JBoss projects available on OpenShift! I had to tell them that this was not a comprehensive overview and that there were many more that just did not fit my talk... the looks I got! ;-)

Here are the slides.


Tuesday, June 19, 2012

From zero to testing: setting up the JBoss BRMS BPM Rewards Approval Demo project (IDE)

The previously posted Rewards Approval Demo project was a run through the installed project. This short video will take you from zero code installed to running the project in your IDE test environment. It walks you through getting the project code from github.com, points out installation directions for JBoss Dev Studio, configures the BRMS BPM project, walks you through importing the project and finally running the project in your test environment.

No more excuses, you have to get started right now with your very own JBoss BRMS BPM project!

Monday, June 18, 2012

JBoss Enterprise BRMS - BPM Human Tasks made simple in the Rewards Approval Demo

Looking at the newest release of JBoss Business Rules Management System (BRMS) 5.3 we will now have access to the newest member of the JBoss BRMS family, jBPM as a Business Process Management (BPM) component.

Introduction
We wanted to put together some demo that would showcase the BPM features that have been made available to Enterprise developers. When the community project jBPM published a Rewards Demo highlighting the Human Task features, we wanted to take this across to our  JBoss Enterprise BRMS product as an example application.

This project will provide a fully installed and configured JBoss BRMS environment so that you can demo the project in all the available BPM components. It will provide you with a JBoss Developer Studio project complete with unit tests to allow you to easily demo the project in the JBoss Developer Studio IDE. It will provide a repository that you can import into your new JBoss BRMS Business Rules Manager component and demo the BPMN2 Web Designer, web based Business Central admin console and knowledge asset manager BRM tooling.

The process is a simple example that shows how to integrate Human Tasks and Custom Work Items in your  processes in JBoss BRMS. This article will get you up and running in minutes with a fully operational Rewards Approval Demo project.

Getting the project
The project is available on Github at https://github.com/eschabell/brms-rewards-demo. You can retrieve this with a simple 'git clone git://github.com/eschabell/brms-rewards-demo.git' after which you can follow the step-by-step guide found in the Quick Start Guide. This is provided in both ODT and PDF formats. It is all kicked off by the init.sh script you will find in the project, which is quite verbose and points you to the various steps you might need to take should you have chosen to not to read the provided Quick Start Guide.

Rewards Approval Demo project overview
Once you have the demo project installed, you can follow along in the Quick Start Guide to see the various components in action. You can also watch the following video as I run through the various functionality that is provided by JBoss BRMS (available on YouTube and Vimeo):



Feedback welcome
Please feel free to provide feedback and suggestions for this demo. We will take any and all pull requests that can improve the demo experience. We hope you enjoy this demo experience.

Setup help (video) for running this project in a JBoss Developers Studio testing environment is available.

Friday, June 15, 2012

JBoss Enterprise BRMS - BPM made simple in a Customer Evaluation Demo

Looking at the newest release of JBoss Business Rules Management System (BRMS) 5.3 we will now have access to the newest member of the JBoss BRMS family, jBPM as a Business Process Management (BPM) component.

Introduction
I wanted to put together some demo that would showcase the BPM features that have been made available to Enterprise developers. The project will provide a fully installed and configured JBoss BRMS environment so that you can demo the project in all the available BPM components. It will provide you with a JBoss Developer Studio project complete with unit tests to allow you to easily demo the project in the JBoss Developer Studio IDE. It will provide a repository that you can import into your new JBoss BRMS Business Rules Manager component and demo the BPMN2 Web Designer, web based Business Central admin console and knowledge asset manager BRM tooling.

The process is a simple example that shows how to integrate both Rules and Processes in JBoss BRMS. It does not make use of any Human Tasks, this is to be demonstrated in a different demo project. This article will get you up and running in minutes with a fully operational Customer Evaluation demo project.

Getting the project
The project is available on Github at https://github.com/eschabell/brms-customer-evaluation-demo. You can retrieve this with a simple 'git clone git://github.com/eschabell/brms-customer-evaluation-demo.git' after which you can follow the step-by-step guide found in the Quick Start Guide. This is provided in both ODT and PDF formats. It is all kicked off by the init.sh script you will find in the project, which is quite verbose and points you to the various steps you might need to take should you have chosen to not to read the provided Quick Start Guide.

Customer Evaluation Demo project overview
Once you have the demo project installed, you can follow along in the Quick Start Guide to see the various components in action. You can also watch the following video as I run through the various functionality that is provided by JBoss BRMS (available on YouTube and Vimeo):


Feedback welcome
Please feel free to provide feedback and suggestions for this demo. We will take any and all pull requests that can improve the demo experience. We hope you enjoy this demo experience.

NEW: Chinese translation of this article available - http://wei-meilin.blogspot.tw/2012/11/jboss-brms.html

Wednesday, June 6, 2012

OpenShift Primer Demo - Drools Planner rises to new heights in the Clouds

The following demo is an OpenShift World Premier for the Drools Planner Project.

I am a fan of the Drools Planner project and know the lead Geoffrey for some time now. I have always wondered why this project was not showcasing in an OpenShift demo and we got to chatting about it. I promised to provide the HowTo if he would push me a working WAR file, which he did that same night.

The demo is available live online here: http://droolsplanner-onthe.rhcloud.com/droolsplanner

Here is how to run the demo application from any OpenShift instance, which will highlight a vehicle routing (planning) problem that optimizes and refreshes your browser every few seconds. Note that the performance is a bit slower to resolve the problem than on a local machine, but that is just the limiting resources that have been allocated to my OpenShift instance.


Drools Planner on OpenShift Express



Installing the Drools Planner tool on OpenShift was never easier!

Running on OpenShift

Create a jbossas-7 application
rhc app create -a droolsplanner -t jbossas-7
Add this upstream openshift-droolsplanner repo
cd droolsplanner
git remote add upstream -m master git://github.com/eschabell/openshift-droolsplanner.git
git pull -s recursive -X theirs upstream master
# note that the git pull above can be used later to pull updates.
Then push the repo upstream
git push
That's it, you can now checkout your application at:
http://droolsplanner-$your_domain.rhcloud.com/droolsplanner


You too can now be a Planner in the Clouds in minutes! ;-)


Thursday, May 31, 2012

In transition to a new role as JBoss Technology Evangelist

Today was my last day as a JBoss Sr. Solution Architect for the Benelux Region. No, I am not leaving Red Hat... just transitioning into my next challenge, that of a JBoss Technology Evangelist.

This is a role working with the JBoss Middleware Business Unit. I will be helping promote the "integration products" that are the JBoss Business Rules Management System (BRMS), JBoss SOA Platform (SOA-P) and JBoss Enterprise Data Service Platform (EDS-P).

I consider this role to have a lot to do with story telling, bringing the value and pleasure of working with JBoss Open Source integration products to the masses. I look forward to sharing our story time together over the coming years.

Tuesday, May 29, 2012

JBoss Developer Studio 5 - how to setup SOA Tools (BRMS example)

Download update site archive
in Red Hat Customer Portal
Even though you might think this is self evident, I am always looking around again for the exact way to get started with JBoss Developers Studio (JBDS) and the latest greatest Business Rules Management System (BRMS) tooling.

This version needs the BRMS tooling from the Customer Portal's update site zipped archive. There is no online update site for these plugins.

For posterity, here is how I do it:
  1. Get the latest JBDS 5 from your local Customer Portal (CP).
  2. You are missing the BRMS tooling, so add the JBoss SOA Tools update site by downloading the archived update site at the Customer Portal (CP). Add it via "Help -> Install New Software..." and point to the update site zip file.
  3. Select "BRMS Tooling"
After install you are ready to rock with all the new tooling supporting Rules, Events and Processes (jBPM).
Looking to Automate your business?

Other options

In the past we have outlined the use of JBoss BPM and rules tooling for other versions of JBDS:

Tuesday, May 22, 2012

JBoss One Day Talk 2012 - JBoss BRMS Sneak Peek


I have been invited to talk at the JBoss One Day Talk 2012 in Munich, Germany on October 10th, 2012. I will be presenting the following session:

JBoss BRMS sneak peek, the future is now for your Business Processes 
A Business Process Management System (BPMS) offers you the capabilities to better manage and streamline your business processes. JBoss continues expanding its vision in this area by offering a lightweight process engine for executing business processes, combined with the necessary services and tooling to support business processes in their entire life-cycles. 

This allows not only developers but also business users to manage your business processes more efficiently. A lot has happened in the BPM area over the last few years, with the introduction of the BPMN 2.0 standard, the increasing interest in more dynamic and adaptive processes, integration with business rules and event processing, case management, etc. In this session, we will show you how JBoss BRMS leverages the jBPM project to tackle these challenge and give you an overview of its most important BPMS features. 

JBoss One Day Talk 2012 - OpenShift Primer, get your applications into the Cloud

I have been invited to talk at the JBoss One Day Talk 2012 in Munich, Germany on October 10th, 2012. I will be presenting the following session:

An OpenShift Primer - Get your Applications into the Cloud Today 
Whether your business is running on applications based on Java EE6, PHP or Ruby, the cloud is turning out to be the perfect environment for developing your business. 

There are plenty of clouds and platform-as-a-services to choose from, but where to start? Join us for an action-packed hour of power where we'll show you how to deploy your existing application written in the language of your choice - Java, Ruby, PHP, Perl or Python, with the framework of your choice - EE6, CDI, Seam, Spring, Zend, Cake, Rails, Sinatra, PerlDancer or Django to the OpenShift PaaS in just minutes. 

All this and without having to rewrite your app to get it to work the way the cloud provider thinks your app should work. You can have your business applications running in the cloud on OpenShift Express in seconds

If you want to learn about OpenShift PaaS and see how investing an hour of your time can change everything you thought you knew about putting your business applications in the cloud, this session is for you!

Tuesday, May 15, 2012

A tour of OpenShift - Rise Above the Cloud Hype

Early in 2012 I put together an article that was to be published in a Dutch Java magazine in Feb 2012 but the magazine company when bankrupt before that could happen. That left me with no choice but to push it out via my blog at the end of Jan 2012 (it is now a bit out dated as the OpenShift crew moves fast with their releases).

In the time since I posted this, I was approached by the nice people over at JAXenter.com who wanted to use this in their Cloud issue of the Java Tech Journal. I submitted it and you can find it in the April 2012 issue titled Above the Cloud Hype.

The same line was taken as in the initial article, but it was cleaned up and brings you up to speed on the latest OpenShift Origin project at the time of writing. You can find it on pages 19-22.

You need to provide an email address and you will then be sent the download link for the PDF.