congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ContentItem.setScopeType
Code IndexAdd Tabnine to your IDE (free)

How to use
setScopeType
method
in
org.flowable.content.api.ContentItem

Best Java code snippets using org.flowable.content.api.ContentItem.setScopeType (Showing top 3 results out of 315)

origin: org.flowable/flowable-engine

contentItem.setProcessInstanceId(processInstanceId);
contentItem.setScopeId(scopeId);
contentItem.setScopeType(scopeType);
contentItem.setField(formField.getId());
contentItem.setTenantId(tenantId);
origin: org.flowable/flowable-cmmn-engine

contentItem.setProcessInstanceId(processInstanceId);
contentItem.setScopeId(scopeId);
contentItem.setScopeType(scopeType);
contentItem.setField(formField.getId());
contentItem.setTenantId(tenantId);
origin: org.flowable/flowable-ui-task-rest

protected ContentItemRepresentation uploadFile(User user, MultipartFile file, String taskId, String processInstanceId, String caseId) {
  if (file != null && file.getName() != null) {
    try {
      String contentType = file.getContentType();
      // temp additional content type check for IE9 flash uploads
      if (StringUtils.equals(file.getContentType(), "application/octet-stream")) {
        contentType = getContentTypeForFileExtension(file);
      }
      ContentItem contentItem = contentService.newContentItem();
      contentItem.setName(getFileName(file));
      contentItem.setProcessInstanceId(processInstanceId);
      contentItem.setTaskId(taskId);
      if (StringUtils.isNotEmpty(caseId)) {
        contentItem.setScopeType("cmmn");
        contentItem.setScopeId(caseId);
      }
      contentItem.setMimeType(contentType);
      contentItem.setCreatedBy(user.getId());
      contentItem.setLastModifiedBy(user.getId());
      contentService.saveContentItem(contentItem, file.getInputStream());
      return createContentItemResponse(contentItem);
    } catch (IOException e) {
      throw new BadRequestException("Error while reading file data", e);
    }
  } else {
    throw new BadRequestException("File to upload is missing");
  }
}
org.flowable.content.apiContentItemsetScopeType

Popular methods of ContentItem

  • setProcessInstanceId
  • setTaskId
  • getId
    unique identifier
  • setField
  • setScopeId
  • setTenantId
  • getContentStoreId
  • getMimeType
  • getProcessInstanceId
  • getTaskId
  • isContentAvailable
  • setContentStoreId
  • isContentAvailable,
  • setContentStoreId,
  • setContentStoreName,
  • setCreatedBy,
  • setLastModifiedBy,
  • setMimeType,
  • setName,
  • getContentStoreName,
  • getCreated

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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