alfresco

Downloading files from Alfresco with MuleSoft CMIS connector

元气小坏坏 提交于 2019-12-07 15:32:28
I have a little problem with the MuleSoft CMIS connector. I have an application that uploads and downloads files from Alfresco. I connect to Alfresco through AtomPub and use CMIS for all actions towards the Alfresco. The problem is this: I used to get the object from the repository and it worked fine. In my flow I added one component that takes the object from the flow, which is of type DocumentImpl , get InputStream , cast it to an Object and return it. The browser starts the download of the file but it has no idea what the file is because it has no extension attached to it. And finally the

Alfresco Share: accessing bpm_comment in Activiti workflow

ⅰ亾dé卋堺 提交于 2019-12-07 08:20:48
问题 In Activiti workflow, how can I access variable bpm_comment for each comment that's input by user? If I'm using bpm_comment in every task, it shows the same comment (the first one). 回答1: I've solved it! In each userTask I used the following code to retrieve bpm:comment. var taskId = "activiti$" + task.getId(); var taskComment = workflow.getTask(taskId).getProperties()["bpm:comment"]; 来源: https://stackoverflow.com/questions/10275075/alfresco-share-accessing-bpm-comment-in-activiti-workflow

Modify live search in Alfresco Commmunity 5.0.d

空扰寡人 提交于 2019-12-07 03:18:29
I am using Alfresco Community 5.0.d and trying to find the files related to live search. I would like to remove or modify the people finder in live search. Please let me know the files or way to achieve it. Share-header.get.js info is below: if (!user.isAdmin) { widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_MY_FILES"); widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_SHARED_FILES"); widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_SITES_MENU"); widgetUtils.deleteObjectFromArray(model.jsonModel, "id", "HEADER_PEOPLE"); widgetUtils

How do I pass a list of candidate users to an activiti workflow task in alfresco?

蹲街弑〆低调 提交于 2019-12-06 22:46:57
问题 I would like to be able to pass a list of users as candidates for a task. The users are retrieved from a data list and not available as a group. Activiti:candidateUsers would appear to be the right approach. Assuming that the users have been obtained and set in the variable, ipw_reviwers. <serviceTask id="alfrescoScripttask1" name="Alfresco Script Task" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate"> <extensionElements> <activiti:field name="script">

Alfresco Share not showing subtype or custom type

女生的网名这么多〃 提交于 2019-12-06 22:26:33
I have a custom model called "medicalBill" that inherits from another custom model called "clientDocument". For some reason in the share UI only the "clientDocument" is visible in the change type dialog. I have read that in the change type dialog it only shows models that are subtypes of cm:content. Does that mean ONLY direct subtypes? I have this in my share-config-custom.xml is it not possible to have a subtype of a subtype here. <types> <type name="cm:content"> <subtype name="cd:clientDocument"> <subtype name="mb:medicalBill"/> </subtype> </type> <type name="cm:folder"> </type> </types>

Alfresco migrating server

别说谁变了你拦得住时间么 提交于 2019-12-06 20:54:30
I'm migrating Alfresco Community 4.0.b from Server 1 to Server 2. Both are Ubuntu Server 10.04. I have followed the instruction from wiki , and I used binary installation file to install Alfresco on both server. Database back up and restore code: pg_dump -U postgres -h localhost -p 5432 -F c -v -f alfresco_db alfresco pg_restore -U postgres -h localhost -p 5432 -C -d postgres -v alfresco_db When starting Alfresco on Server 2, I get this following error: 2012-08-07 07:50:15,623 ERROR [web.context.ContextLoader] [main] Context initialization failed java.lang.NullPointerException at org.alfresco

How to create a rule in Alfresco to move content one folder to another?

痞子三分冷 提交于 2019-12-06 18:33:25
I am thinking to create a rule, possibly a javascript script, which will move documents one folder to another depending on its properties. In the other words, I will always upload documents to folderA . Alfresco will extract document's property, for example prop1 , and the rule that I define will move this document to folderB if it has property prop1 , otherwise it will move the document to folderC . I know how to extract properties but I don't know how to create this rule. I have no idea since I never used javascript. Any help will be appreciated. There are some properties which you need to

Find all files in a site with Alfresco 4.1 webscripts

眉间皱痕 提交于 2019-12-06 16:10:59
Alfresco Share doesn't keep track of content modified outside it's interface which makes the recently modified RSS/Dashlet useless. I'm working on creating an RSS that I can use within sites to pull a list of recently modified items. Right now I'm just working on getting the list of files and I'm stumbling a little bit as I'm not very familiar with Webscripts. I've got this piece of code that will retrieve the contents of a site then build an array of the files, the problem I'm running into is I could have many subfolders and I'm not sure how to properly traverse them. var folder = companyhome

How can I set a size limit for files uploaded in Alfresco 4.2.c?

淺唱寂寞╮ 提交于 2019-12-06 13:32:15
I think the title is pretty self-explanatory, now... I have been looking for a way of limiting the size of files uploaded in Alfresco 4.2.c through Share. I'm surprised there isn't any mechanism provided out-of-the-box, looks to me a pretty basic feature. After some investigation the only way I see to make it possible is by implementing custom policy or behavior, according to what's discussed here: http://forums.alfresco.com/forum/developer-discussions/web-content-services/limit-file-upload-size-34d-10272011-1416 Do anybody knows any other (simpler) approaches? EDIT: As Andreas Steffan

How to add a document to the Alfresco Repository with Java code?

有些话、适合烂在心里 提交于 2019-12-06 12:27:01
问题 EDIT: Apparently I had to make an AMP and map it to Alfresco.war. But now I can't access the code I wrote, so I guess I'll have to use Webscripts and the like. Can someone provide an example of how to add a document to the Alfresco Repository with a Java backed webscript? ORIGINAL QUESTION: I've searched google-wide for a way to add a document to the Alfresco Repository with Java code. But I was not able to find a way that would work. I know how I can add a document to the Repository: use the