alfresco-webscripts

How to display all the properties of the selected reviewers?

僤鯓⒐⒋嵵緔 提交于 2019-12-25 08:21:31
问题 Consider the business process "Review and Approve (one or more reviewers) - Assign a review task to multiple reviewers" . When I choose reviewers I see only their properties cm:userName . How to display all the properties of the type cm:person? For example: cm:userName cm:firstName cm:middleName cm:email cm:organizationId cm:jobtitle cm:googleusername And so on... Instead of this container (part of the association.ftl): ... <div id="${controlId}-currentValueDisplay" class="current-values"><

How to use external AMP in alfresco Maven Project

痴心易碎 提交于 2019-12-25 08:02:58
问题 I'm trying to use the alfresco-pdf-toolkit addon in my Alfresco Maven project, is there anyway to include the amp in the pom.xml file of my project? 回答1: Yes, assuming your project uses the all-in-one archetype of the Alfresco Maven SDK, you can add an AMP dependency as an overlay. Go look in the repo pom.xml for an example. You'll see something like: <overlay> <groupId>${alfresco.groupId}</groupId> <artifactId>alfresco-spp</artifactId> <type>amp</type> </overlay> Which is how the all-in-one

Alfresco - Transform Doc to pdf and download custom action

拥有回忆 提交于 2019-12-25 04:36:05
问题 I have created one custom action to convert document to pdf. It worked fine but I want to download converted pdf on click of same custom action , I mean I want to convert and download document on clicking of custom action.How can do that? I have tried following code. newdoc = document.transformDocument("application/pdf"); newdoc.save(); 回答1: Here you go and you need to pass your actual nodeRef values. Added new document action in share-custom-config.xml <action id="convert-to-pdf-download"

Alfresco: How can I check if a value already exists in DB save new values?

99封情书 提交于 2019-12-14 03:32:59
问题 Alfresco In workflow form one fields values. I need to check values already exist in DB or not if exists don't save if not save different values. Is this possible? 回答1: You are saying "DB" but I will assume you mean "properties on an object stored in the Alfresco repository". If so, from JavaScript embedded in your workflow you can check a property value. If a property is named "foo:someProperty" then you can get it using doc.properties['foo:someProperty']. And you can get the object from the

How to queries all the assignments from the repository?

纵饮孤独 提交于 2019-12-13 07:24:28
问题 My environment: Alfresco Share v5.2.d (r134641-b15, Aikau 1.0.101.3, Spring Surf 5.2.d, Spring WebScripts 6.13, Freemarker 2.3.20-alfresco-patched, Rhino 1.7R4-alfresco-patched, Yui 2.9.0-alfresco-20141223) Alfresco Community v5.2.0 (r134428-b13) schema 10005 When I start the workflow, I can assign executors - the list of users who will participate in the business process. Somehow I need to get a list of all those users. There is an excellent guide, which shows how to use Lucene to get a list

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 - 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],

Make Alfresco Web Script show error 500 as JSON rather than HTML

孤人 提交于 2019-12-12 06:58:42
问题 I am writing an Alfresco Web Script that will be consumed by external computers. When I throw a WebScriptException, I would like the error 500 to come with an error page in JSON, rather than HTML, so that the external computers can parse it. Right now I am getting this: How to get JSON instead? I see that some Web Scripts manage to produce error pages as JSON (for error 401 though, so probably before the Web Script actually gets called): 回答1: You can create a freemarker dedicated for each

how to Integrate google docs with alfresco community 4.0?

旧街凉风 提交于 2019-12-12 05:15:57
问题 I found some configuration for enable google docs These properties I have added in alfresco-global.properties googledocs.googleeditable.enabled = true googledocs.username =*******@gmail.com googledocs.password =************* and in share-config I have added the code and added aspect <aspect name="gd:googleEditable"/> <!-- Google Docs™ integration --> <google-docs> <enabled>true</enabled> <creatable-types> <creatable type="doc">application/msword</creatable> <creatable type="xls">application

How to auto-generate a mail with the password created after clicking on “Create User” button in Alfresco New User page? [duplicate]

落爺英雄遲暮 提交于 2019-12-12 04:32:08
问题 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 . How can we auto-generate a mail with the new user's password as soon as we click on the create user button in Alfresco New User page. Do we need to create any webscript or action which can redirect to create user action and a corresponding mail will be generated automatically. Please let me know how to create the link between Create User