Package org.cishell.reference.gui.workflow.model

Examples of org.cishell.reference.gui.workflow.model.Workflow


                .fromXML(in);
            // print all the VALUES
            WorkflowManager mgr = WorkflowManager.getInstance();
            List<Workflow> list = new ArrayList<Workflow>();

            Workflow wf = saver.getCurrentWorkflow();

            list.add(wf);
            for (Map.Entry<Long, WorkflowItem> item : ((NormalWorkflow) wf)
                .getMap().entrySet()) {
              ((AlgorithmWorkflowItem) item.getValue())
                  .setWorkflow(wf);
            }
            Long id = mgr.getUniqueInternalId();
            wf.setInternalId(id);
            mgr.addWorkflow(id, wf);

            final List<Workflow> wfList = new ArrayList<Workflow>(
                list);
            Display.getDefault().asyncExec(new Runnable() {
View Full Code Here


  @Override
  public void algorithmStarted(Algorithm algorithm) {
  }

  public void addNewWorkflow(String name) {
    Workflow workfFlow = WorkflowManager.getInstance().createWorkflow(name,
        Constant.NormalWorkflow);
    final WorkflowGUI dataItem = new WorkflowGUI(workfFlow,
        this.currentWorkFlowItem, 1, this.brandPluginID);
    this.currentWorkFlowItem = dataItem;
    this.currentParentItem = dataItem;
View Full Code Here

          }
        } else if (type == Constant.AlgorithmUIItem) {
          AlgorithmItemGUI aiGUI = (AlgorithmItemGUI) itm;
          AlgorithmWorkflowItem wfItem = (AlgorithmWorkflowItem) aiGUI
              .getWfItem();
          Workflow wf = wfItem.getWorkflow();

          WorkflowTreeItem parent = itm.getParent();// GUI
          itm.removeAllChildren();
          parent.removeChild(itm);
          WorkflowView.this.viewer.refresh();
          wf.remove(wfItem);// model
          if (parent.getChildren().length == 0
              || WorkflowView.this.currentParentItem == aiGUI) {
            WorkflowView.this.currentParentItem = parent;
          }
        }
View Full Code Here

TOP

Related Classes of org.cishell.reference.gui.workflow.model.Workflow

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.