@@ -51,6 +51,10 @@ public class Workflow {
51
51
@ DateTimeFormat (pattern ="yyyy-MM-dd HH:mm:ss z" )
52
52
private Date retrievedOn ;
53
53
54
+ // The last commit from the branch at the time of fetching
55
+ // Used for caching purposes
56
+ private String lastCommit ;
57
+
54
58
// A String which represents the path to a RO bundle
55
59
// Path types cannot be stored using Spring Data, unfortunately
56
60
private String roBundle ;
@@ -66,12 +70,14 @@ public class Workflow {
66
70
private String dotGraph ;
67
71
68
72
public Workflow (String label , String doc , Map <String , CWLElement > inputs ,
69
- Map <String , CWLElement > outputs , Map <String , CWLStep > steps ) {
73
+ Map <String , CWLElement > outputs , Map <String , CWLStep > steps ,
74
+ String lastCommit ) {
70
75
this .label = label ;
71
76
this .doc = doc ;
72
77
this .inputs = inputs ;
73
78
this .outputs = outputs ;
74
79
this .steps = steps ;
80
+ this .lastCommit = lastCommit ;
75
81
76
82
// Create a DOT graph for this workflow and store it
77
83
StringWriter graphWriter = new StringWriter ();
@@ -161,4 +167,12 @@ public String getDotGraph() {
161
167
public void setDotGraph (String dotGraph ) {
162
168
this .dotGraph = dotGraph ;
163
169
}
170
+
171
+ public String getLastCommit () {
172
+ return lastCommit ;
173
+ }
174
+
175
+ public void setLastCommit (String lastCommit ) {
176
+ this .lastCommit = lastCommit ;
177
+ }
164
178
}
0 commit comments