alfresco

AngularJS / Alfresco / CORS filter issue: No 'Access-Control-Allow-Origin' header

为君一笑 提交于 2020-01-01 19:29:30
问题 I have some problem with Alfresco (5.0.d) , my AngularJS (1.4.3) client and the CORS settings (typical cross-domain / No'Access-Control-Allow-Origin' header is present on the requested resource problem). I am calling the Alfresco REST API from an AngularJS application running on localhost: 3000 , to an Alfresco instance running on localhost: 8080 (Tomcat, no reverse-proxy in front). This XHR call works fine: http://localhost:8080/alfresco/service/slingshot/live-search-docs?t=Project&u=admin

How to get the mime type of a file after using file_get_contents from a remote server

纵然是瞬间 提交于 2020-01-01 03:11:11
问题 i'm reading a file from php from Alfresco and then outputting it to the browser. The only ptoblem is the mimetype or the extension of the file. This is the code i'm using: <?php ob_start(); //require_once("libs/FirePHPCore/fb.php"); require_once("libs/AlfrescoConnect.php"); $nomeFile = rawurldecode($_GET['nomeFile']); $urlDownload = $_GET['urlDownload']; $fileDownloadUrl = AlfrescoConnect::$serverPath. $urlDownload . "&attach=true&alf_ticket=".AlfrescoConnect::getTiket(); fb($fileDownloadUrl)

How to create site in share programmatically?

喜你入骨 提交于 2019-12-31 05:17:10
问题 This topic has been up quite some times in the community (forums, blog posts etc) and the conclusion is that this should be done making a REST Post call to share and the url /service/modules/create-site The reason is that some surf specific stuff like the site dashboard are created from the share side. However, I have been trying this approach from different angles all day, always ending up with a HTTP 200 in the response and no share site created. Quite frustrating. I'm running this on

Get the latest running process instance in Activiti

此生再无相见时 提交于 2019-12-25 16:55:07
问题 Is it possible to get the latest running process in Activiti with createProcessInstanceQuery ? runtimeService.createProcessInstanceQuery().processDefinitionKey('myKey').active().singleResult().getProcessInstanceId() I want to get the process instance ID of that definition but only the latest running process. Thank you 回答1: To get a specific running process instance ID , you can use the HistoryService with : for example to get the last started process instance with specific definition key:

Conversion of my alfresco javascript file into java class [duplicate]

我与影子孤独终老i 提交于 2019-12-25 16:44:20
问题 This question already has an answer here : Auto-generation of email with username and random password on creation of new user (1 answer) Closed 3 years ago . I need to convert this javascript file into java code.Please help if (document.isContainer && document.displayPath == "/Company Home/User Homes") { var owner = document.properties["cm:owner"]; var pNode = people.getPerson(owner); if (pNode!=null && pNode.exists()){ var userName = pNode.properties.userName; var email = pNode.properties

How to add custom table to the reviewTask screen of workflow form?

五迷三道 提交于 2019-12-25 12:09:54
问题 Alfresco Community v5.2 includes some of preconfigured workflows that available on the page /share/page/start-workflow Among others, there is one that is interested to me - is "Review and Approve (one or more reviewers) - Assign a review task to multiple reviewers" . This business process is well suited to the requirements of one of our customers. The only difference is that is needed to see the table of all the performers on the ReviewTask screens. I decided to start with this wonderful

How to add custom table to the reviewTask screen of workflow form?

倖福魔咒の 提交于 2019-12-25 12:09:19
问题 Alfresco Community v5.2 includes some of preconfigured workflows that available on the page /share/page/start-workflow Among others, there is one that is interested to me - is "Review and Approve (one or more reviewers) - Assign a review task to multiple reviewers" . This business process is well suited to the requirements of one of our customers. The only difference is that is needed to see the table of all the performers on the ReviewTask screens. I decided to start with this wonderful

How to configure PostgreSQL database for deploying alfresco on tomcat 8?

巧了我就是萌 提交于 2019-12-25 09:00:21
问题 I have built alfresco(version 5.2) from source on ubuntu 16.04. I want to deploy alfresco on tomcat 8. The deployment is successful however the PostgreSQL database is not getting configured as required. I have followed the steps as given in http://docs.alfresco.com/5.1/tasks/postgresql-config.html I observe the home page as given in image alfresco_page Am I missing onto something here that the PostgreSQL database is not getting configured. Is there any other configuration that needs to be

Not able to select a tag in Alfresco Community 5.0.d

六眼飞鱼酱① 提交于 2019-12-25 08:59:28
问题 I am using Alfresco Community 5.0.d and when I go to edit properties then click on select tag, I get below error in view. org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 00170047 Below is error in console. "status": { "code": 500, "name": "Internal Error", "description": "An error inside the HTTP server which prevented it from fulfilling the request." }, "message": "org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 00170049 ", "exception": "", "callstack": [],

How to end alfresco's human task

大憨熊 提交于 2019-12-25 08:47:03
问题 I have the following question. How can I end a user task in alfresco with method? I am trying to fix a alfresco's bug, which it doesn't allow me to have only a service task in a whole process. So I include a user task, but i want to auto-complete it (end it)... I have tried many things but nothing seem to work. What else can i do? I am trying to fix a alfresco's bug, which it doesn't allow me to have only a service task in a whole process.So I include a user task, but i want to auto-complete