use of com.netflix.conductor.common.metadata.workflow.DynamicForkJoinTask in project conductor by Netflix.
the class AbstractProtoMapper method fromProto.
public DynamicForkJoinTask fromProto(DynamicForkJoinTaskPb.DynamicForkJoinTask from) {
DynamicForkJoinTask to = new DynamicForkJoinTask();
to.setTaskName(from.getTaskName());
to.setWorkflowName(from.getWorkflowName());
to.setReferenceName(from.getReferenceName());
Map<String, Object> inputMap = new HashMap<String, Object>();
for (Map.Entry<String, Value> pair : from.getInputMap().entrySet()) {
inputMap.put(pair.getKey(), fromProto(pair.getValue()));
}
to.setInput(inputMap);
to.setType(from.getType());
return to;
}