Package org.uengine.kernel.designer

Examples of org.uengine.kernel.designer.ProcessDefinitionDesigner


        java.util.List list = (java.util.List)tr.getTransferData(listFlavor);
       
        Object objectGot = list.get(0);
       
        if(objectGot instanceof Role && value instanceof Role && list.size()>1){
          ProcessDefinitionDesigner processDefinitionDesignerFrom = (ProcessDefinitionDesigner)list.get(1);
          Role droppedRole = (Role) objectGot;
         
          if(processDefinitionDesignerFrom!=getProcessDefinitionDesigner()){
            boolean connectedFromMain = true;
           
            try{
              connectedFromMain = !(processDefinitionDesignerFrom.getParentDesigner().getActivity().getProcessDefinition() == processDefinition);
            }catch(Exception ex){
            }
           
            SubProcessActivity subProcAct = null;
            ProcessDefinition mainProcessDefinition, subProcessDefinition;
            Role subRole, mainRole;
            if(connectedFromMain){
              subProcAct = (SubProcessActivity) getSubProcessDesigner(getProcessDefinitionDesigner()).getActivity();
              subProcessDefinition = (ProcessDefinition) getProcessDefinitionDesigner().getActivity();
              subRole = (Role)value;
              mainRole = droppedRole;
            }else{
              subProcAct = (SubProcessActivity) getSubProcessDesigner(processDefinitionDesignerFrom).getActivity();
              subProcessDefinition = (ProcessDefinition) processDefinitionDesignerFrom.getActivity();
              subRole = droppedRole;
              mainRole = (Role)value;
            }
            mainProcessDefinition = subProcAct.getProcessDefinition();
           
View Full Code Here


   
    setDesignerPanel(pan);
   
    ProcessDefinition processDefinition = ProcessDefinition.create();
   
    ProcessDefinitionDesigner cac =
       (ProcessDefinitionDesigner)UEngineUtil.getComponentByEscalation(processDefinition.getClass(), "designer");
   
    setProcessDefinitionDesigner(cac);
    addUndoListener(processDefinition);
    cac.setActivity(processDefinition);
   
   

   
View Full Code Here

   
  public void loadDesign(InputStream fi, String fileType){
    loadDesign(fi, fileType, true);
   
    //mr.heo
    ProcessDefinitionDesigner designer = this.getProcessDefinitionDesigner();
    if(!isRootDefinition())
      designer.SetVisiableButton(true);
    else
      designer.SetVisiableButton(false);
   
   
      addOpenedFile((ProcessDefinition)getProcessDefinitionDesigner().getActivity());

  }
View Full Code Here

    loadDesign(pd, true);
  }
   
  public void loadDesign(ProcessDefinition pd, boolean changeSavingTargetInfo){
    if(checkDiscardChanges()==YesOrNoDialog.YES){
      ProcessDefinitionDesigner pdd =
         (ProcessDefinitionDesigner)UEngineUtil.getComponentByEscalation(pd.getClass(), "designer");

     
      pdd.setActivity(pd);
      setProcessDefinitionDesigner(pdd);
     
      //TODO if the process is adhoc, the activities already finished should be blocked to edit
     
      if(isAdhoc() && getProcessInstance()!=null)
        pdd.setProcessInstance(getProcessInstance());
     
      setTitle(pd.getName() + " - " + GlobalContext.getLocalizedMessage("pd.window.title"));
     
      getDesignerPanel().revalidate();
      getDesignerPanel().validate();
View Full Code Here

TOP

Related Classes of org.uengine.kernel.designer.ProcessDefinitionDesigner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.