Class EventContentItemFolderManager
java.lang.Object
com.flowable.platform.engine.impl.eventregistry.EventContentItemFolderManager
Adds created content items to the right folder. This is mostly a copy of the same logic found in AbstractPlatformDocumentTask. However, this logic isn't
accessible from here. Hence, I copied it. The only difference is that this logic doesn't support any custom folders as I don't think this is needed for the
unstructured data feature.
- Author:
- Felix Roth
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateAndSaveFolder(String scopeId, String scopeType, String tenantId, String parentFolderId, String folderName, CoreContentService contentService) protected Map<String, CoreContentItem> protected StringgetFolderNameForScope(String scopeId, String scopeType) getOrCreateParentFolder(String scopeId, String scopeType, String tenantId, CoreContentService contentService) Resolves the content-folder id of the running scope (BPMNprocess instance orCMMNcase instance), creating any missing folders along the hierarchy.protected StringgetOrCreateParentFolderFromHierarchy(String scopeId, String scopeType, String tenantId, String folderName, CoreContentService contentService, Map<String, CoreContentItem> cachedFolders) protected StringgetOrCreateRootFolderId(String tenantId, CoreContentService contentService, Map<String, CoreContentItem> cachedFolders) protected StringgetOrCreateWorkFolderId(String tenantId, CoreContentService contentService, Map<String, CoreContentItem> cachedFolders) getParentFolderIdForEmailContentItem(CoreContentItem contentItem, CoreContentService contentService, String baseFolderName) Configured platform root folder name (the parent under which scope and work folders live, default"Top").protected booleanisWorkFolder(CoreContentItem contentItem)
-
Field Details
-
DASH
- See Also:
-
folderNameParser
-
-
Constructor Details
-
EventContentItemFolderManager
-
-
Method Details
-
getRootFolderName
Configured platform root folder name (the parent under which scope and work folders live, default"Top"). Used by Document Event location resolution to anchor relativerootpaths. -
getParentFolderIdForEmailContentItem
public String getParentFolderIdForEmailContentItem(CoreContentItem contentItem, CoreContentService contentService, String baseFolderName) -
getOrCreateParentFolder
public String getOrCreateParentFolder(String scopeId, String scopeType, String tenantId, CoreContentService contentService) Resolves the content-folder id of the running scope (BPMNprocess instance orCMMNcase instance), creating any missing folders along the hierarchy. Used as the anchor folder for activity-bound document-event subscriptions whosefolderPathis scope-relative. -
getOrCreateParentFolderFromHierarchy
protected String getOrCreateParentFolderFromHierarchy(String scopeId, String scopeType, String tenantId, String folderName, CoreContentService contentService, Map<String, CoreContentItem> cachedFolders) -
getFolderNameForScope
-
createAndSaveFolder
-
getCachedFolders
-
getOrCreateWorkFolderId
protected String getOrCreateWorkFolderId(String tenantId, CoreContentService contentService, Map<String, CoreContentItem> cachedFolders) -
isWorkFolder
-
getOrCreateRootFolderId
protected String getOrCreateRootFolderId(String tenantId, CoreContentService contentService, Map<String, CoreContentItem> cachedFolders)
-