Пример #1
0
 protected void finalize() throws Throwable {
   try {
     startMark.remove();
     endMark.remove();
   } catch (InvalidMarkException e) {
   }
   super.finalize();
 }
Пример #2
0
 public static String getElementLineBR(BaseElement element, String attrName) {
   List<Attr> list = element.getAttrs();
   for (int i = 0; (list != null) && (i < list.size()); i++) {
     Attr attr = (Attr) list.get(i);
     if (attr.getName().equalsIgnoreCase(attrName)) {
       return attr.getValue();
     }
   }
   return "";
 }
Пример #3
0
 public static String getElementLineBR(BaseElement element) {
   List<Attr> list = element.getAttrs();
   for (int i = 0; (list != null) && (i < list.size()); i++) {
     Attr attr = (Attr) list.get(i);
     if (attr.getName().equalsIgnoreCase(ConfigManager.PROPERTIES_LINEBR)) {
       return attr.getValue();
     }
   }
   return "false";
 }
Пример #4
0
  public void setValues(Process otherElement) {
    super.setValues(otherElement);

    setName(otherElement.getName());
    setExecutable(otherElement.isExecutable());
    setDocumentation(otherElement.getDocumentation());
    if (otherElement.getIoSpecification() != null) {
      setIoSpecification(otherElement.getIoSpecification().clone());
    }

    executionListeners = new ArrayList<ActivitiListener>();
    if (otherElement.getExecutionListeners() != null
        && otherElement.getExecutionListeners().size() > 0) {
      for (ActivitiListener listener : otherElement.getExecutionListeners()) {
        executionListeners.add(listener.clone());
      }
    }

    candidateStarterUsers = new ArrayList<String>();
    if (otherElement.getCandidateStarterUsers() != null
        && otherElement.getCandidateStarterUsers().size() > 0) {
      candidateStarterUsers.addAll(otherElement.getCandidateStarterUsers());
    }

    candidateStarterGroups = new ArrayList<String>();
    if (otherElement.getCandidateStarterGroups() != null
        && otherElement.getCandidateStarterGroups().size() > 0) {
      candidateStarterGroups.addAll(otherElement.getCandidateStarterGroups());
    }

    flowElementList = new ArrayList<FlowElement>();
    if (otherElement.getFlowElements() != null && otherElement.getFlowElements().size() > 0) {
      for (FlowElement element : otherElement.getFlowElements()) {
        flowElementList.add(element.clone());
      }
    }

    artifactList = new ArrayList<Artifact>();
    if (otherElement.getArtifacts() != null && otherElement.getArtifacts().size() > 0) {
      for (Artifact artifact : otherElement.getArtifacts()) {
        artifactList.add(artifact.clone());
      }
    }
  }