Running Emergency Service Drools app (Smart tasks application)

June 18, 2011 at 4:27 pm Leave a comment

Hey guys! Some days ago i cloned Smart Tasks project and also a practical app using it from @salaboy‘s Github, emergency-service-drools.

But let’s answer some questions first:

What’s Smart Tasks Project?

Salaboy can tell you the answer much better than me  here in this post .

What’s Emergency Service Drools app?

Again, Salaboy can teall you this here.

So what is this post for?

Okay, now you know what Smart Tasks is and you wanna run the app. This post will show you how.

  1. You need Maven. Install Maven (I’m using Maven 3 here). Also, you need git. All followed steps shuld be done using command line. One more important thing, your maven settings.xml should be like the one into this tutorial.
  2. Clone smart tasks project (here). then, go to it’s directory and run
     mvn clean install 

    . Let Maven download the hole internet for you.

  3.  Clone emergency-service-drools-app (here). Again, go to the app’s and run 
     mvn clean install -DskipTests=true 

    For more information, visit this page.
    4. Okay, now you need to run 3 maven tasks to start 3 services. First, go to run/ directory and then run

     mvn -Pcore 

    5. Open a new terminal tab at the same directory (emergency-service-drools-app/run) and then run

     mvn jetty:run-war -Ptasklists-ui-web -Djava.net.preferIPv4Stack=true -Djgroups.bind_addr=127.0.0.1  

    This will start the service on the embedded container.

    6. Open a thrid tab at the same directory and run

      mvn -Pworld-ui 

    . This will start a “world” for you.

    world

    world

    7. So, press space bar to generate an event. Then access http://localhost:8081

    Event generated in the world

    Event generated in the world

    emergency tasks - web

    emergency tasks - web

    8. Let us complete the first task of the business use case. Leave Operator selected the combo and press get list. This should report you a list ov events generated in the world.

    9. Click on the event on the list. This will take you to the operator’s view:

    10. Start the task by clicking on the start button.

    11. Then, fill the form with some information, for example:

    Emergency Type – Heart Attack

    Number of people – 1

    Gender – Male

    Age – 32

    12. Press the complete button.

    13. Check the world again.

    Done!

Entry filed under: Smart Tasks. Tags: .

Seam 3 – Iniciando! Resolvendo o problema da gem mysql2 no Mac OSX

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

June 2011
M T W T F S S
« May   Jul »
 12345
6789101112
13141516171819
20212223242526
27282930  

Most Recent Posts


%d bloggers like this: