{
name = ((ProcessingElementNode)node).getChosenPEOrNodeName();
}
PipelineWorkflow workflow = getWorkflow(node);
ActivityDescriptor descriptor = mRegistry.getActivity(name);
ProcessingElement activity =
new ProcessingElement(descriptor.getActivityName());
activity.setResourceInput(descriptor.getResourceInput());
workflow.add(activity);
mPEs.put(node, activity);
createInputsAndOutputs(node, activity);
}