congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Model.setTenantId
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: zhijund/jund-workflow

public static void updateModel(Model copyModel, String modelName, ObjectNode metaInfo, String tenantId) {
  copyModel.setName(modelName);
  if (null != metaInfo) {
    copyModel.setMetaInfo(metaInfo.toString());
  }
  copyModel.setTenantId(tenantId);
}
origin: zhijund/jund-workflow

public static Model getModelVariables(ObjectNode nodesVariables, Model model) throws Exception {
  if (StringUtils.isEmpty(nodesVariables) || StringUtils.isEmpty(nodesVariables.get(TAG_EX_MODEL))) {
    throw new Exception("");
  }
  JsonNode modelNode = nodesVariables.get(TAG_EX_MODEL);
  model.setName(NodeVariableUtil.hasVariableEmpty(modelNode.get(ModelDataJsonConstants.MODEL_NAME)));
  model.setMetaInfo(NodeVariableUtil.hasVariableEmpty(modelNode.get(TAG_EX_METAINFO)));
  model.setTenantId("userId");
  model.setVersion(Constants.DEFAULT_VERSION);
  if (!StringUtils.isEmpty(modelNode.get(ModelDataJsonConstants.MODEL_REVISION))) {
    model.setVersion(Integer.parseInt(modelNode.get(ModelDataJsonConstants.MODEL_REVISION).textValue()));
  }
  return model;
}
origin: org.activiti/activiti-rest

 @ApiOperation(value = "Create a model", tags = {"Models"}, notes = "All request values are optional. For example, you can only include the name attribute in the request body JSON-object, only setting the name of the model, leaving all other fields null.")
 @ApiResponses(value = {
   @ApiResponse(code = 200, message = "Indicates the model was created.")
 })
 @RequestMapping(value = "/repository/models", method = RequestMethod.POST, produces = "application/json")
 public ModelResponse createModel(@RequestBody ModelRequest modelRequest, HttpServletRequest request, HttpServletResponse response) {
  Model model = repositoryService.newModel();
  model.setCategory(modelRequest.getCategory());
  model.setDeploymentId(modelRequest.getDeploymentId());
  model.setKey(modelRequest.getKey());
  model.setMetaInfo(modelRequest.getMetaInfo());
  model.setName(modelRequest.getName());
  model.setVersion(modelRequest.getVersion());
  model.setTenantId(modelRequest.getTenantId());

  repositoryService.saveModel(model);
  response.setStatus(HttpStatus.CREATED.value());
  return restResponseFactory.createModelResponse(model);
 }
}
origin: org.activiti/activiti-rest

model.setTenantId(modelRequest.getTenantId());
org.activiti.engine.repositoryModelsetTenantId

Popular methods of Model

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

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • getContentResolver (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Path (java.nio.file)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Github Copilot alternatives
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