PatrickRen commented on code in PR #45: URL: https://github.com/apache/flink-agents/pull/45#discussion_r2194421512
########## plan/src/main/java/org/apache/flink/agents/plan/WorkflowPlan.java: ########## @@ -18,24 +18,32 @@ package org.apache.flink.agents.plan; -import org.apache.flink.agents.api.Event; +import org.apache.flink.agents.plan.serializer.WorkflowPlanJsonDeserializer; +import org.apache.flink.agents.plan.serializer.WorkflowPlanJsonSerializer; +import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.util.List; import java.util.Map; /** Workflow plan compiled from user defined workflow. */ +@JsonSerialize(using = WorkflowPlanJsonSerializer.class) +@JsonDeserialize(using = WorkflowPlanJsonDeserializer.class) public class WorkflowPlan { - private final Map<Class<? extends Event>, List<Action>> actions; + private final Map<String, Action> actions; + private final Map<String, List<Action>> eventTriggerActions; Review Comment: Thanks for the comment! This makes sense. I also renamed the Python part in my pull request. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org