Add aspect to an Alfresco Folder

cancel
Showing results for 
Search instead for 
Did you mean: 
mrahn
Active Member II

Add aspect to an Alfresco Folder

Dear Community.

We run Alfresco Process Services 1.6.0.

Having the "Call Alfresco Action" we are able to add and modify aspects of documents stored in Alfesco. I wonder whether the same would be possibile for folders.

Business case: Having a complex long running process we create an Alfesco folder for each process instance. All attachments will be copied to this Alfresco folder. After each process step we update the metadata of this folder using the Store Entity Task, e.g. with a status. I don't want to preset the aspect in Alfresco but add the aspect to the newly created folder initiated by Activiti.

Regards

Marco

5 Replies
fcorti
Alfresco Employee

Re: Add aspect to an Alfresco Folder

Hi Marco,

The technical solution behind adding aspect to content or folder is the same, on the ECM side.

From what I understand from your question, you should be able to manage the aspects exactly in the same way.
Please let me know if this helps you or I missed some details (in this case, please share them).

Many thanks.

-F 

mrahn
Active Member II

Re: Add aspect to an Alfresco Folder

Hi Francesco.

We use the Alfresco Process Services 1.6.0 Kickstart, trying to avoid development driven coding als long as possible.

The Kickstart interface doesn't seem to provide functionality to add an aspect to a folder in Alfresco.

Best regards

Marco

fcorti
Alfresco Employee

Re: Add aspect to an Alfresco Folder

Did you tried with Call Alfresco Action?

Below a couple of a screenshots.

mrahn
Active Member II

Re: Add aspect to an Alfresco Folder

Hi Francesco.

As I wrote in my first posting I'm aware of the "Call Alfresco Action" task. You get a couple of functionality to work on documents that are already in Alfresco before the workflow starts. I don't see how to work on a folder that has been created using a Store Entity task. The same seems true for workflow attachments that are copied to Alfresco.

I'd be happy if I'd miss something.

Marco

fcorti
Alfresco Employee

Re: Add aspect to an Alfresco Folder

Hi Marco,

When the "Call Alfresco Action" task is not enough the Script Task can be used, interacting with the Content Services REST API.
Using the Content Services REST API you will have the full control of your repository.

To discover the available services you can use the Content Services API-Explorer.

At the link below an example of API-Explorer.

Alfresco Content Services REST API Explorer 

I hope this will help you.