You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by la...@apache.org on 2012/05/22 20:05:02 UTC

svn commit: r1341578 - in /incubator/airavata/trunk/modules/commons/workflow-tracking/src/main: java/org/apache/airavata/workflow/tracking/AbstractNotifier.java resources/schemas/workflow_tracking_types.xsd

Author: lahiru
Date: Tue May 22 18:05:02 2012
New Revision: 1341578

URL: http://svn.apache.org/viewvc?rev=1341578&view=rev
Log:
adding experimentID to owrkflow-tracking-context.

Modified:
    incubator/airavata/trunk/modules/commons/workflow-tracking/src/main/java/org/apache/airavata/workflow/tracking/AbstractNotifier.java
    incubator/airavata/trunk/modules/commons/workflow-tracking/src/main/resources/schemas/workflow_tracking_types.xsd

Modified: incubator/airavata/trunk/modules/commons/workflow-tracking/src/main/java/org/apache/airavata/workflow/tracking/AbstractNotifier.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/workflow-tracking/src/main/java/org/apache/airavata/workflow/tracking/AbstractNotifier.java?rev=1341578&r1=1341577&r2=1341578&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/workflow-tracking/src/main/java/org/apache/airavata/workflow/tracking/AbstractNotifier.java (original)
+++ incubator/airavata/trunk/modules/commons/workflow-tracking/src/main/java/org/apache/airavata/workflow/tracking/AbstractNotifier.java Tue May 22 18:05:02 2012
@@ -150,6 +150,7 @@ public abstract class AbstractNotifier {
             setIDAndTimestamp(context, xmlMessage, context.getMyself(), activityTimestamp != null ? activityTimestamp
                     : new Date());
             setDescAndAnno(context, xmlMessage, descriptionAndAnnotation, defaultDesc);
+            xmlMessage.getNotificationSource().setExperimentID(context.getTopic());
             // System.out.println(xmldata);
             if (log.isDebugEnabled()) {
                 log.debug(xmldata.toString());

Modified: incubator/airavata/trunk/modules/commons/workflow-tracking/src/main/resources/schemas/workflow_tracking_types.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/workflow-tracking/src/main/resources/schemas/workflow_tracking_types.xsd?rev=1341578&r1=1341577&r2=1341578&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/workflow-tracking/src/main/resources/schemas/workflow_tracking_types.xsd (original)
+++ incubator/airavata/trunk/modules/commons/workflow-tracking/src/main/resources/schemas/workflow_tracking_types.xsd Tue May 22 18:05:02 2012
@@ -74,6 +74,16 @@
 		<restriction base="anyURI" />
 	</simpleType>
 
+    <simpleType name="ExperimentIDType">
+		<annotation>
+			<documentation>
+				String that identifies uniquely a node in workflow graph.
+				The node ID is unique in the scope of a workflow ID.
+			</documentation>
+		</annotation>
+		<restriction base="string" />
+	</simpleType>
+
 	<!-- ========================================================================================== -->
 
 	<complexType name="BaseIDType">
@@ -98,6 +108,14 @@
 			</annotation>
 		</attribute>
 
+        <attribute name="experimentID" type="wft:ExperimentIDType" use="required">
+			<annotation>
+				<documentation>
+					ID to uniquely identify a workflow invocation.
+				</documentation>
+			</annotation>
+		</attribute>
+
 		<attribute name="workflowNodeID" type="wft:WorkflowNodeIDType" use="optional">
 			<annotation>
 				<documentation>