You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@griffin.apache.org by gu...@apache.org on 2017/06/01 06:55:53 UTC

[5/7] incubator-griffin git commit: Schedule2

http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/health/health.html
----------------------------------------------------------------------
diff --git a/ui/pages/health/health.html b/ui/pages/health/health.html
index ceb2d65..3a72a11 100644
--- a/ui/pages/health/health.html
+++ b/ui/pages/health/health.html
@@ -1,17 +1,18 @@
 <!--
-	Copyright (c) 2016 eBay Software Foundation.
-	Licensed under the Apache License, Version 2.0 (the "License");
-	you may not use this file except in compliance with the License.
-	You may obtain a copy of the License at
 
-	    http://www.apache.org/licenses/LICENSE-2.0
+  Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
 
-	Unless required by applicable law or agreed to in writing, software
-	distributed under the License is distributed on an "AS IS" BASIS,
-	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-	See the License for the specific language governing permissions and
-	limitations under the License.
- -->
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
 <div class="bs-component">
   <ul class="nav nav-tabs ">
     <li class="active">

http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/jobs/confirmation-ac.html
----------------------------------------------------------------------
diff --git a/ui/pages/jobs/confirmation-ac.html b/ui/pages/jobs/confirmation-ac.html
new file mode 100644
index 0000000..b254359
--- /dev/null
+++ b/ui/pages/jobs/confirmation-ac.html
@@ -0,0 +1,83 @@
+<!--
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+
+<div class="container-fluid" id="viewJobContent" style="overflow:auto;">
+    <div class="row">
+        <h5 class="over-title margin-bottom-15">Basic information</h5>
+    </div><!--//row-->
+    <div class="row">
+
+        <div  class="col-lg-12 col-md-12 col-sm-12">
+            <div id="viewrule-definition" class="viewrule-content">
+                <div class="row">
+                    <label class="col-md-4 col-lg-4 col-sm-4">
+                        Source Partition:
+                    </label>
+
+                    <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+                        {{sourcePat}}
+                    </div>
+                </div>
+
+                <div class="row">
+                    <label class="col-md-4 col-lg-4 col-sm-4">
+                        Target Partition:
+                    </label>
+
+                    <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+                        {{targetPat}}
+                    </div>
+                </div>
+
+                <div class="row">
+                    <label class="col-md-4 col-lg-4 col-sm-4">
+                        Measure Name:
+                    </label>
+
+                    <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+                        {{Measures[measure]}}
+                    </div>
+                </div>
+
+                <div class="row">
+                    <label for="systemSelector" class="col-md-4 col-lg-4 col-sm-4">
+                        Start after:
+                    </label>
+
+                    <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+                        {{jobStartTime}}
+                    </div>
+                </div>
+
+                <div class="row">
+                    <label class="col-md-4 col-lg-4 col-sm-4">
+                        Interval:
+                    </label>
+
+                    <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff"  >{{periodTime}}
+
+                    </div>
+                </div>
+            </div>
+        </div>
+
+
+    </div><!--//row-->
+
+    <br/>
+
+
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/jobs/createjob-ac.html
----------------------------------------------------------------------
diff --git a/ui/pages/jobs/createjob-ac.html b/ui/pages/jobs/createjob-ac.html
new file mode 100644
index 0000000..43242f5
--- /dev/null
+++ b/ui/pages/jobs/createjob-ac.html
@@ -0,0 +1,136 @@
+<!--
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+
+<div class="container-fluid">
+    <div class="row">
+        <h5 class="over-title margin-bottom-15">Create Job</h5>
+    </div><!--//row-->
+    <div class="row">
+        <form name="Form" id="form" novalidate>
+                <div  class="formStep" >
+                    <label class="stepDesc">Please setup the job required information</label>
+                    <div class="container-fluid">
+
+                        <!-- schema definition list -->
+                        <div class="col-md-12 col-lg-12 col-sm-12">
+                            <fieldset>
+                                <legend>
+                                    Required Information
+                                </legend>
+                                <div class="y-scrollable">
+                                    <div class="col-md-12 col-lg-12 col-sm-12">
+                                        <div class="form-group" ng-class="{'has-error':Form.ruleName.$dirty&&Form.ruleName.$invalid, 'has-success':Form.ruleName.$valid}">
+                                            <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                                                Source Partition<span class="symbol required"></span>:
+                                            </label>
+
+                                            <div class="col-md-10 col-lg-10 col-sm-10 ">
+                                                <input type="text" class="form-control" ng-model="sourcePat" name="ruleName" placeholder="Please input the source partition" required ng-pattern="'([0-9a-zA-Z\\_\\-])+'">
+                                                <span class="error text-small block " ng-if="Form.ruleName.$dirty && Form.ruleName.$error.required">Model Name is required</span>
+                                                <span class="error text-small block " ng-if="Form.ruleName.$dirty && Form.ruleName.$error.pattern">Only letter, number, "-" and "_" are allowed</span>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="col-md-12 col-lg-12 col-sm-12">
+                                        <div class="form-group">
+                                            <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                                                Target Partition:
+                                            </label>
+
+                                            <div class="col-md-10 col-lg-10 col-sm-10 ">
+                                                <input type="text" class="form-control" ng-model="targetPat" placeholder="Please input target partition of your model">
+                                            </div>
+                                        </div>
+                                    </div>
+
+                                    <div class="col-md-12 col-lg-12 col-sm-12">
+                                        <div class="form-group">
+                                            <label for="measureSelector" class="col-md-2 col-lg-2 col-sm-2 control-label">
+                                                Measure Name:
+                                            </label>
+
+                                            <div class="col-md-10 col-lg-10 col-sm-10 ">
+                                                <select id="measureSelector" class="form-control" ng-model="measure" ng-init="Measures[0]" required>
+                                                    <option ng-repeat="row in Measures" value="{{$index}}" >{{row}}</option>
+                                                </select>
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="col-md-12 col-lg-12 col-sm-12">
+                                        <div class="form-group">
+                                            <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                                                 Start After(s):
+                                            </label>
+
+                                            <div class="col-md-10 col-lg-10 col-sm-10 ">
+                                                <input type="text" class="form-control" ng-model="jobStartTime" >
+                                            </div>
+                                        </div>
+                                    </div>
+                                    <div class="col-md-12 col-lg-12 col-sm-12">
+                                        <div class="form-group">
+                                            <label for="systemSelector" class="col-md-2 col-lg-2 col-sm-2 control-label">
+                                                Interval:
+                                            </label>
+
+                                            <div class="col-md-10 col-lg-10 col-sm-10 ">
+                                                <input type="text" id="systemSelector" class="form-control" ng-model="periodTime"  required >
+                                            </div>
+                                        </div>
+                                    </div>
+                                </div>
+
+                                <div style="color:#b2c831">
+                                    <p>
+                                        <i class="fa fa-info-circle"></i> After submitted, please go to "<a class="bark-link" href="#/jobs">Jobs</a>" to check the job status
+                                    </p>
+                                </div>
+
+                            </fieldset>
+                        </div>
+
+                        <div class="form-group btn-container" >
+                            <button class="btn btn-primary btn-o back-step btn-wide pull-left" ng-click="form.prev(Form)">
+                                <i class="fa fa-arrow-circle-left"></i> Back
+                            </button>
+                            <button class="btn btn-primary btn-o next-step btn-wide pull-right" ng-click="form.submit(Form)">
+                                <!-- <button class="btn btn-primary btn-o next-step btn-wide pull-right" data-toggle="modal" data-target="#confirm"> -->
+                                Submit
+                            </button>
+                        </div>
+                    </div>
+                </div>
+
+                <div class="modal fade" id="confirm-job" role="dialog">
+                    <div class="modal-dialog modal-xg modal-lg">
+                        <div class="modal-content">
+                            <div class="modal-header">
+                                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+                                <h4 class="modal-title">Save the job with the below information?</h4>
+                            </div>
+                            <div class="modal-body">
+                                <ng-include src="'/pages/jobs/confirmation-ac.html'"/>
+                            </div>
+                            <div class="modal-footer">
+                                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
+                                <button type="button" class="btn btn-primary" ng-click="form.save()">Save</button>
+                            </div>
+                        </div>
+                    </div>
+                </div>
+        </form>
+    </div><!--//row-->
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/jobs/createjob0.html
----------------------------------------------------------------------
diff --git a/ui/pages/jobs/createjob0.html b/ui/pages/jobs/createjob0.html
new file mode 100644
index 0000000..ae5d510
--- /dev/null
+++ b/ui/pages/jobs/createjob0.html
@@ -0,0 +1,26 @@
+<!--
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>Title</title>
+</head>
+<body>
+
+</body>
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/jobs/delete-confirm.html
----------------------------------------------------------------------
diff --git a/ui/pages/jobs/delete-confirm.html b/ui/pages/jobs/delete-confirm.html
new file mode 100644
index 0000000..81d00da
--- /dev/null
+++ b/ui/pages/jobs/delete-confirm.html
@@ -0,0 +1,92 @@
+<!--
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+
+<div class="container-fluid" id="deleteContent" style="overflow:auto;">
+    <div class="row">
+        <h5 class="over-title margin-bottom-15">Basic information</h5>
+    </div><!--//row-->
+    <div class="row">
+
+        <div  class="col-lg-12 col-md-12 col-sm-12">
+            <div id="viewrule-definition" class="viewrule-content">
+                <div class="row">
+                    <label class="col-md-4 col-lg-4 col-sm-4">
+                        Job Name:
+                    </label>
+
+                    <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+                        {{deletedRow.jobName}}
+                    </div>
+                </div>
+                <div class="row">
+                    <label class="col-md-4 col-lg-4 col-sm-4">
+                        Source Partition:
+                    </label>
+
+                    <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+                        {{deletedRow.sourcePat}}
+                    </div>
+                </div>
+
+                <div class="row">
+                    <label class="col-md-4 col-lg-4 col-sm-4">
+                        Target Partition:
+                    </label>
+
+                    <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+                        {{deletedRow.targetPat}}
+                    </div>
+                </div>
+
+                <div class="row">
+                    <label for="systemSelector" class="col-md-4 col-lg-4 col-sm-4">
+                        Next Fire Time:
+                    </label>
+
+                    <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+                        {{deletedRow.nextFireTime}}
+                    </div>
+                </div>
+
+                <div class="row">
+                    <label class="col-md-4 col-lg-4 col-sm-4">
+                        Interval:
+                    </label>
+
+                    <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+                        {{deletedRow.periodTime}}
+                    </div>
+                </div>
+
+                <div class="row">
+                    <label class="col-md-4 col-lg-4 col-sm-4">
+                        Group:
+                    </label>
+
+                    <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+                        {{deletedRow.groupName}}
+                    </div>
+                </div>
+
+
+            </div>
+        </div>
+
+
+    </div><!--//row-->
+
+
+</div>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/jobs/jobs.html
----------------------------------------------------------------------
diff --git a/ui/pages/jobs/jobs.html b/ui/pages/jobs/jobs.html
new file mode 100644
index 0000000..4f5b6ba
--- /dev/null
+++ b/ui/pages/jobs/jobs.html
@@ -0,0 +1,90 @@
+<!--
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+
+<div >
+    <p>
+        <a class="btn btn-primary btn-o btn-wide" href="#/createjob-ac"><i class="fa fa-plus"></i> Create Job</a>
+    </p>
+
+    <div id="modelContainer">
+        <table st-table="displayed" st-pipe="paging" class="table table-striped">
+            <thead>
+            <tr style="background-color:#7D95CC">
+                <th st-ratio="15">Job Name</th>
+                <th st-ratio="15">Source Partition</th>
+                <th st-ratio="15">Target Partition</th>
+                <th st-ratio="15">Previous Fire Time</th>
+
+                <th st-ratio="20">Next Fire Time</th>
+                <th st-ratio="15">Trigger State</th>
+
+                <th st-ratio="5">Interval</th>
+                <th st-ratio="5">Action</th>
+            </tr>
+            </thead>
+            <tbody>
+            <tr ng-if="!rowCollection || rowCollection.length == 0">
+                <td colspan="7" style="text-align:center">No content!</td>
+            </tr>
+            <tr ng-repeat="row in displayed">
+                <td>{{row.jobName}}</a></td>
+                <td>{{row.sourcePat}}</a></td>
+                <td>{{row.targetPat|strmap:'modeltype'}}</td>
+                <td>{{(row.previousFireTime | date: 'short':'-0700') || 'N/A' }}</td>
+
+                <td>{{(row.nextFireTime | date: 'short':'-0700') || 'N/A' }}</td>
+                <td>{{row.triggerState}}</td>
+
+                <td>{{row.periodTime}}</td>
+                <td>
+                    &nbsp;
+                    <a ng-class="" href="" ng-click="remove(row)" title="delete" style="text-decoration:none">
+                        <i class="fa fa-trash-o"></i>
+                    </a>
+                    &nbsp;
+                    <!--<a href="#/viewrule/{{row.name}}" title="subscribe">-->
+                        <!--<i class="fa fa-eye"></i>-->
+                    <!--</a>-->
+                </td>
+            </tr>
+            </tbody>
+            <tfoot>
+            <tr>
+                <td colspan="8" class="text-right">
+                    <div  st-items-by-page="10" st-pagination="" st-displayed-pages="10"></div>
+                </td>
+            </tr>
+            </tfoot>
+        </table>
+    </div>
+    <div class="modal fade" id="deleteJobConfirmation" role="dialog">
+        <div class="modal-dialog modal-xg modal-lg">
+            <div class="modal-content">
+                <div class="modal-header">
+                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+                    <h4 class="modal-title">Delete the model with the below information?</h4>
+                </div>
+                <div class="modal-body">
+                    <ng-include src="'/pages/jobs/delete-confirm.html'"/>
+                </div>
+                <div class="modal-footer">
+                    <button type="button" class="btn btn-primary" ng-click="confirmDelete()">Yes</button>
+                    <button type="button" class="btn btn-default" data-dismiss="modal">No</button>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/measures/confirmation-ac.html
----------------------------------------------------------------------
diff --git a/ui/pages/measures/confirmation-ac.html b/ui/pages/measures/confirmation-ac.html
new file mode 100644
index 0000000..7684604
--- /dev/null
+++ b/ui/pages/measures/confirmation-ac.html
@@ -0,0 +1,119 @@
+<!--
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<div class="container-fluid" id="viewruleContent" style="overflow:auto;">
+  <div class="row">
+    <h5 class="over-title margin-bottom-15">Basic information</h5>
+  </div><!--//row-->
+  <div class="row">
+
+    <div  class="col-lg-12 col-md-12 col-sm-12">
+      <div id="viewrule-definition" class="viewrule-content">
+        <div class="row">
+          <label class="col-md-4 col-lg-4 col-sm-4">
+            Measure Name:
+          </label>
+
+          <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+            {{basic.name}}
+          </div>
+        </div>
+
+        <div class="row">
+          <label class="col-md-4 col-lg-4 col-sm-4">
+            Measure Description:
+          </label>
+
+          <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+            {{basic.desc}}
+          </div>
+        </div>
+
+        <div class="row">
+          <label class="col-md-4 col-lg-4 col-sm-4">
+            Measure Type:
+          </label>
+
+          <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+            {{basic.type|strmap:ruleTypes}}
+          </div>
+        </div>
+
+        <div class="row">
+          <label for="systemSelector" class="col-md-4 col-lg-4 col-sm-4">
+            Organization:
+          </label>
+
+          <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+            {{basic.system}}
+          </div>
+        </div>
+
+        <div class="row">
+          <label class="col-md-4 col-lg-4 col-sm-4">
+            DataAsset:
+          </label>
+
+          <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff"  >{{dataAsset}}
+
+          </div>
+        </div>
+
+        <div class="row">
+          <label class="col-md-4 col-lg-4 col-sm-4">
+            Owner:
+          </label>
+
+          <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+            {{basic.owner}}
+          </div>
+        </div>
+      </div>
+    </div>
+
+
+  </div><!--//row-->
+
+  <br/>
+  <h5 class="row">Mapping rules</h5>
+  <div class="row">
+
+    <p>{{rules}}</p>
+
+    <p>
+      <label style="color:#B2C831">Accuracy Calculation Formula as Below:</label>
+    </p>
+
+    <div class="col-md-12 col-lg-12 col-sm-12" style="color:#fff;font-size:16px;display: flex;align-items: center">
+
+      <div class="" style="text-align:right;display:block;float:left;width:20%;">
+        Accuracy Rate(%) =
+      </div>
+      <div class="" style="text-align:center;display:block;float:left;margin:0 10px 0 10px">
+        <div class="formula-text-up" style="border-bottom:1px solid;">
+          Total Count of Matched records between <span class="badge">{{form.data.mappings.length}}</span><span style="color:green;">{{currentNodeTarget.name}}</span> and <span class="badge">{{form.data.mappings.length}}</span> <span style="color:green;">{{currentNode.name}}</span>  fields
+        </div>
+        <div class="">
+          Total Count of records in <span style="color:green;font-weight:bold;">{{currentNode.parent[0].dbName}}.{{currentNodeTarget.name}}</span>
+        </div>
+      </div>
+      <div class="" style="text-align:left;display:block;float:left;width:10%;">
+        x 100%
+      </div>
+
+    </div>
+  </div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/measures/confirmation-an.html
----------------------------------------------------------------------
diff --git a/ui/pages/measures/confirmation-an.html b/ui/pages/measures/confirmation-an.html
new file mode 100644
index 0000000..98429fc
--- /dev/null
+++ b/ui/pages/measures/confirmation-an.html
@@ -0,0 +1,144 @@
+<!--
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<div class="container-fluid" id="viewruleContent" style="overflow:auto;">
+  <div class="row">
+    <h5 class="over-title margin-bottom-15">Basic information</h5>
+  </div><!--//row-->
+  <div class="row">
+
+    <div  class="col-lg-12 col-md-12 col-sm-12">
+        <div id="viewrule-definition" class="viewrule-content">
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Model Name:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.name}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Model Definition:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.desc}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Model Type:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.type|strmap:ruleTypes}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label for="systemSelector" class="col-md-4 col-lg-4 col-sm-4">
+              Organization:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.system|strmap:ruleSystems}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              DataAsset:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.basic.dataaset}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Threshold:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.basic.threshold}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Schedule Type:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.scheduleType|strmap:scheduleTypes}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Notification email:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.basic.email}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Owner:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.basic.owner}}
+            </div>
+        </div>
+      </div>
+    </div>
+
+
+  </div><!--//row-->
+
+  <br/>
+  <h5 class="row">Key information</h5>
+  <div class="row">
+    <div  class="col-lg-12 col-md-12 col-sm-12">
+        <div id="viewrule-definition" class="viewrule-content">
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Detection type:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.anType|strmap:anTypes}}
+            </div>
+          </div>
+          <div class="row-fluid">
+            <img ng-if="form.anType == 1" src="/img/yoy.png" style="max-height: 300px;width:100%"/>
+            <img ng-if="form.anType == 2" src="/img/bollinger.png" style="max-height: 400px;width:100%"/>
+          </div>
+
+
+        </div>
+    </div>
+
+  </div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/measures/confirmation-pu.html
----------------------------------------------------------------------
diff --git a/ui/pages/measures/confirmation-pu.html b/ui/pages/measures/confirmation-pu.html
new file mode 100644
index 0000000..17762cd
--- /dev/null
+++ b/ui/pages/measures/confirmation-pu.html
@@ -0,0 +1,158 @@
+<!--
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<div class="container-fluid" id="viewruleContent" style="overflow:auto;">
+  <div class="row">
+    <h5 class="over-title margin-bottom-15">Basic information</h5>
+  </div><!--//row-->
+  <div class="row">
+
+    <div  class="col-lg-12 col-md-12 col-sm-12">
+        <div id="viewrule-definition" class="viewrule-content">
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Model Name:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.name}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Model Definition:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.desc}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Model Type:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.type|strmap:ruleTypes}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label for="systemSelector" class="col-md-4 col-lg-4 col-sm-4">
+              Organization:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.system|strmap:ruleSystems}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              DataAsset:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.basic.dataaset}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Threshold:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.basic.threshold}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Schedule Type:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.scheduleType|strmap:scheduleTypes}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Notification email:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.basic.email}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Owner:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.basic.owner}}
+            </div>
+          </div>
+
+
+      </div>
+    </div>
+
+
+  </div><!--//row-->
+
+  <br/>
+  <h5 class="row">Extra information</h5>
+  <div class="row">
+    <div  class="col-lg-12 col-md-12 col-sm-12">
+        <div id="viewrule-definition" class="viewrule-content">
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Publish URL:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.extra.publishUrl}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Publish data format:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              <pre style="background-color:transparent;color:inherit;border:none">Method: POST
+Endpoint: {{form.publishUrl}}
+Body:
+{
+"metricName": "{{form.basic.name}}",
+"timestamp": 1463373496583,
+"value": 99.9
+}</pre>
+            </div>
+          </div>
+        </div>
+    </div>
+
+  </div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/measures/confirmation-va.html
----------------------------------------------------------------------
diff --git a/ui/pages/measures/confirmation-va.html b/ui/pages/measures/confirmation-va.html
new file mode 100644
index 0000000..f700e64
--- /dev/null
+++ b/ui/pages/measures/confirmation-va.html
@@ -0,0 +1,158 @@
+<!--
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<div class="container-fluid" id="viewruleContent" style="overflow:auto;">
+  <div class="row">
+    <h5 class="over-title margin-bottom-15">Basic information</h5>
+  </div><!--//row-->
+  <div class="row">
+
+    <div  class="col-lg-12 col-md-12 col-sm-12">
+        <div id="viewrule-definition" class="viewrule-content">
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Model Name:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.name}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Model Definition:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.desc}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Model Type:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.type|strmap:ruleTypes}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label for="systemSelector" class="col-md-4 col-lg-4 col-sm-4">
+              Organization:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.system|strmap:ruleSystems}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              DataAsset:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.basic.dataaset}}
+            </div>
+          </div>
+
+          <div class="row" ng-show="form.data.extra.vaType=='9'">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Regular Expression:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.basic.regex}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Threshold:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.basic.threshold}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Schedule Type:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.data.basic.scheduleType|strmap:scheduleTypes}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Notification email:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.basic.email}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Owner:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8" style="color: #fff">
+              {{form.data.basic.owner}}
+            </div>
+        </div>
+      </div>
+    </div>
+
+
+  </div><!--//row-->
+
+  <br/>
+  <h5 class="row">Key information</h5>
+  <div class="row">
+    <div  class="col-lg-12 col-md-12 col-sm-12">
+        <div id="viewrule-definition" class="viewrule-content">
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Validity type:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{form.vaType|strmap:vaTypes}}
+            </div>
+          </div>
+
+          <div class="row">
+            <label class="col-md-4 col-lg-4 col-sm-4">
+              Selected column:
+            </label>
+
+            <div class="col-md-8 col-lg-8 col-sm-8 " style="color: #fff">
+              {{currentNode.parent.name}}.{{currentNode.name}}.{{form.selection}}
+            </div>
+          </div>
+        </div>
+    </div>
+
+  </div>
+
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/measures/createrule-ac.html
----------------------------------------------------------------------
diff --git a/ui/pages/measures/createrule-ac.html b/ui/pages/measures/createrule-ac.html
new file mode 100644
index 0000000..1e278b6
--- /dev/null
+++ b/ui/pages/measures/createrule-ac.html
@@ -0,0 +1,436 @@
+<!--
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<div class="container-fluid">
+  <div class="row">
+    <h5 class="over-title margin-bottom-15">Create DQ Model</h5>
+  </div><!--//row-->
+  <div class="row">
+    <form name="Form" id="form" novalidate>
+      <div id="wizard" class="swMain" >
+        <ul>
+          <li ng-click="form.goTo(Form, 1)">
+            <a href="" ng-class="{'selected' : currentStep >= 1, 'done' : currentStep > 1}" class="selected" style="">
+              <div class="stepNumber">
+                1
+              </div>
+              <span class="stepDesc text-small"> Choose Source </span>
+            </a>
+          </li>
+          <li ng-click="form.goTo(Form, 2)">
+            <a href="" ng-class="{'selected' : currentStep >= 2, 'done' : currentStep > 2}" class="" style="">
+              <div class="stepNumber">
+                2
+              </div>
+              <span class="stepDesc text-small"> Choose Target </span>
+            </a>
+          </li>
+          <li ng-click="form.goTo(Form, 3)">
+            <a href="" ng-class="{'selected' : currentStep >= 3, 'done' : currentStep > 3}" class="" style="">
+              <div class="stepNumber">
+                3
+              </div>
+              <span class="stepDesc text-small"> Mapping Source and Target </span>
+            </a>
+          </li>
+          <li ng-click="form.goTo(Form, 4)">
+            <a href="" ng-class="{'selected' : currentStep >= 4, 'done' : currentStep > 4}">
+              <div class="stepNumber">
+                4
+              </div>
+              <span class="stepDesc text-small"> Configuration </span>
+            </a>
+          </li>
+        </ul>
+      </div>
+
+        <div id="step-1" ng-show="currentStep == 1" class="formStep" >
+          <label class="stepDesc">This step let you choose the single source of truth for data quality comparision with target, Apollo datasets are enabled, other platofrms are coming soon. Currently you can only select the attributes from one schema</label>
+          <div class="container-fluid">
+            <!-- select db tree -->
+            <div class="col-md-4 col-lg-4 col-sm-4">
+              <fieldset>
+                <legend>Please select schema</legend>
+                <div class="add-dataset" style="color:#b2c831">
+                  <a class="bark-link" href="#/createdataasset">Cannot find your DataAsset? Click here to add</a>
+                </div>
+                <div angular-treeview="true"
+                     tree-model="dbList"
+                     node-id="id"
+                     node-label="name"
+                     node-children="children"
+                     l1-icon="fa fa-database"
+                     l2-icon="fa fa-table"
+                     class="y-scrollable">
+                </div>
+
+              </fieldset>
+            </div>
+
+            <!-- schema definition list -->
+            <div class="col-md-8 col-lg-8 col-sm-8">
+              <fieldset>
+                <legend>
+                  Select attributes
+                </legend>
+                <div class="y-scrollable">
+                  <div>
+                    <label>View schema:</label> <i ng-show="currentNode.parent" style="color:#fff;font-weight: bold;">{{currentNode.parent.name}}.{{currentNode.name}}</i>
+                  </div>
+                  <div>
+                    <table st-table="schemaCollection" class="table table-striped">
+                      <thead>
+                      <tr style="background-color:#7D95CC">
+                        <th><input type="checkbox" ng-click="toggleAll()" ng-model="selectedAll"/></th>
+                        <th>Column Name</th>
+                        <th>Type</th>
+                        <th>Comment</th>
+                      </tr>
+                      </thead>
+                      <tbody>
+                      <tr ng-if="!schemaCollection || schemaCollection.length == 0">
+                        <td colspan="5" style="text-align:center" ><span class="highlight">Please select a schema from the left tree first</span></td>
+                      </tr>
+                      <tr ng-repeat="row in schemaCollection">
+                        <td><input type="checkbox"
+                                   value="{{currentNode.name + '.' + row.name}}"
+                                   ng-checked="selection.indexOf(currentNode.name + '.' + row.name) > -1"
+                                   ng-click="toggleSelection($event)"
+                                   ng-model="row.selected"
+                        />
+                        </td>
+                        <td>{{row.name}}</td>
+                        <td>{{row.type}}</td>
+                        <td>{{row.comment}}</td>
+                        <!--<td class="highlight">{{row.sample}}</td>-->
+                      </tr>
+                      </tbody>
+                    </table>
+                  </div>
+                </div>
+              </fieldset>
+            </div>
+
+            <div class="form-group btn-container">
+              <button class="btn btn-primary btn-o next-step btn-wide pull-right" ng-click="form.next(Form)">
+                Next <i class="fa fa-arrow-circle-right"></i>
+              </button>
+            </div>
+
+          </div>
+
+        </div>
+
+
+
+        <div id="step-2" ng-show="currentStep == 2" class="formStep" >
+          <label class="stepDesc">This step let you choose the target for data quality comparision with source, Apollo datasets are enabled, other platforms are coming soon</label>
+          <div class="container-fluid">
+            <!-- select db tree -->
+            <div class="col-md-4 col-lg-4 col-sm-4">
+              <fieldset>
+                <legend>Please select schema</legend>
+                <div angular-treeview="true"
+                     tree-model="dbListTarget"
+                     node-id="id"
+                     node-label="name"
+                     node-children="children"
+                     label-select="selectNodeLabelTarget"
+                     l1-icon="fa fa-database"
+                     l2-icon="fa fa-table"
+                     class="y-scrollable">
+                </div>
+
+              </fieldset>
+            </div>
+
+            <!-- schema definition list -->
+            <div class="col-md-8 col-lg-8 col-sm-8">
+              <fieldset>
+                <legend>
+                  Select attributes
+                </legend>
+                <div class="y-scrollable">
+                  <div>
+                    <label>View schema:</label> <i ng-show="currentNodeTarget.parent" style="color:#fff;font-weight: bold;">{{currentNodeTarget.parent.name}}.{{currentNodeTarget.name}}</i>
+                  </div>
+                  <div>
+                    <table st-table="schemaCollection" class="table table-striped">
+                      <thead>
+                      <tr style="background-color:#7D95CC">
+                        <th><input type="checkbox" ng-click="toggleAllTarget()" ng-model="selectedAllTarget"/></th>
+                        <th>Column Name</th>
+                        <th>Type</th>
+                        <th>Comment</th>
+
+                      </tr>
+                      </thead>
+                      <tbody>
+                      <tr ng-if="!schemaCollectionTarget || schemaCollectionTarget.length == 0">
+                        <td colspan="5" style="text-align:center" ><span class="highlight">Please select a schema from the left tree first</span></td>
+                      </tr>
+                      <tr ng-repeat="row in schemaCollectionTarget">
+                        <td><input type="checkbox"
+                                   value="{{currentNodeTarget.name + '.' + row.name}}"
+                                   ng-checked="selectionTarget.indexOf(currentNodeTarget.name + '.' + row.name) > -1"
+                                   ng-click="toggleSelectionTarget($event)"
+                                   ng-model="row.selected"
+                        />
+                        </td>
+                        <td>{{row.name}}</td>
+                        <td>{{row.type}}</td>
+                        <td>{{row.comment}}</td>
+                      </tr>
+                      </tbody>
+                    </table>
+                  </div>
+                </div>
+              </fieldset>
+            </div>
+
+            <div class="form-group btn-container" >
+              <button class="btn btn-primary btn-o back-step btn-wide pull-left" ng-click="form.prev(Form)">
+                <i class="fa fa-arrow-circle-left"></i> Back
+              </button>
+              <button class="btn btn-primary btn-o next-step btn-wide pull-right" ng-click="form.next(Form)">
+                Next <i class="fa fa-arrow-circle-right"></i>
+              </button>
+            </div>
+          </div>
+        </div>
+
+        <div id="step-3" ng-show="currentStep == 3" class="formStep" >
+          <label class="stepDesc">This step let you map the target data fields to source fields, you can choose the related fields from dropdown list of source</label>
+          <div class="container-fluid">
+
+            <!-- schema definition list -->
+            <div class="col-md-12 col-lg-12 col-sm-12">
+              <fieldset>
+                <legend>
+                  Map the fields
+                </legend>
+
+                <div class="y-scrollable">
+
+                  <div class="container col-md-12 col-lg-12 col-sm-12">
+                    <div style="color:#b2c831">
+                      <i class="fa fa-info-circle"></i> Please make sure to select a primary key in "PK?" column
+                    </div>
+                    <table class="table table-striped">
+                      <thead style="">
+                      <tr style="background-color:#7D95CC;font-size:20px">
+                        <th style="width:40%;">Target Fields</th>
+                        <th style="width:10%;text-align:center">Map To</th>
+                        <th style="width:40%;text-align:center">Source Fields</th>
+                      </tr>
+                      </thead>
+                      <tbody>
+                      <tr ng-repeat="item in selectionTarget" >
+                        <td>{{currentNodeTarget.parent[0].dbName}}.{{item}}</td>
+                        <td style="text-align:center;">
+                          <select ng-model="matches[$index]" class="form-control" ng-init="matches[$index]='=='" style="background:#00FFFF;font-weight:bold" id="mapRule">
+                            <option ng-repeat="func in matchFunctions" value="{{func}}">{{func}}</option>
+                          </select>
+                        </td>
+                        <td>
+                          <select ng-model="mappings[$index]" class="form-control">
+                            <option value="">---Please select---</option>
+                            <option ng-repeat="itemSrc in selection" value="{{itemSrc}}">{{currentNode.parent[0].dbName}}.{{itemSrc}}</option>
+
+                          </select>
+
+                        </td>
+
+                      </tr>
+
+                      </tbody>
+                    </table>
+                    <p>
+                      <label style="color:#B2C831">Accuracy Calculation Formula as Below:</label>
+                    </p>
+
+                    <div class="col-md-12 col-lg-12 col-sm-12" style="color:#fff;font-size:16px;display: flex;align-items: center">
+
+                      <div class="" style="text-align:right;display:block;float:left;width:20%;">
+                        Accuracy Rate(%) =
+                      </div>
+                      <div class="" style="text-align:center;display:block;float:left;margin:0 10px 0 10px">
+                        <div class="formula-text-up" style="border-bottom:1px solid;">
+                          Total Count of Matched records between <span class="badge">{{selectionTarget.length}}</span> <span style="color:green;">{{currentNodeTarget.name}}</span>  and <span class="badge">{{mappings.length}}</span> <span style="color:green;">{{currentNode.name}}</span>  fields
+                        </div>
+                        <div class="">
+                          Total Count of records in <span style="color:green;font-weight:bold;">{{currentNode.parent[0].dbName}}.{{currentNode.name}}</span>
+                        </div>
+                      </div>
+                      <div class="" style="text-align:left;display:block;float:left;width:10%;">
+                        x 100%
+                      </div>
+
+                    </div>
+
+                  </div>
+
+                </div>
+              </fieldset>
+            </div>
+
+            <div class="form-group btn-container" >
+              <button class="btn btn-primary btn-o back-step btn-wide pull-left" ng-click="form.prev(Form)">
+                <i class="fa fa-arrow-circle-left"></i> Back
+              </button>
+              <button class="btn btn-primary btn-o next-step btn-wide pull-right" ng-click="form.next(Form)">
+                Next <i class="fa fa-arrow-circle-right"></i>
+              </button>
+            </div>
+          </div>
+        </div>
+
+        <div id="step-4" ng-show="currentStep == 4" class="formStep" >
+          <label class="stepDesc">Please setup the model required information</label>
+          <div class="container-fluid">
+
+            <!-- schema definition list -->
+            <div class="col-md-12 col-lg-12 col-sm-12">
+              <fieldset>
+                <legend>
+                  Required Information
+                </legend>
+                <div class="y-scrollable">
+                  <div class="col-md-12 col-lg-12 col-sm-12">
+                    <div class="form-group" ng-class="{'has-error':Form.ruleName.$dirty&&Form.ruleName.$invalid, 'has-success':Form.ruleName.$valid}">
+                      <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                        Measure Name<span class="symbol required"></span>:
+                      </label>
+
+                      <div class="col-md-10 col-lg-10 col-sm-10 ">
+                        <input type="text" class="form-control" ng-model="basic.name" name="ruleName" placeholder="Please input the measure name" required ng-pattern="'([0-9a-zA-Z\\_\\-])+'">
+                        <span class="error text-small block " ng-if="Form.ruleName.$dirty && Form.ruleName.$error.required">Model Name is required</span>
+                        <span class="error text-small block " ng-if="Form.ruleName.$dirty && Form.ruleName.$error.pattern">Only letter, number, "-" and "_" are allowed</span>
+                      </div>
+                    </div>
+                  </div>
+                  <div class="col-md-12 col-lg-12 col-sm-12">
+                    <div class="form-group">
+                      <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                        Measure Description:
+                      </label>
+
+                      <div class="col-md-10 col-lg-10 col-sm-10 ">
+                        <input type="text" class="form-control" ng-model="basic.desc" placeholder="Please input detail description of your model">
+                      </div>
+                    </div>
+                  </div>
+                  <div class="col-md-12 col-lg-12 col-sm-12">
+                    <div class="form-group">
+                      <label for="typeSelector" class="col-md-2 col-lg-2 col-sm-2 control-label">
+                        Measure Type:
+                      </label>
+
+                      <div class="col-md-10 col-lg-10 col-sm-10 ">
+                        <select id="typeSelector" class="form-control" ng-model="basic.type" ng-init="basic.type='0'" disabled required>
+                          <option ng-repeat="row in ruleTypes" value="{{$index}}" >{{row}}</option>
+                        </select>
+                      </div>
+                    </div>
+                  </div>
+                  <div class="col-md-12 col-lg-12 col-sm-12">
+                    <div class="form-group">
+                      <label for="systemSelector" class="col-md-2 col-lg-2 col-sm-2 control-label">
+                        Organization:
+                      </label>
+
+                      <!--<div class="col-md-10 col-lg-10 col-sm-10 ">-->
+                      <!--<select id="systemSelector" class="form-control" ng-model="form.basic.system">-->
+                      <!--<option ng-repeat="row in ruleSystems" value="{{$index}}" >{{row}}</option>-->
+                      <!--</select>-->
+
+
+                      <!--</div>-->
+                      <div class="col-md-10 col-lg-10 col-sm-10 ">
+                        <input type="text" id="systemSelector" class="form-control" ng-model="basic.system"  required ng-pattern="'([0-9a-zA-Z\\_\\-])+'">
+
+                      </div>
+                    </div>
+                  </div>
+                  <div class="col-md-12 col-lg-12 col-sm-12">
+                    <div class="form-group">
+                      <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                        DataAsset:
+                      </label>
+
+                      <div class="col-md-10 col-lg-10 col-sm-10">
+                        <input type="text" class="form-control" ng-model="dataAsset" disabled>
+                      </div>
+                    </div>
+                  </div>
+
+                  <div class="col-md-12 col-lg-12 col-sm-12">
+                    <div class="form-group">
+                      <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                        Owner:
+                      </label>
+
+                      <div class="col-md-10 col-lg-10 col-sm-10">
+                        <input type="text"  class="form-control" ng-model="basic.owner" ng-init="basic.owner=ntAccount" disabled>
+                      </div>
+                    </div>
+                  </div>
+                </div>
+
+                <!-- <div style="color:#fff">
+                  <label style="color:#b2c831">Tips: </label>After submitted, please go to "Rule Repository" to check the rule status
+                </div> -->
+
+                <div style="color:#b2c831">
+                  <p>
+                    <i class="fa fa-info-circle"></i> After submitted, please go to "<a class="bark-link" href="#/measures">Models</a>" to check the model status
+                  </p>
+                </div>
+
+              </fieldset>
+            </div>
+
+            <div class="form-group btn-container" >
+              <button class="btn btn-primary btn-o back-step btn-wide pull-left" ng-click="form.prev(Form)">
+                <i class="fa fa-arrow-circle-left"></i> Back
+              </button>
+              <button class="btn btn-primary btn-o next-step btn-wide pull-right" ng-click="form.submit(Form)">
+                <!-- <button class="btn btn-primary btn-o next-step btn-wide pull-right" data-toggle="modal" data-target="#confirm"> -->
+                Submit
+              </button>
+            </div>
+          </div>
+        </div>
+
+        <div class="modal fade" id="confirm" role="dialog">
+          <div class="modal-dialog modal-xg modal-lg">
+            <div class="modal-content">
+              <div class="modal-header">
+                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+                <h4 class="modal-title">Save the model with the below information?</h4>
+              </div>
+              <div class="modal-body">
+                <ng-include src="'/pages/measures/confirmation-ac.html'"/>
+              </div>
+              <div class="modal-footer">
+                <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
+                <button type="button" class="btn btn-primary" ng-click="form.save()">Save</button>
+              </div>
+            </div>
+          </div>
+        </div>
+    </form>
+  </div><!--//row-->
+</div>

