alfresco-share

Get NodeRef of a workflow task Alfresco

时光总嘲笑我的痴心妄想 提交于 2020-01-16 03:18:24
问题 I create a workflow, and when I go to the task-edit page: I'm trying to obtain the nodeRef of the file (latexexemplo-2.pdf) of the workflow task: http://localhost:8080/share/page/task-edit?taskId=activiti$20649 I'm trying to make this way: var taskId = args.taskId var task = workflow.getTaskById(taskId); nodeRef = task.getPackageResources()[0].nodeRef; But I obtain "args is not defined" ... "workflow is not defined" ... "task is not defined". How can I get the nodeRef with another way? 回答1:

Java script code is not working in property page pop-up

这一生的挚爱 提交于 2020-01-14 05:56:48
问题 I wrote below code : <control template="/com/alfresco/components/form/controls/datatable-property.ftl"> <control-param name="config"> Select Party, Select Party, dropdown, ["Party1", "Party2", "Party3", "Party4"]; Party Name, Party Name, dropdown, ["aaa", "bbb", "ccc", "ddd"]; Party Constitution, Party Constitution, dropdown, ["corporation", "individual", "other"]; </control-param> </control> Its working perfect on normal alfresco property page. But if we edit properties in pop-up, then same

Java script code is not working in property page pop-up

左心房为你撑大大i 提交于 2020-01-14 05:56:11
问题 I wrote below code : <control template="/com/alfresco/components/form/controls/datatable-property.ftl"> <control-param name="config"> Select Party, Select Party, dropdown, ["Party1", "Party2", "Party3", "Party4"]; Party Name, Party Name, dropdown, ["aaa", "bbb", "ccc", "ddd"]; Party Constitution, Party Constitution, dropdown, ["corporation", "individual", "other"]; </control-param> </control> Its working perfect on normal alfresco property page. But if we edit properties in pop-up, then same

Get if a user is in a specific alfresco site

随声附和 提交于 2020-01-07 03:01:45
问题 I am working in a JavaEE project and i want simply see if a user is a member of an private Alfresco site using CMIS. I need to see if the user is a member of this (private,public) Site and his current situation in this site. 回答1: You cannot easily do this with CMIS alone. But you can use the SiteService because it has an isMember method. This would only work if your code is running in the same process as Alfresco (like in an action, behavior, or web script). If you are running code in a

Packages not defined

陌路散爱 提交于 2020-01-03 06:27:12
问题 i wrote a script in javascript and used it in rules (share). The script start with: var ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); I m getting an error telling me that "Reference error: Packages is not defined". How can i solve this issue? 回答1: The Packages object is only available for code which is considered "secure". This is most likely failing because the code is from a node in the Repository/Data-Dictionary. Put it somewhere in the

Alfresco Workflow Share Form

半城伤御伤魂 提交于 2020-01-03 06:22:23
问题 I am trying to build a custom workflow in alfresco community edition. Basically I am trying to modify the existing workflow called lifecycleprocess. I have been able to deploy the process using workflow console without error. But I am not able to do any change at all on the workflow form. My workflow is called leaveprocess and I have the following code : Path : alfresco/tomcat/shared/classes/alfresco/extension/ leave-process-bpmn20.xml <?xml version="1.0" encoding="UTF-8" ?> <definitions id=

Customizing Surf Platform Root-Scoped API

北战南征 提交于 2020-01-02 10:06:32
问题 I want to customize Surf Platform Root-Scoped API specifically user object. That means add new property or method to user object to check the user is in certain group in header.inc.ftl [in share] like `<#if user.isAdmin> How can I implement this? Is Alfresco Root Scoped Objects can be used as Surf Platform Root-Scoped object? I have no idea of customizing surf platform root object. Can anyone help me??? 回答1: Not quite sure what you are trying to accomplish, but the role security model is

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

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