In this demonstration, I’m
going to show how you can easily extend an existing
CA Gen application using OutSystems Agile Platform.
My basic business challenge
is to extend my current collaborator’s portal with
additional HR information that’s coming from
my CA General. So, the best way to
do is tell a story. If you look at this portal
here, what I’m going to do is effectively extend the basic
information about my employees with some details that are
coming from my HR application, which is built with CA Gen.
So let’s get started.
First, we’ll go look at
the CA Gen environment. So here’s my procedure
step and it’s re-person. And as you see I pass an
identifier and I simply export some basic information, title
and address, which is really what we’re looking for to
extend the existing portal. So, let’s quickly go generate
that, we’ll make sure our options are set correctly —
we going to generate this as standard job at EJB running
in a JFile server, so we’ll do that. That’s done.
And now what I want to do is
show you how you can leverage Jumar’s Project Phoenix Web
Servers generator technology to rapidly extend the Gen
generated procedure step with some — as a web service.
So, we’re going to run
this utility very quickly, let us log in here.
And what you’ll see is that
under the WS Gen sub-directory, we’ve actually generated some
additional artifacts for this model to allow us to
automatically deploy and test the web service, and, of
course, we’ve generated all the necessary WSDL to allow
any other application to consume this web service.
So there’s the WSDL.
Now what we want to do is go to
step three, we’ll shift gears and we’ll go look at the Agile
Platform, and show you how we can easily extend this
portal application with the Gen HR system.
So we’re importing that web
service, it was very simple. What you’ll notice is that
it brought in the basic input and output actions.
We’ve also got the entity type
information that was pulled in through the automatic
introspection. So now we’re going to
effectively extend the logic for the display employee
screen, that web application, and what we’re going to do is
do an additional query, but this query is going to
effectively take the identifier from my local database and pass
it to the web service. So we’re setting up
those basic parameters. You see it’s pretty much
point and click model base development.
There is the web service to get
the person and we drop that on. And now we’re going to go to
the gooey side of this web application and extend it.
So, we’re going to effectively
add a new pallet area. We’ll bind this to the
web service and the basic data information coming
from that web service. So we’ve already done that
read, if you remember. Now we’re going to just drag
and drop the basic information we want, which is effectively
the employee’s job title and address information.
We’ll do some basic formatting
so it looks a little prettier.
We can effectively call this
the address area, we can apply a style guide, and we thought
it would also be sort of interesting to show how easy
it is to bring in rich internet type components, in this case,
we’re going to use a Goggle map, so we’re bringing in the
Google map component from the Agile Platform’s repository.
We’ve made it available, so
we’ll just drag and drop that on, and then we’ll have to do
some basic parameter setting. Pretty standard stuff.
So we’re setting those
information parameters. We’re going to set the basic
marker — when we display someone’s address on the
map to the employee’s first name, just keep it simple.
And, of course, the actual
address information will be passed in through the structure
that came from the web service. So we’ve done that, now we’ve
done our mashup, and now we’re going to simply
publish the portal. So, regenerating all the code
using the Agile Platform One-Click Publishing capabilities,
it’s checking the model. And now if we go back
to the application and refresh, there you have it.
we’ve effectively extended our
basic web-based application with a Gen server capability
and mashed up a Google map to deliver a very, very rich
web-based experience, leveraging the best of CA Gen
and the Agile Platform.