public class VirtualWorkflowPackageExtension extends SpringBeanExtension<WorkflowPackageExtension,WorkflowPackageTrait> implements WorkflowPackageExtension
Constructor and Description |
---|
VirtualWorkflowPackageExtension() |
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.repository.NodeRef |
createPackage(org.alfresco.service.cmr.repository.NodeRef container)
Create a Workflow Package (a container of content to route through the Workflow).
|
void |
deletePackage(org.alfresco.service.cmr.repository.NodeRef container)
Deletes a Workflow Package
The workflow package aspect is removed, and if the container was previously created by the workflow
service (i.e.
|
List<String> |
getWorkflowIdsForContent(org.alfresco.service.cmr.repository.NodeRef packageItem)
Gets the Workflows that act upon the specified Repository content.
|
void |
setSmartStore(VirtualStore smartStore) |
boolean |
setWorkflowForPackage(WorkflowInstance instance)
Initialises the workflow package node on the
WorkflowInstance ,
adding the appropriate aspect and setting the appropriate properties to
mark it as a package for the given WorkflowInstance . |
register, setExtensionPoint
acceptsTrait, acceptsTraitClass, getTrait
public void setSmartStore(VirtualStore smartStore)
public org.alfresco.service.cmr.repository.NodeRef createPackage(org.alfresco.service.cmr.repository.NodeRef container)
WorkflowPackageComponent
createPackage
in interface WorkflowPackageComponent
container
- (optional) a pre-created container (e.g. folder, versioned folder or layered folder)public void deletePackage(org.alfresco.service.cmr.repository.NodeRef container)
WorkflowPackageComponent
deletePackage
in interface WorkflowPackageComponent
container
- NodeRefpublic List<String> getWorkflowIdsForContent(org.alfresco.service.cmr.repository.NodeRef packageItem)
WorkflowPackageComponent
getWorkflowIdsForContent
in interface WorkflowPackageComponent
packageItem
- the repository content item to get workflows forpublic boolean setWorkflowForPackage(WorkflowInstance instance)
WorkflowPackageComponent
WorkflowInstance
,
adding the appropriate aspect and setting the appropriate properties to
mark it as a package for the given WorkflowInstance
.setWorkflowForPackage
in interface WorkflowPackageComponent
instance
- the workflow instance to which the package belongs.true
if the package node was modified.Copyright © 2005–2017 Alfresco Software. All rights reserved.