Skip to content

Commit cf10e6a

Browse files
committed
feat: added metadata attribute
1 parent ca49d63 commit cf10e6a

File tree

1 file changed

+11
-0
lines changed
  • common/src/main/java/com/netflix/conductor/common/metadata/workflow

1 file changed

+11
-0
lines changed

common/src/main/java/com/netflix/conductor/common/metadata/workflow/WorkflowDef.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ public enum TimeoutPolicy {
106106
@ProtoField(id = 21)
107107
private boolean enforceSchema = true;
108108

109+
@ProtoField(id = 22)
110+
private Map<String,Object> metadata;
111+
109112
public boolean isEnforceSchema() {
110113
return enforceSchema;
111114
}
@@ -366,6 +369,14 @@ public void setOutputSchema(SchemaDef outputSchema) {
366369
this.outputSchema = outputSchema;
367370
}
368371

372+
public Map<String, Object> getMetadata() {
373+
return metadata;
374+
}
375+
376+
public void setMetadata(Map<String, Object> metadata) {
377+
this.metadata = metadata;
378+
}
379+
369380
public boolean containsType(String taskType) {
370381
return collectTasks().stream().anyMatch(t -> t.getType().equals(taskType));
371382
}

0 commit comments

Comments
 (0)