Examples of save()


Examples of org.jbpm.designer.bpmn2.resource.JBPMBpmn2ResourceImpl.save()

                rSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("bpmn2", new JBPMBpmn2ResourceFactoryImpl());
                JBPMBpmn2ResourceImpl bpmn2resource = (JBPMBpmn2ResourceImpl) rSet.createResource(URI.createURI("virtual.bpmn2"));
                rSet.getResources().add(bpmn2resource);
                bpmn2resource.getContents().add(def);
                ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
                bpmn2resource.save(outputStream, new HashMap<Object, Object>());
                String fullXmlModel =  outputStream.toString();
                // convert to json and write response
                String json = profile.createUnmarshaller().parseModel(fullXmlModel, profile, pp);
                resp.setContentType("application/json");
                resp.getWriter().print(json);
View Full Code Here

Examples of org.jbpm.env.session.PvmDbSession.save()

      PvmDbSession pvmDbSession = environment.get(PvmDbSession.class);
     
      ProcessDefinition processDefinition = ProcessFactory.build("persited process")
      .done();
     
      pvmDbSession.save(processDefinition);
     
    } finally {
      environment.close();
    }
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.session.DbSession.save()

        TaskImpl parentTask = (TaskImpl) dbSession.get(TaskImpl.class, task.getSuperTaskDbid());
        parentTask.addSubTask(task);
        task.setSuperTaskDbid(null);
      }
     
      dbSession.save(task);
     
      HistoryEvent.fire(new TaskCreated(task));

    } else {
      dbSession.update(task);
View Full Code Here

Examples of org.jbpm.svc.save.SaveOperation.save()

      }
    }
   
    while (iter.hasNext()) {
      SaveOperation saveOperation = (SaveOperation) iter.next();
      saveOperation.save(processInstance, jbpmContext);
    }
  }

  // services /////////////////////////////////////////////////////////////////
 
View Full Code Here

Examples of org.jclouds.abiquo.domain.cloud.VirtualAppliance.save()

      // Load the virtual appliance or create it if it does not exist
      VirtualAppliance vapp = vdc.findVirtualAppliance(VirtualAppliancePredicates.name(tag));
      if (vapp == null) {
         vapp = VirtualAppliance.builder(context, vdc).name(tag).build();
         vapp.save();
      }

      Integer overrideCores = options.getOverrideCores();
      Integer overrideRam = options.getOverrideRam();
View Full Code Here

Examples of org.jclouds.abiquo.domain.cloud.VirtualMachine.save()

            .cpu(overrideCores != null ? overrideCores : totalCores(template.getHardware())) //
            .ram(overrideRam != null ? overrideRam : template.getHardware().getRam()) //
            .password(options.getVncPassword()) // Can be null
            .build();

      vm.save();

      // Once the virtual machine is created, override the default network
      // settings if needed
      // If no public ip is available in the virtual datacenter, the virtual
      // machine will be assigned by default an ip address in the default
View Full Code Here

Examples of org.jclouds.abiquo.domain.cloud.Volume.save()

      });

      Volume volume = Volume.builder(env.context.getApiContext(), env.virtualDatacenter, tier)
            .name(PREFIX + "Event vol").sizeInMb(32).build();

      volume.save();
      assertNotNull(volume.getId());

      return volume;
   }
View Full Code Here

Examples of org.jclouds.abiquo.domain.enterprise.Role.save()

   public void testCreateEnterpriseRole() {
      final Role entRole = Role.Builder.fromRole(env.role).build();
      entRole.setName(entRole.getName() + "enterprise");
      entRole.setEnterprise(env.enterprise);
      entRole.save();

      find(env.enterprise.listRoles(), new Predicate<Role>() {
         @Override
         public boolean apply(Role input) {
            return input.getName().equals(entRole.getName());
View Full Code Here

Examples of org.jempbox.xmp.XMPMetadata.save()

      XMPSchemaBibtex schema = new XMPSchemaBibtex(x);
      x.addSchema(schema);
      schema.setBibtexEntry(e);
    }

    x.save(outputStream);
  }

  /**
   * Convenience method for toXMP(Collection<BibtexEntry>, BibtexDatabase,
   * OutputStream) returning a String containing the XMP-metadata of the given
View Full Code Here

Examples of org.jets3t.service.security.AWSCredentials.save()

        // Initialise an S3 Service that knows the AWS credentials.
        S3Service s3Service = new RestS3Service(awsCredentials);
       
        // Encrypt credentials into InputStream
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        awsCredentials.save(password, baos);
        ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
       
        // Create the target bucket
        bucket = s3Service.createBucket(bucketName);
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.