Examples of newModel()


Examples of org.activiti.engine.RepositoryService.newModel()

                .getRepositoryService();
        Model model = repositoryService.getModel(modelId);

        if (model == null) {
            logger.info("model({}) is null", modelId);
            model = repositoryService.newModel();
            repositoryService.saveModel(model);
        }

        Map root = new HashMap();
        root.put("modelId", model.getId());
View Full Code Here

Examples of org.activiti.engine.RepositoryService.newModel()

        RepositoryService repositoryService = processEngine
                .getRepositoryService();
        Model model = repositoryService.getModel(id);

        if (model == null) {
            model = repositoryService.newModel();
            repositoryService.saveModel(model);
            id = model.getId();
        }

        return "redirect:/widgets/modeler/editor.html?id=" + id;
View Full Code Here

Examples of org.activiti.engine.RepositoryService.newModel()

    ProcessEngineConfiguration processEngineConfiguration = defaultProcessEngine.getProcessEngineConfiguration();
    ProcessDiagramGenerator diagramGenerator = processEngineConfiguration.getProcessDiagramGenerator();
   
    Model model = null;
    if (modelId == null) { // new process
      model = repositoryService.newModel();
    } else { // update existing process
      model = repositoryService.getModel(modelId);
    }

    model.setName(workflowDefinition.getName());
View Full Code Here

Examples of org.freeplane.features.map.mindmapmode.MMapController.newModel()

          }

          public void act() {
            existingNode.setParent(null);
            existingNode.setFolded(false);
            mMapController.newModel(existingNode);
          }
        };
        Controller.getCurrentModeController().execute(actor, parentMap);
      }
      final MapModel map = existingNode.getMap();
View Full Code Here

Examples of org.gatein.management.api.model.ModelProvider.newModel()

         BasicResultHandler resultHandler = new BasicResultHandler();
         operationHandler.execute(new OperationContextImpl(request, root, runtimeContext, externalContext, bindingProvider, modelProvider), resultHandler);

         if (resultHandler.getFailureDescription() != null)
         {
            return new FailureResponse(modelProvider.newModel().set(resultHandler.getFailureDescription()));
         }
         else if (resultHandler.getFailure() != null)
         {
            return new FailureResponse(resultHandler.getFailure());
         }
View Full Code Here

Examples of org.jitterbit.integration.client.ui.entity.tree.IntegrationEntityTreeModelFactory.newModel()

        dialog.setVisible(true);
    }

    private IntegrationEntityTree createTree() {
        IntegrationEntityTreeModelFactory factory = new IntegrationEntityTreeModelFactory();
        IntegrationEntityTreeModel model = factory.newModel(project);
        model.setFilter(new KongaTreeFilter() {

            @Override
            public boolean apply(KongaTreeNode node) {
                if (node.getUserObject() instanceof RootFolder) {
View Full Code Here

Examples of org.jitterbit.integration.client.ui.entity.tree.IntegrationEntityTreeModelFactory.newModel()

        return new DeployTree(container, validationModel, treeModel);
    }

    private IntegrationEntityTreeModel createTreeModel() {
        IntegrationEntityTreeModelFactory factory = new IntegrationEntityTreeModelFactory();
        return factory.newModel(project);
    }

    private JComponent createTreePanel() {
        BorderLayoutBuilder layout = new BorderLayoutBuilder();
        layout.center(tree);
View Full Code Here

Examples of org.jitterbit.integration.client.ui.entity.tree.IntegrationEntityTreeModelFactory.newModel()

        @Override
        protected IntegrationEntityTreeModel createModelForProject(IntegrationProject project) {
            IntegrationEntityTreeModelFactory factory = new IntegrationEntityTreeModelFactory(
                            config.getTypesToInclude(), config.useJitterbitConnectNode());
            return factory.newModel(project);
        }
    }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.