Search in sources :

Example 1 with DynamicForkJoinTask

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;
}
Also used : DynamicForkJoinTask(com.netflix.conductor.common.metadata.workflow.DynamicForkJoinTask) HashMap(java.util.HashMap) Value(com.google.protobuf.Value) Object(java.lang.Object) String(java.lang.String) HashMap(java.util.HashMap) Map(java.util.Map)

Aggregations

Value (com.google.protobuf.Value)1 DynamicForkJoinTask (com.netflix.conductor.common.metadata.workflow.DynamicForkJoinTask)1 Object (java.lang.Object)1 String (java.lang.String)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1