alfresco

Alfresco check for adding files

烈酒焚心 提交于 2019-12-13 04:33:21
问题 There is a review and approval workflow On the start forms are attached files and selected executors( Package Items and People selection ). Then create a task is assigned to the previously selected executors. Each executor sees the task assigned to it, and file attachments. I need to check for adding files. While the executor has not added a file it can not approve the task. I created the counter at the time of task creation taskListener event="create" . He counts the files sent to the

Docker host rmi throws invalid authority but able to ping

五迷三道 提交于 2019-12-13 04:04:57
问题 I've Alfresco, Running on one docker container A and exposes rmi on say 33333 . Another normal java service runs on container B. Both are connected to same custom bridge network. When container B tries to connects to alfresco via rmi using url rmi://alfresco:33333 it throws java.net.MalformedURLException: invalid authority: rmi://alfresco:33333/Abcdefghi . But the same is able to ping alfresco. I think the url format given in rmi is wrong. if so. What should it be substituted with? I already

How can I find alfresco empty foldres using Lucene Query

℡╲_俬逩灬. 提交于 2019-12-13 03:49:34
问题 I want to retrieve the list of folders in a specific node whose list of childrens is empty using Lucene query . I create this query: +PATH:"/app:company_home/cm:contexts/cm:ctx_exploitation/cm:runs/cm:Run_322645//."+Children is empty. but it does not give good results. What is the right Lucene syntax to do this 回答1: There is no way to find empty folders using a Lucene query. However, there are some java services and javascript APIs in alfresco like 'FileFolderService' in Java and

Alfresco login api giving Bad Request 400

放肆的年华 提交于 2019-12-13 03:33:44
问题 I am trying to login to alfresco through api. I do not know why it is returning error 400 Bad Request. The json should be correct and in my ajax call I have also set the content type to 'application/json'. This is my ajax call. var jsonData = JSON.stringify({ username : usernameV, password : passwordV }); var request = $.ajax({ settings : {contentType:'application/json'}, type: "POST", url: "http://---ip---/alfresco/service/api/login", data: jsonData }); The json string in the console. {

Custom form new user error in Alfresco

梦想的初衷 提交于 2019-12-13 02:21:50
问题 How can I make a custom user profile ? I want to add a new field to the users in Alfresco... I try to use this : http://ecmarchitect.com/archives/2012/02/27/1555, the code : http://ecmarchitect.com/images/articles/alfresco-people/someco-people.zip... Important code: SignUserFactory.java package com.someco.share; import java.io.ByteArrayInputStream; import java.io.IOException; import java.util.Map; import org.alfresco.web.site.SlingshotUserFactory; import org.json.JSONException; import org

Alfresco webscript can't find Company Home folder

久未见 提交于 2019-12-13 00:23:24
问题 I'm trying to create a custom webscript on Alfresco Community. I'm following this tutorial: http://docs.alfresco.com/community/concepts/ws-folderListing-intro.html. Everything works out fine in the beginning. When I navigate to localhost:8080/alfresco/service/ and click on 'Refresh webscripts', my new webscript is registered. But now when I navigate to localhost:8080/alfresco/service/dir/Company%20Home I get the following message: The Web Script /alfresco/service/dir/Company Home has

Get All Folder and Documents in Repository Alfresco Restful

亡梦爱人 提交于 2019-12-12 21:38:51
问题 I'm learning Alfresco. I want get all folder and documents in Repository with Restful API. How can I do this? 回答1: Webscripts are a nice way to build your own API but in this case you should be fine with the buildin API that Alfresco provides you OOTB. You can fetch all folders/documents using the REST APIs getDescendants call. Please see the API spec for the exact details: https://wiki.alfresco.com/wiki/Repository_RESTful_API_Reference#Retrieve_tree_of_descendants_.28getDescendants.29 It

How does cm:countable aspect works in alfresco?

旧巷老猫 提交于 2019-12-12 21:04:32
问题 I have added: <mandatory-aspects> <aspect>cm:countable</aspect> </mandatory-aspects> To list definition, so every item should have "increment" field. But when list items are created nothig happened. I have check the follwoing code: nodeService.getAspects(nodeRef) return all defined aspects for item, cm:countable presents in this list. nodeService.getProperty(nodeRef, QName.createQName("http://www.alfresco.org/model/content/1.0", "countable")) return null. nodeService.getProperties(nodeRef)

Ftp throws WebException only in .NET 4.0

浪子不回头ぞ 提交于 2019-12-12 19:59:22
问题 I have following c# code. It runs just fine when compiled against .NET framework 3.5 or 2.0 (I did not test it against 3.0, but it will most likely work too). The problem is, that it fails when built against .NET framework 4.0. FtpWebRequest Ftp = (FtpWebRequest)FtpWebRequest.Create(Url_ + '/' + e.Name); Ftp.Method = WebRequestMethods.Ftp.UploadFile; Ftp.Credentials = new NetworkCredential(Login_, Password_); Ftp.UseBinary = true; Ftp.KeepAlive = false; Ftp.UsePassive = true; Stream S = Ftp

Alfresco - Get username in workflow

∥☆過路亽.° 提交于 2019-12-12 18:52:27
问题 I'm searching for the username of assignees when I create on a workflow... I use this: public void notify(DelegateExecution execution) { // get value of property mymodel:myproperty Object assignees = execution.getVariable("bpm_assignees"); } When I get bpm_assignees I get this: bpm_assignees map value: [Node Type: {alfresco.org/model/content/…}person, Node Aspects: [{alfresco.org/model/content/…}ownable, {alfresco.org/model/system/1.0}referenceable, {alfresco.org/model/system/1.0}localized],