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:31 UTC

svn commit: r1341579 - in /incubator/airavata/branches/0.3-incubating-snapshot/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:31 2012
New Revision: 1341579

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

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

Modified: incubator/airavata/branches/0.3-incubating-snapshot/modules/commons/workflow-tracking/src/main/java/org/apache/airavata/workflow/tracking/AbstractNotifier.java
URL: http://svn.apache.org/viewvc/incubator/airavata/branches/0.3-incubating-snapshot/modules/commons/workflow-tracking/src/main/java/org/apache/airavata/workflow/tracking/AbstractNotifier.java?rev=1341579&r1=1341578&r2=1341579&view=diff
==============================================================================
--- incubator/airavata/branches/0.3-incubating-snapshot/modules/commons/workflow-tracking/src/main/java/org/apache/airavata/workflow/tracking/AbstractNotifier.java (original)
+++ incubator/airavata/branches/0.3-incubating-snapshot/modules/commons/workflow-tracking/src/main/java/org/apache/airavata/workflow/tracking/AbstractNotifier.java Tue May 22 18:05:31 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/branches/0.3-incubating-snapshot/modules/commons/workflow-tracking/src/main/resources/schemas/workflow_tracking_types.xsd
URL: http://svn.apache.org/viewvc/incubator/airavata/branches/0.3-incubating-snapshot/modules/commons/workflow-tracking/src/main/resources/schemas/workflow_tracking_types.xsd?rev=1341579&r1=1341578&r2=1341579&view=diff
==============================================================================
--- incubator/airavata/branches/0.3-incubating-snapshot/modules/commons/workflow-tracking/src/main/resources/schemas/workflow_tracking_types.xsd (original)
+++ incubator/airavata/branches/0.3-incubating-snapshot/modules/commons/workflow-tracking/src/main/resources/schemas/workflow_tracking_types.xsd Tue May 22 18:05:31 2012
@@ -73,6 +73,15 @@
 		</annotation>
 		<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>
 
 	<!-- ========================================================================================== -->
 
@@ -98,6 +107,13 @@
 			</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>