Skip to content

Commit

Permalink
add copyrights, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitp committed Oct 18, 2016
1 parent 7baa55a commit 82c0d06
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ODM/HealthDemo/HealthApplication/application/Main.spl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// (C) Copyright IBM Corp. 2016 All Rights Reserved.

namespace application ;

use generated::HealthRules ;
Expand Down
16 changes: 16 additions & 0 deletions ODM/HealthDemo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
This sample provides an application that demonstrates the use of ODM rules for managing patient vital statistics. It is the sample that is used in the StreamsDev article located at: https://developer.ibm.com/streamsdev/docs/rules-based-processing-in-real-time-streaming-applications

The sample consists of 3 projects:

1) health-xom: This project contains the Java model that is used in the ODM rules. The Patient class within this project represents a patient and their vital stats.

2) HealthRules: This project contains the ODM rules that monitor the health of the patient and issue alerts when the stats are outside the "normal" range.

3) HealthApplication: This SPL project contains the main SPL application that uses the rules written in the HealthRules project against input patient data flowing through the system as tuples.

To see this sample in action, compile and submit the main application to a streams instance.

To compile the application, you need:
- Streams 4.2 - for the new com.ibm.streams.rulescompiler toolkit
- Streams Studio: For editing the rules located in the HealthRules project.

3 changes: 3 additions & 0 deletions ODM/HealthDemo/health-xom/src/demo/Patient.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* Copyright (C) 2016, International Business Machines Corporation */
/* All Rights Reserved */

package demo;

import java.util.ArrayList;
Expand Down

0 comments on commit 82c0d06

Please sign in to comment.