http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/1fa4f243/ui/pages/measures/createrule-an.html
----------------------------------------------------------------------
diff --git a/ui/pages/measures/createrule-an.html b/ui/pages/measures/createrule-an.html
new file mode 100644
index 0000000..dec4fda
--- /dev/null
+++ b/ui/pages/measures/createrule-an.html
@@ -0,0 +1,407 @@
+<!--
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<div class="container-fluid">
+  <div class="row">
+    <h5 class="over-title margin-bottom-15">Create DQ Model</h5>
+  </div><!--//row-->
+  <div class="row">
+    <form name="Form" id="form" novalidate>
+      <div id="wizard" class="swMain" >
+        <ul>
+						<li ng-click="form.goTo(Form, 1)">
+							<a href="" ng-class="{'selected' : currentStep >= 1, 'done' : currentStep > 1}" class="selected" style="">
+								<div class="stepNumber">
+									1
+								</div>
+								<span class="stepDesc text-small"> Choose Target </span>
+							</a>
+						</li>
+						<li ng-click="form.goTo(Form, 2)">
+							<a href="" ng-class="{'selected' : currentStep >= 2, 'done' : currentStep > 2}" class="" style="">
+								<div class="stepNumber">
+									2
+								</div>
+								<span class="stepDesc text-small"> Select Models </span>
+							</a>
+						</li>
+						<li ng-click="form.goTo(Form, 3)">
+							<a href="" ng-class="{'selected' : currentStep >= 3, 'done' : currentStep > 3}" class="" style="">
+								<div class="stepNumber">
+									3
+								</div>
+								<span class="stepDesc text-small"> Configuration </span>
+							</a>
+						</li>
+
+					</ul>
+
+        <div id="step-1" ng-show="currentStep == 1" class="formStep" >
+          <label class="stepDesc">This step let you choose the target for data quality model, Apollo datasets are enabled, other platofrms are coming soon. </label>
+
+					<div class="container-fluid">
+            <!-- select db tree -->
+						<div class="col-md-4 col-lg-4 col-sm-4">
+							<fieldset>
+							  <legend>Please select schema</legend>
+                <div class="add-dataset" style="color:#b2c831">
+                    <a class="bark-link" href="#/createdataasset">Cannot find your DataAsset? Click here to add</a>
+                </div>
+
+                <div angular-treeview="true"
+                      tree-model="dbList"
+                      node-id="id"
+                      node-label="name"
+                      node-children="children"
+                      l1-icon="fa fa-database"
+                      l2-icon="fa fa-table"
+                      l3-icon="fa fa-file-text-o"
+                      class="y-scrollable">
+                </div>
+
+              </fieldset>
+						</div>
+
+            <!-- schema definition list -->
+						<div class="col-md-8 col-lg-8 col-sm-8">
+							<fieldset>
+								<legend>
+									<!-- Select one attribute -->
+                  Schema definition
+								</legend>
+
+								<div class="y-scrollable">
+                  <div>
+                   <label>View schema:</label> <i ng-show="currentNode.parent" style="color:#fff;font-weight: bold;">{{currentNode.parent.name}}.{{currentNode.name}}</i>
+                  </div>
+                  <!-- <div>
+                   <label>Selected Column:</label> <i style="color:#fff;font-weight: bold;">{{form.selection}}</i>
+                  </div> -->
+
+                 <div>
+                   <table st-table="schemaCollection" class="table table-striped">
+                   	<thead>
+                     	<tr style="background-color:#7D95CC">
+                        <!-- <th></th> -->
+                     		<th>Column Name</th>
+                     		<th>Description</th>
+                     		<th>Data Type</th>
+                     		<th>Sample Data</th>
+
+                     	</tr>
+                   	</thead>
+                   	<tbody>
+                       <tr ng-if="!schemaCollection || schemaCollection.length == 0">
+                         <td colspan="5" style="text-align:center" ><span class="highlight">Please select a schema from the left tree first</span></td>
+                       </tr>
+                     	<tr ng-repeat="row in schemaCollection">
+                        <!-- <td><input type="radio"
+                              name="selAttr"
+                              value="{{row.name}}"
+                              ng-model="form.selection"
+                            />
+                        </td> -->
+                        <td>{{row.name}}</td>
+                     		<td>{{row.desc}}</td>
+                        <td>{{row.type}}</td>
+                        <td class="highlight">{{row.sample}}</td>
+                     	</tr>
+                   	</tbody>
+                   </table>
+                 </div>
+
+                 <div style="color:#b2c831">
+                   <p ng-show="currentNode.parent">
+                     <i class="fa fa-info-circle"></i> Total Count of this schema will be applied to the machine learning algorithm
+                   </p>
+                 </div>
+                </div>
+              </fieldset>
+            </div>
+
+            <div class="form-group btn-container">
+							<button class="btn btn-primary btn-o next-step btn-wide pull-right" ng-click="form.next(Form)">
+								Next <i class="fa fa-arrow-circle-right"></i>
+							</button>
+						</div>
+
+          </div>
+
+      </div>
+
+
+
+
+      <div id="step-2" ng-show="currentStep == 2" class="formStep" >
+        <label class="stepDesc">Please choose one of the statistical techniques provided below for automatically detecting anomalies:</label>
+        <div class="container-fluid">
+
+
+          <div class="col-md-12 col-lg-12 col-sm-12">
+            <fieldset>
+              <!-- <legend>
+                Map the fields
+              </legend> -->
+
+              <div class="y-scrollable">
+
+                <div class="container col-md-12 col-lg-12 col-sm-12">
+                  <div class="row">
+
+                    <div class="col-md-6 col-lg-6 col-sm-6">
+
+                      <h5>
+                        <input name="anType" type="radio" ng-model="form.anType" value="1" ng-init="form.anType=1" style="width:1em;height:1em;"/>
+                        <span>History Trend Detection</span>
+                      </h5>
+
+                        <label style="color:#fff;">This is a method of evaluating two or more measured events to comparison the results at one time period with those from another time period (or series of time periods), on an yearly, monthly, weekly, daily or hourly basis. Currently weekly comparision is supported.</label>
+
+                    </div>
+                    <div class="col-md-6 col-lg-6 col-sm-6">
+                      <div class="container-fluid">
+                        <!-- <p>Here's an example for Year over Year difference calculation</p> -->
+                        <img src="/img/yoy.png" style="max-height: 200px;width:100%"/>
+                      </div>
+                    </div>
+
+                  </div>
+                  <br/>
+                  <div class="row">
+
+                    <div class="col-md-6 col-lg-6 col-sm-6">
+                      <h5>
+                        <input name="anType" type="radio" ng-model="form.anType" value="3" style="width:1em;height:1em;"/>
+                        <span>Deviation Detection(Based on MAD)</span>
+                      </h5>
+
+                        <label style="color:#fff;">Deviation detection algorithm usually look at a given time window of a metric time series and establish an upper and lower band for accepted deviations and assume any data point out of those band as a deviation.
+                          <a href="https://en.wikipedia.org/wiki/Median_absolute_deviation" target="_blank">MAD(Median absolute deviation)</a> is a robust measure of the variability of a univariate sample of quantitative data
+                        </label>
+
+                    </div>
+                    <div class="col-md-6 col-lg-6 col-sm-6">
+                      <div class="container-fluid">
+                        <!-- <p>Here's an example for Year over Year difference calculation</p> -->
+                        <img src="/img/mad.png" style="max-height: 200px;width:100%"/>
+                      </div>
+                    </div>
+
+                  </div>
+                  <br/>
+                  <div class="row">
+                    <div class="col-md-6 col-lg-6 col-sm-6">
+                      <h5>
+                        <input name="anType" type="radio" ng-model="form.anType" value="2" style="width:1em;height:1em;"/>
+                        Bollinger Bands Detection
+                      </h5>
+
+                      <label style="color:#fff">
+                        <a href="https://en.wikipedia.org/wiki/Bollinger_Bands" target="_blank">Bollinger Bands</a> are volatility bands placed above and below a moving average. Volatility is based on the standard deviation, which changes as volatility increases and decreases. The bands automatically widen when volatility increases and narrow when volatility decreases.
+                      </label>
+                    </div>
+                    <div class="col-md-6 col-lg-6 col-sm-6">
+                      <div class="container-fluid">
+                        <!-- <p>Here's an example for Bollinger Bands</p> -->
+                        <img src="/img/bollinger.png" style="max-height: 200px;width:100%"/>
+                      </div>
+                    </div>
+
+                  </div>
+
+                </div>
+
+              </div>
+            </fieldset>
+          </div>
+
+          <div class="form-group btn-container" >
+            <button class="btn btn-primary btn-o back-step btn-wide pull-left" ng-click="form.prev(Form)">
+                <i class="fa fa-arrow-circle-left"></i> Back
+            </button>
+            <button class="btn btn-primary btn-o next-step btn-wide pull-right" ng-click="form.next(Form)">
+                Next <i class="fa fa-arrow-circle-right"></i>
+            </button>
+          </div>
+        </div>
+      </div>
+
+      <div id="step-3" ng-show="currentStep == 3" class="formStep" >
+        <label class="stepDesc">Please setup the model required information</label>
+        <div class="container-fluid">
+
+          <!-- schema definition list -->
+          <div class="col-md-12 col-lg-12 col-sm-12">
+            <fieldset>
+              <legend>
+                Required Information
+              </legend>
+              <div class="y-scrollable">
+                <div class="col-md-12 col-lg-12 col-sm-12">
+                  <div class="form-group" ng-class="{'has-error':Form.ruleName.$dirty&&Form.ruleName.$invalid, 'has-success':Form.ruleName.$valid}">
+                    <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                      Model Name<span class="symbol required"></span>:
+                    </label>
+
+                    <div class="col-md-10 col-lg-10 col-sm-10 ">
+                      <input type="text" class="form-control" ng-model="form.basic.name" name="ruleName" placeholder="Please input the measure name" required ng-pattern="'([0-9a-zA-Z\\_\\-])+'">
+                      <span class="error text-small block " ng-if="Form.ruleName.$dirty && Form.ruleName.$error.required">Model Name is required</span>
+                      <span class="error text-small block " ng-if="Form.ruleName.$dirty && Form.ruleName.$error.pattern">Only letter, number, "-" and "_" are allowed</span>
+                    </div>
+                  </div>
+                </div>
+                <div class="col-md-12 col-lg-12 col-sm-12">
+                  <div class="form-group">
+                    <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                      Model Definition:
+                    </label>
+
+                    <div class="col-md-10 col-lg-10 col-sm-10 ">
+                      <input type="text" class="form-control" ng-model="form.basic.desc" placeholder="Please input detail description of your model">
+                    </div>
+                  </div>
+                </div>
+                <div class="col-md-12 col-lg-12 col-sm-12">
+                  <div class="form-group">
+                    <label for="typeSelector" class="col-md-2 col-lg-2 col-sm-2 control-label">
+                      Model Type:
+                    </label>
+
+                    <div class="col-md-10 col-lg-10 col-sm-10 ">
+                      <select id="typeSelector" class="form-control" ng-model="form.basic.type" ng-init="form.basic.type='2'" disabled required>
+                        <option ng-repeat="row in ruleTypes" value="{{$index}}" >{{row}}</option>
+                      </select>
+                    </div>
+                  </div>
+                </div>
+                <div class="col-md-12 col-lg-12 col-sm-12">
+                  <div class="form-group">
+                    <label for="systemSelector" class="col-md-2 col-lg-2 col-sm-2 control-label">
+                      Organization:
+                    </label>
+
+                    <div class="col-md-10 col-lg-10 col-sm-10 ">
+                      <select id="systemSelector" class="form-control" ng-model="form.basic.system" required disabled>
+                        <option ng-repeat="row in ruleSystems" value="{{$index}}" >{{row}}</option>
+                      </select>
+                    </div>
+                  </div>
+                </div>
+                <div class="col-md-12 col-lg-12 col-sm-12">
+                  <div class="form-group">
+                    <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                      DataAsset:
+                    </label>
+
+                    <div class="col-md-10 col-lg-10 col-sm-10">
+                      <input type="text" class="form-control" ng-model="currentNode.name" disabled>
+                    </div>
+                  </div>
+                </div>
+                <div class="col-md-12 col-lg-12 col-sm-12">
+                  <div class="form-group" ng-class="{'has-error':Form.threshold.$invalid}">
+                    <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                      Threshold:
+                    </label>
+
+                    <div class="col-md-10 col-lg-10 col-sm-10">
+                        <input type="number" class="form-control" ng-model="form.basic.threshold" name="threshold">
+                        <span class="error text-small block" ng-if="Form.threshold.$error.number">Only number is allowed</span>
+                    </div>
+                  </div>
+                </div>
+                <div class="col-md-12 col-lg-12 col-sm-12">
+                  <div class="form-group">
+                    <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                      Schedule Type:
+                    </label>
+
+                    <div class="col-md-10 col-lg-10 col-sm-10 ">
+                      <select class="form-control" ng-init="form.basic.scheduleType='1'" ng-model="form.basic.scheduleType" ng-init="form.basic.scheduleType='0'">
+                        <option ng-repeat="row in scheduleTypes" value="{{$index}}" >{{row}}</option>
+                      </select>
+                    </div>
+                  </div>
+                </div>
+                <div class="col-md-12 col-lg-12 col-sm-12">
+                  <div class="form-group" ng-class="{'has-error':Form.email.$dirty&&Form.email.$invalid, 'has-success':Form.email.$valid}">
+                    <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                      Notification email<span class="symbol required"></span>:
+                    </label>
+
+                    <div class="col-md-10 col-lg-10 col-sm-10">
+                      <input type="email"  class="form-control" ng-model="form.basic.email" name="email" ng-required="currentStep==3" placeholder="Please input valid email address" ng-pattern="'^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$'">
+                      <span class="error text-small block" ng-if="Form.email.$dirty&&Form.email.$invalid">Please, enter a valid email address.</span>
+                    </div>
+                  </div>
+                </div>
+                <div class="col-md-12 col-lg-12 col-sm-12">
+                  <div class="form-group">
+                    <label class="col-md-2 col-lg-2 col-sm-2 control-label">
+                      Owner:
+                    </label>
+
+                    <div class="col-md-10 col-lg-10 col-sm-10">
+                      <input type="text"  class="form-control" ng-model="form.basic.owner" ng-init="form.basic.owner=ntAccount" disabled>
+                    </div>
+                  </div>
+                </div>
+              </div>
+
+              <!-- <div style="color:#fff">
+                <label style="color:#b2c831">Tips: </label>After submitted, please go to "Rule Repository" to check the rule status
+              </div> -->
+
+              <div style="color:#b2c831">
+                <p>
+                  <i class="fa fa-info-circle"></i> After submitted, please go to "<a class="bark-link" href="#/measures">Models</a>" to check the model status
+                </p>
+              </div>
+
+            </fieldset>
+          </div>
+
+          <div class="form-group btn-container" >
+            <button class="btn btn-primary btn-o back-step btn-wide pull-left" ng-click="form.prev(Form)">
+                <i class="fa fa-arrow-circle-left"></i> Back
+            </button>
+            <button class="btn btn-primary btn-o next-step btn-wide pull-right" ng-click="form.submit(Form)">
+            <!-- <button class="btn btn-primary btn-o next-step btn-wide pull-right" data-toggle="modal" data-target="#confirm"> -->
+                Submit
+            </button>
+          </div>
+        </div>
+      </div>
+
+      <div class="modal fade" id="confirm-an" role="dialog">
+        <div class="modal-dialog modal-xg modal-lg">
+          <div class="modal-content">
+            <div class="modal-header">
+              <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+              <h4 class="modal-title">Save the model with the below information?</h4>
+            </div>
+            <div class="modal-body">
+              <ng-include src="'/pages/measures/confirmation-an.html'"/>
+            </div>
+            <div class="modal-footer">
+              <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
+              <button type="button" class="btn btn-primary" ng-click="form.save()">Save</button>
+            </div>
+          </div>
+        </div>
+      </div>
+    </form>
+  </div><!--//row-->
+</div>