Tabnine Logo
Model.getVersion
Code IndexAdd Tabnine to your IDE (free)

How to use
getVersion
method
in
org.activiti.engine.repository.Model

Best Java code snippets using org.activiti.engine.repository.Model.getVersion (Showing top 2 results out of 315)

origin: org.activiti/activiti-explorer

protected void initHeader() {
 GridLayout details = new GridLayout(2, 2);
 details.setWidth(100, UNITS_PERCENTAGE);
 details.addStyleName(ExplorerLayout.STYLE_TITLE_BLOCK);
 details.setSpacing(true);
 details.setMargin(false, false, true, false);
 details.setColumnExpandRatio(1, 1.0f);
 detailPanelLayout.addComponent(details);
 
 // Image
 Embedded image = new Embedded(null, Images.PROCESS_50);
 details.addComponent(image, 0, 0, 0, 1);
 
 // Name
 Label nameLabel = new Label(modelData.getName());
 nameLabel.addStyleName(Reindeer.LABEL_H2);
 details.addComponent(nameLabel, 1, 0);
 // Properties
 HorizontalLayout propertiesLayout = new HorizontalLayout();
 propertiesLayout.setSpacing(true);
 details.addComponent(propertiesLayout);
 
 // Version
 String versionString = i18nManager.getMessage(Messages.PROCESS_VERSION, modelData.getVersion());
 Label versionLabel = new Label(versionString);
 versionLabel.addStyleName(ExplorerLayout.STYLE_PROCESS_HEADER_VERSION);
 propertiesLayout.addComponent(versionLabel);
}

origin: org.activiti/activiti-rest

public ModelResponse createModelResponse(Model model, RestUrlBuilder urlBuilder) {
 ModelResponse response = new ModelResponse();
 response.setCategory(model.getCategory());
 response.setCreateTime(model.getCreateTime());
 response.setId(model.getId());
 response.setKey(model.getKey());
 response.setLastUpdateTime(model.getLastUpdateTime());
 response.setMetaInfo(model.getMetaInfo());
 response.setName(model.getName());
 response.setDeploymentId(model.getDeploymentId());
 response.setVersion(model.getVersion());
 response.setTenantId(model.getTenantId());
 response.setUrl(urlBuilder.buildUrl(RestUrls.URL_MODEL, model.getId()));
 if (model.getDeploymentId() != null) {
  response.setDeploymentUrl(urlBuilder.buildUrl(RestUrls.URL_DEPLOYMENT, model.getDeploymentId()));
 }
 if (model.hasEditorSource()) {
  response.setSourceUrl(urlBuilder.buildUrl(RestUrls.URL_MODEL_SOURCE, model.getId()));
 }
 if (model.hasEditorSourceExtra()) {
  response.setSourceExtraUrl(urlBuilder.buildUrl(RestUrls.URL_MODEL_SOURCE_EXTRA, model.getId()));
 }
 return response;
}
org.activiti.engine.repositoryModelgetVersion

Popular methods of Model

  • setMetaInfo
  • setName
  • getId
  • getName
  • setKey
  • getMetaInfo
  • getCategory
  • setDeploymentId
  • getKey
  • setCategory
  • getTenantId
  • setTenantId
  • getTenantId,
  • setTenantId,
  • setVersion,
  • getCreateTime,
  • getDeploymentId,
  • getLastUpdateTime,
  • hasEditorSource,
  • hasEditorSourceExtra

Popular in Java

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JPanel (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now