How to get documents attached to the workflow
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2015 09:42 AM
To get the companyHome I use this method:
public NodeRef getCompanyHome()
{
return nodeLocatorService.getNode("companyhome", null, null);
}
the spring confuguration is the following:
bean id="TransformationHandler" class="org.alfresco.transformation.TransformationHandler" parent="baseJavaDelegate" lazy-init="default" autowire="default" dependency-check="default"
property name="nodeService" ref="NodeService"
property name="nodeLocatorService" ref="nodeLocatorService"
when I loop throug the children of a NodeRef I see the root folder structure(I'm not shure I name them right in english): data dictionary, guest catalog, users home space, published and so on. But as I run my code in the workflow I need to get the parent of the files I attached to the workflow. So how to access files attached to the workflow
public NodeRef getCompanyHome()
{
return nodeLocatorService.getNode("companyhome", null, null);
}
the spring confuguration is the following:
bean id="TransformationHandler" class="org.alfresco.transformation.TransformationHandler" parent="baseJavaDelegate" lazy-init="default" autowire="default" dependency-check="default"
property name="nodeService" ref="NodeService"
property name="nodeLocatorService" ref="nodeLocatorService"
when I loop throug the children of a NodeRef I see the root folder structure(I'm not shure I name them right in english): data dictionary, guest catalog, users home space, published and so on. But as I run my code in the workflow I need to get the parent of the files I attached to the workflow. So how to access files attached to the workflow
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2015 11:47 AM
Hello,
The documents attached to a workflow are located in a node (a folder) called workflow package. When you're working on a workflow instance, the nodeRef of this folder can be retrieved thanks to getWorkflowPackage method of your WorkflowInstance object.
From this nodeRef, you can get your documents. They are the children of this folder.
The documents attached to a workflow are located in a node (a folder) called workflow package. When you're working on a workflow instance, the nodeRef of this folder can be retrieved thanks to getWorkflowPackage method of your WorkflowInstance object.
From this nodeRef, you can get your documents. They are the children of this folder.
