Program: 118581
Project: 118581
Buggy source:
private void covertJobscriptOnPageChange(){
  try {
    boolean isDirty=jobletEditor.isDirty();
    jobletEditor.doSave(null);
    IProcess2 oldProcess=getProcess();
    ICreateXtextProcessService n=CorePlugin.getDefault().getCreateXtextProcessService();
    Item item=oldProcess.getProperty().getItem();
    ProcessType processType=null;
    if (item instanceof ProcessItem) {
      processType=n.convertDesignerEditorInput(((IFile)jobletEditor.getEditorInput().getAdapter(IResource.class)).getLocation().toOSString(),oldProcess.getProperty());
    }
 else     if (item instanceof JobletProcessItem) {
      processType=n.convertJobletDesignerEditorInput(((IFile)jobletEditor.getEditorInput().getAdapter(IResource.class)).getLocation().toOSString(),oldProcess.getProperty());
    }
    if (item instanceof ProcessItem) {
      ((Process)oldProcess).updateProcess(processType);
    }
 else     if (item instanceof JobletProcessItem) {
      ((Process)oldProcess).updateProcess(processType);
    }
    oldProcess.getUpdateManager().updateAll();
    designerEditor.setDirty(isDirty);
    List<Node> nodes=(List<Node>)oldProcess.getGraphicalNodes();
    List<Node> newNodes=new ArrayList<Node>();
    newNodes.addAll(nodes);
    for (    Node node : newNodes) {
      node.getProcess().checkStartNodes();
      node.checkAndRefreshNode();
      IElementParameter ep=node.getElementParameter("String_Node_Str");
      if (ep != null && ep.getValue().equals(Boolean.FALSE)) {
        node.setPropertyValue(EParameterName.ACTIVATE.getName(),true);
        node.setPropertyValue(EParameterName.ACTIVATE.getName(),false);
      }
 else       if (ep != null && ep.getValue().equals(Boolean.TRUE)) {
        node.setPropertyValue(EParameterName.ACTIVATE.getName(),false);
        node.setPropertyValue(EParameterName.ACTIVATE.getName(),true);
      }
      for (      IElementParameter param : node.getElementParameters()) {
        if (!param.getChildParameters().isEmpty()) {
          if (param.getValue() != null && param.getValue() instanceof String && ((String)param.getValue()).contains("String_Node_Str")) {
            String splited[]=((String)param.getValue()).split("String_Node_Str");
            String childNameNeeded=splited[0].trim();
            String valueChild=TalendQuoteUtils.removeQuotes(splited[1].trim());
            if (param.getChildParameters().containsKey(childNameNeeded)) {
              param.getChildParameters().get(childNameNeeded).setValue(valueChild);
            }
          }
        }
      }
    }
  }
 catch (  PersistenceException e) {
  }
}

Fixed version (ground truth):
private void covertJobscriptOnPageChange(){
  try {
    boolean isDirty=jobletEditor.isDirty();
    jobletEditor.doSave(null);
    IProcess2 oldProcess=getProcess();
    ICreateXtextProcessService n=CorePlugin.getDefault().getCreateXtextProcessService();
    Item item=oldProcess.getProperty().getItem();
    ProcessType processType=null;
    if (item instanceof ProcessItem) {
      processType=n.convertDesignerEditorInput(((IFile)jobletEditor.getEditorInput().getAdapter(IResource.class)).getLocation().toOSString(),oldProcess.getProperty());
    }
 else     if (item instanceof JobletProcessItem) {
      processType=n.convertJobletDesignerEditorInput(((IFile)jobletEditor.getEditorInput().getAdapter(IResource.class)).getLocation().toOSString(),oldProcess.getProperty());
    }
    if (item instanceof ProcessItem) {
      ((Process)oldProcess).updateProcess(processType);
    }
 else     if (item instanceof JobletProcessItem) {
      ((Process)oldProcess).updateProcess(processType);
    }
    oldProcess.getUpdateManager().updateAll();
    designerEditor.setDirty(isDirty);
    List<Node> nodes=(List<Node>)oldProcess.getGraphicalNodes();
    List<Node> newNodes=new ArrayList<Node>();
    newNodes.addAll(nodes);
    for (    Node node : newNodes) {
      node.getProcess().checkStartNodes();
      node.checkAndRefreshNode();
      IElementParameter ep=node.getElementParameter("String_Node_Str");
      if (ep != null && ep.getValue().equals(Boolean.FALSE)) {
        node.setPropertyValue(EParameterName.ACTIVATE.getName(),true);
        node.setPropertyValue(EParameterName.ACTIVATE.getName(),false);
      }
 else       if (ep != null && ep.getValue().equals(Boolean.TRUE)) {
        node.setPropertyValue(EParameterName.ACTIVATE.getName(),false);
        node.setPropertyValue(EParameterName.ACTIVATE.getName(),true);
      }
      for (      IElementParameter param : node.getElementParameters()) {
        if (!param.getChildParameters().isEmpty()) {
          if (param.getValue() != null && param.getValue() instanceof String && ((String)param.getValue()).contains("String_Node_Str")) {
            String splited[]=((String)param.getValue()).split("String_Node_Str");
            String childNameNeeded=splited[0].trim();
            String valueChild=TalendQuoteUtils.removeQuotes(splited[1].trim());
            if (param.getChildParameters().containsKey(childNameNeeded)) {
              param.getChildParameters().get(childNameNeeded).setValue(valueChild);
            }
          }
        }
      }
      if (((Node)node).getNodeContainer() instanceof JobletContainer) {
        JobletContainer jc=(JobletContainer)((Node)node).getNodeContainer();
        if (node.isMapReduceStart()) {
          jc.updateState("String_Node_Str","String_Node_Str",jc.getPercentMap(),jc.getPercentReduce());
        }
      }
    }
  }
 catch (  PersistenceException e) {
  }
}