This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
Regarding adding fields to WorkflowTask class #3740
Unanswered
mayankcogoport
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a requrement to add a field of type Map<String, Object> but the values are not getting set to that field.
Here is the code example for the same.
Added this in WorkflowTask.java with setters and getters
@protofield(id = 29)
public Map<String, Object> templateMetaData = new HashMap<>();
and when creating a workflow definition passing the vale inside tasks array -> a single task field as it is not getting get can't figure out why this is happening.
@PostMapping("/workflow")
@operation(summary = "Create a new workflow definition")
public void create(@RequestBody WorkflowDef workflowDef) {
metadataService.registerWorkflowDef(workflowDef);
}
Beta Was this translation helpful? Give feedback.
All reactions