Menu
  • HOME
  • TAGS

Alfresco activiti mail.execute taking too much time

email,workflow,alfresco,activiti

The simple fix would be to send the mail asynchronously, so that the action call returns immediately and the sending occurs in another thread. The only downside of this is that the calling code won't be notified if the sending fails (though you can attach a compensating action for failure...

alfresco selectone (dropdown list) not work

eclipse,forms,share,config,alfresco

All thanks, the problem is solved! It was necessary to manually add the path to the template file and describe the parameters in the file config-custom.xml (%Alfresco%\tomcat\shared\classes\alfresco\web-extension) It was: <field set="info" label-id="Value select" id="hire:valueselect"/> After the change: <field set="info" label-id="Value select" id="hire:valueselect"> <control template="/org/alfresco/components/form/controls/selectone.ftl"> <control-param...

Alfresco: Javascript data list creation

javascript,list,data,workflow,alfresco

There are 2 javascript object on which you have confusion.One is site and other is node.Site object does not have method called childByNamePath. Instead of that use below for getting datalist. var dataLists = site.getContainer("dataLists"); Your code for retrieving site is correct.The only change is for datalist....

How to search Folder with luceneSearch in Alfresco

folder,alfresco

You can try this query: var folderNode = search.luceneSearch("PATH:\"/app:company_home/cm:HereYourFolderName\" AND TYPE:\"cm:folder\""); And make sure you have created this web-script in alfresco....

GetContentChanges returns “Unauthorized”

alfresco,cmis,opencmis,dotcmis

The problem was that the old CMIS URL http://[host]:[port]/alfresco/cmisatom was used. Solution: Replacing that URL in the configuration with the new CMIS URL http://[host]:[port]/alfresco/api/-default-/public/cmis/versions/1.0/atom solved the problem....

Alfresco: Display form in other model

forms,model,workflow,alfresco,activiti

Many thanks for Krutik for his answer. Below is my full explanation on how I was able to get it to work. Summary In your bpmn file, create a userTask that loads a duplicate of your form (duplicate meaning copy the type in your model with a different name). Use...

Alfresco SSL handshake exception

tomcat,ssl,tomcat6,alfresco

Solr search engine which was introduced in alfresco had issue with it's certificate validity date, So all alfresco 4.0.x version has this issue which cause breaking of solr search. To fix that you need to follow steps mentioned in this forum post. https://forums.alfresco.com/forum/announcements/important-ssl-certs-solr-alfresco-4-expire-week-08152012-1307...

Alfresco 5.0.c with Active Directory

active-directory,alfresco,alfresco-share

This example from the 5.0 documentation should get you going. PS: The Admin Console is Enterprise Edition only....

How do I read the innerChild value using config.scoped?

alfresco,alfresco-share

Using config.scoped["all"]["SiteName"] gives you the sort object as result, which should be composed by two entries. Since accessing configuration is performed using the same techniques and syntax as any other model data, you should access the two distinct elements like this: var sortObj = config.scoped["all"]["SiteName"]; var msgVal0 = sortObj[0].msgVal; var...

How to retrieve a content of Alfresco workflow?

javascript,alfresco,activiti

Finally, I resolve my questions using other RESTful URL. So, the steps to retrieve a content of a workflow is the next: 1. I get the package ID (this is a folder node) of the task of workflow: GET /alfresco/service/api/task-instances/activiti$taskID { "data": { "id": "activiti$taskID", "url": "api\/task-instances\/activiti$taskID", "name": "wf:taskName", "title":...

Alfresco Custom Data List Type Text Field Help Text

forms,alfresco,ecm

Eeuh that's just a div in the control field for all the date fields. Take a look at alfresco/site-webscripts/org/alfresco/components/form/controls/date.ftl The message you see is in this div: <div class="format-info"> <span class="date-format">${msg("form.control.date-picker.display.date.format")}</span> <#if showTime><span class="time-format<#if disabled>-disabled</#if>">${msg("form.control.date-picker.display.time.format")}</span></#if> </div> So you want a string, just...

alfresco-maven-plugin; truezip issues to pre-AMP a WAR

maven,alfresco

You were using an unsupported Maven version (in fact the Alfresco SDK 2.0.0 requires Maven 3.2.5 and above, see http://docs.alfresco.com/sdk2.0/tasks/alfresco-sdk-install-maven.html). This explains why you are seeing this problem which instead does not exist in properly tested configurations. Will close the related https://github.com/Alfresco/alfresco-sdk/issues/265 as well....

Alfresco: Modifying email link

email,alfresco

To change the email template(s) for all notifications: wf-email.html.ftl located in Data dictionary/Email templates/Workflow notification Change the following html snippet: <a href="${shareUrl}/page/task-details?taskId=${args.workflowId}">${shareUrl}/page/task-details?taskId=${args.workflowId}</a> Into <a href="${shareUrl}/page/task-edit?taskId=${args.workflowId}">${shareUrl}/page/task-edit?taskId=${args.workflowId}</a> If you're using your own notification mechanism, then create a new email template based on...

Alfresco : How to filter documents in workflow

java,workflow,alfresco,alfresco-share

I'm back with a solution even if I'm not sure if it's the best. Any way that solved my problem. I modified the method ObjectRenderer_renderCellAdd of object-finder.js to check if the user is the document coordinator and if there is no other active workflow linked to the document. Instead of...

Alfresco login page bypassing

alfresco,alfresco-share

Finally i resolved the issue by calling the login page url http://ip:port/share/page/ via Curl with login parameters(username and pwd)...I got JsessionId as response from curl...Now i took that JsessionId and set inside the browser...so wen u click http://ip:port/share/page/ the login page is bypassed

Just-installed Alfresco does not return a latestChangeLogToken: Is it OK in regard to the CMIS protocol?

alfresco,standards-compliance,cmis

No, it is not OK in regard to the CMIS specification. All requests to http://server/alfresco/api/-default-/public/cmis/versions/1.1/atom/changes MUST return a token when ChangeLog is enabled. From the CMIS 1.1 specification: 2.1.15.3 "Latest Change Token" repository information Repositories that support the changeLogToken event MUST expose the latest change log token (i.e. the change...

Add new mandatory aspect to locked node

javascript,alfresco

Using the fme JavaScript console, I've found a way to solve the problem. It is possible to disable behaviours on a node, include the behaviour that checks for the node being locked. Inside the JavaScript console, this code does what I want: var node = search.findNode(nodeRef); var ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext();...

Including third party AMP in main project in Alfresco Maven SDK, especially WCMQS

maven,alfresco,alfresco-share

Assuming you already have the external amps available to maven (either because their're on Maven Central repo or because they're installed locally), you simply add the external amps as dependencies in your amp project. E.g.: <dependency> <groupId>org.sharextras</groupId> <artifactId>javascript-console-repo</artifactId> <version>0.6.0</version> <type>amp</type> </dependency> You also must configure the maven dependency plugin. You...

AlfrescoRuntimeException: 01100031 GetModelsDiff return status is 404

tomcat,alfresco,runtimeexception

reinstalling alrfesco solved the problem

Access Alfresco Workflows I've started in JavaScript

javascript,workflow,task,alfresco,alfresco-share

You might want to drill in to the repository web scripts that do this to see how they work. For example, look at this: http://localhost:8080/alfresco/s/api/workflow-instances?initiator=admin&exclude=jbpm$wcmwf:*,jbpm$wf:articleapproval,activiti$publishWebContent,jbpm$publishWebContent,jbpm$inwf:invitation-nominated,jbpm$imwf:invitation-moderated,activiti$activitiInvitationModerated,activiti$activitiInvitationNominated&skipCount=0&maxItems=50&pooledTasks=false&state=COMPLETED That's what the "Workflows...

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

javascript,alfresco

There are some properties which you need to set while credating rule.Explanation of those properties are as below. 1.When the rules will be triggered: - Items are created or enter this folder - Items are update - Items are deleted or leave this folder 2.criteria for the rule to be...

Searching in Alfresco in all tenants

alfresco

I don't think its possible to search files or folders in all existing alfresco tenants.As far as I know tenants are designed for hiding visibility of document from one to another tenants.That is the main purpose for which tenant were introduced. So that single alfresco instance can be used for...

Debug Alfresco 4.2 Web scripts in Eclipse

eclipse,alfresco,alfresco-share

If you want to do this thing in eclipse below blow will help you in that case. Details are on middle of blog. http://axel-faust.de/?cat=3&lang=en There is also debugger available in alfresco and share ,in webscript servuce page. You will also find option for same in below url. http://localhost:8080/alfresco/service/index Click Refresh...

Alresco CMIS multi aspect with same properties name

alfresco,cmis,opencmis

I'm not sure why it's not giving an error on start-up. But in Alfresco a property must be unique in it's model. So your my:companyId is used twice in different aspects. The best practice is to create 1 aspect called my:company which has a property my:companyId. You can just define...

XML Parsing in Alfresco via Javascript

javascript,xml,alfresco

Ok, I have found the solution by myself. I hope this helps someone. var docXml = new XML(document.content); document.name = docXml.phoneEntry.name; ...

How to change the form (edit properties) in ALFRESCO?

alfresco,alfresco-share

We can add form by editing below file in alfresco share share-config-custom.xml. Do not touch any other file. This file should be placed inside {tomcat}\shared\classes\alfresco\web-extension folder. For adding field in alfresco share form you should know below thing. 1.There is one condition attribute in config element of alfresco share form,...

Step by step how to install and configure Alfresco 5 from source code to be up and running on Tomcat

alfresco

Many peoples are making mistakes like this.So for people like that.Please keep in mind that Most of the CMS are extendable without editing source code....

Alfresco 5.0.a - custom search facet

search,share,alfresco,faceted-search

Well I finally solve the problem. Just for clarification: I had a requirement to use 5.0.a version in which there is no Search Manager page. The solution which I used is a bit dirty, but it worked. I just overwrite the faceted-search.get.js and changed the facets array by adding my...

Clean date property value in Alfresco CMIS api

c#,wpf,alfresco

You can simply ommit the corresponding propertyValue. For example, if you only set this: postParameters.Add("propertyId[0]", "mycustomdatetimeproperty"); But don't set a respective propertyValue[0], the value will be set to null....

Alfresco Share Dashlet(UserDashlet and SiteDashlet)

alfresco,alfresco-share

There are 3 values which can be specified in family tag of dashlet in Descriptor file. 1.<family>site-dashlet</family> - Dashlet will be visible on site dashboard only. 2.<family>user-dashlet</family> - Dashlet will be visible in user dashboard only. 3.<family>dashlet</family> - It will be visible in both the dashboard....

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

java,alfresco

Luckily I have code for file upload thorugh JAVA backed webscript. Hope this help you too.To create java backed webscript see this Create one class named CustomFileUpload.java and put following content package com.upload; import org.springframework.extensions.webscripts.Cache; import org.springframework.extensions.webscripts.DeclarativeWebScript; import org.springframework.extensions.webscripts.Status; import org.springframework.extensions.webscripts.WebScriptRequest; import java.io.File; import java.io.IOException; import...

How to configure `log4j` for `share-amp`

log4j,alfresco,alfresco-share

The locations you're mentioning seem to be taken from the Alfresco Repository extensions - logging guide, and not the Alfresco Share extensions section, which is why they're not working As far as I can check/remember, Share doesn't actually have (out of the box) a context file defining extensions/modules log4j files...

Alfresco Share Customization for Advanced Search

alfresco,alfresco-share,advanced-search

The share config isn't correct. Take a look at https://wiki.alfresco.com/wiki/Share_Advanced_Search#Search_Forms You need to change the model-type of cm:content form id="search" with the aspect fields. I'm on the phone so the answer maybe short. --UPDATE-- You can't select an Aspect in the drop-down in the Advanced Search, the current implementation of...

Is it/How to provide SecureContext to a Thread from a managed Spring bean

java,spring,concurrency,spring-security,alfresco

Because the SecurityContext is hold by SecurityContextHolder in a ThreadLocal Variable (the default strategy) thus the current thread, you need to pass the SecurityContext to the Callable because it's running in a different thread and then inject it to it's own ThreadLocal in SecurityContextHolder. I hope this solution applies to...

Linking Moodle with Alfresco

alfresco,moodle

Your problem is that you're using a tutorial written for Alfresco 4.0 or 4.1 on a 5.x install On Alfresco 4.x, the URL you mention http://127.0.0.1:8080/alfresco/api points to the Alfresco Web Services Endpoint. On Alfresco 5, that endpoint URL has changed, to make way for the new RESTful public API....

Alfresco moving document

listener,alfresco,execution

Update your process defination with below code. var dest = companyhome.childByNamePath("Sites/main/documentLibrary/Execut"); for (var i = 0; i < bpm_package.children.length; i++) { bpm_package.children[i].move(dest); } You are using wrong path.Path for site is Sites/main/documentLibrary/Execut and not site/main/documentLibrary/Execut...

How to convert a node object to JSON object in alfresco java webscript?

alfresco

In JavaScript: appUtils.toJSON(node, true); The boolean true/false is for using short Qnames. Here is some info about it....

Alfresco Java code to move documents to specific

alfresco,activiti

you can use fileFolderService to move any document.There is method in fileFolderService called move.You can fine more on this on below link. http://dev.alfresco.com/resource/docs/java/org/alfresco/service/cmr/model/FileFolderService.html For using filefolderService you need to inject that service.Ig you are using javabackend webscript you can do it like below in any context file. <bean id="webscript.{Path}.get" class="com.yaskawa.api.WebScript"...

Alfresco : Is it possible to add custom metadata/properties using REST APIS for a content or file.

api,rest,alfresco,alfresco-share

Yes, you have to create a module with model and custom aspects or types that will hold the custom metadata. Then you will upload the file and set properties using alfresco rest webscripts. For adding aspects you can use this webscript ...alfresco/s/script/org/alfresco/slingshot/documentlibrary/action/aspects.post If you do not want two http request(upload...

Association control - access denied

alfresco,alfresco-share

copy /alfresco/templates/webscripts/org/alfresco/repository/forms/pickerresults.lib.ftl to the extension folder and change the following loop <#list results as row> { "type": "${row.item.typeShort}", "parentType": "${row.item.parentTypeShort!""}", "isContainer": ${row.item.isContainer?string}, "name": "${row.item.properties.name!""}", "title": "${row.item.properties.title!""}", "description": "${row.item.properties.description!""}", <#if row.item.properties.modified??>"modified":...

Alfresco: Class has not been defined in the data dictionary

javascript,dictionary,alfresco

An Alfresco model can contain 0 or more types, along with other things like constraints, aspects etc. You can read more about content modelling in the Alfresco documentation on the subject As such, when you're creating a type, or setting a type onto a datalist, you need to use type's...

Can't add an add-on to my alfresco server 4.2.f

alfresco,alfresco-share,reset-password

The plugin which you are using is not designed for the latest version or version which you are using.There are some files which are changed in alfresco version 4.2f.I have designed new solution which is compatible with your version.There may be some designing issue, but you can change it in...

Alfresco permissions see list of node content but deny download

alfresco,opencmis

Yes, according to the documentation here When modifying access control, do not try to split ReadProperties and ReadContent. This does not make sense for search. A node and all of its properties, including content, are indexed as one entity. Splitting the evaluation of access for content and properties is not...

Forming query in Alfresco Full Text Search for JSON text file

json,alfresco,alfresco-share

No, Alfresco ist not a JSON DB (Anti-Pattern #4), the text is just indexed as full text. You'll have to use properties (-> Alfresco Content Model) to be able to query for your fields.

Uploading file with Python and Alfresco API

python,curl,upload,alfresco

You can use the very simple library Requests. import json import requests url = "http://localhost:8080/alfresco/service/api/upload" auth = ("admin", "admin") files = {"filedata": open("/tmp/foo.txt", "rb")} data = {"siteid": "test", "containerid": "documentLibrary"} r = requests.post(url, files=files, data=data, auth=auth) print(r.status_code) print(json.loads(r.text)) Output: 200 {'fileName': 'foo.txt', 'nodeRef': 'workspace://SpacesStore/37a96447-44b0-4aaa-b6ff-98dae1f12a73', 'status': {'code': 200, 'description': 'File uploaded...

how to set a variable in startevent in alfresco?

workflow,alfresco,activiti

Below is the code snippet which is working for me for using variable in next task. <startEvent id="startevent2" name="Start" activiti:initiator="${initiator.properties.userName}" activiti:formKey="aw:TransportManager"> <extensionElements> <activiti:executionListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener"> <activiti:field name="script"> <activiti:string> <![CDATA[ execution.setVariable('aw_vehicle_number',...

Alfresco Java backed web-script lookup by cmis:objectId

alfresco,cmis,opencmis

Well, the answer is a little ugly, but hopefully this helps someone... A good way to look up the NodeRef using an 'opaque' objectId should be to use CMISServices, obtained from the registry in your java backed web script, i.e. docRef = registry.getCMISService().getLatestVersion(docIdStr, false); Unfortunately, there's a bug in the...

Error building Alfresco CE 5.0a in eclipse

java,eclipse,maven,alfresco

First Question Will be ,Why you would like to compile alfresco source code?Are you aware that We can do many customization without customizing alfresco source code. Above was only for your information. First try to compile it without using eclipse.Due to that you are facing error. If still problem persist,...

Run Alfresco SOLR in its own tomcat

tomcat,solr,alfresco

This is the issue because, tomcat instance has no xalan.jar file in class path. And this should be the content of solr.xml <?xml version="1.0" encoding="utf-8"?> <Context docBase="D:/alfresco/alf_data/solr/apache-solr-1.4.1.war" debug="0" crossContext="true"> <Environment name="solr/home" type="java.lang.String" value="D:/alfresco/alf_data/solr" override="true"/> </Context> ...

Alfresco File Storage(alf_data)

java,ocr,alfresco,command-line-tool

You need to use the ContentService, specifically getReader(NodeRef,QName) then getContent(File) to a temporary file Your code would then be something like File tmp = File.createTempFile("for-ocr",".tmp"); ContentReader reader = contentService.getReader(nodeRef, ContentModel.PROP_CONTENT); reader.getContent(tmp); // Run the OCR program here tmp.delete(); ...

Get All Folder and Documents in Repository Alfresco Restful

java,api,rest,alfresco

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 returns...

Alfresco :: how to transfer a file from one server to alfresco repository

rest,alfresco,file-transfer

The restful API docs are at http://your-alfresco-server:8080/alfresco/service/index/uri/api/upload.

Alfresco optimal folder structure

lucene,alfresco,folder-structure

It is not recommended to have 5000 subfolders under one root folder.It will impact your performance very badley. You need to divide repository based on some logic structure in such a way that you could minimize the number of subfolders at each level. Logical group based on some criteria which...

Alfresco Javascript Action to remove all cm:contains but primary parent

alfresco,alfresco-share

Found the answer by using the parent methods instead var primaryParent = document.parent; var parents = document.parents; for(var parent in parents){ if(parents[parent].nodeRef + "" !== primaryParent.nodeRef + ""){ parents[parent].removeAssociation(document, "cm:contains"); parents[parent].removeNode(document); } } ...

Alfresco - delete content store deleted, period - cycle too long

data,delete,alfresco,space

By default the time before content is deleted is set to 14 days. You can set the value of 'protectDays' in your alfresco-global.properties: system.content.orphanProtectDays=2 Note - Don't set this to 0, it causes other issues....

Alfresco: update data list line

javascript,nodes,alfresco

You can use this to check existing datalist item. var opportunity = orpList .childByNamePath(execution.getVariable("orpWorkflow_nodeName")); // If the data list Item is not been created yet, create it if (!opportunity ) { var orpList = orpList .createNode(execution.getVariable("orpWorkflow_nodeName"),"dl:dataList");} ...

How to hide default entries from create datalist menu in alfresco?

alfresco,alfresco-share

First thing ,which you need to consider is your alfresco version, as in the latest version of alfresco there are many changes.We should always put alfresco version in question. In alfresco version 4 or in nearer version you can consider below. Major code changes will be in Alfresco.component.DataList object(Component) of...

Alfresco: How to use ScriptNode processTemplate API without a document?

alfresco

Not quite understandning what you are after here, I however think this is possible (not sure why anyone would like to do it though.) You write your own class extending the BaseTemplateProcessorExtension, in that class you could write a method performing the stuff you want. public class MyTemplateProcessorExtension extends BaseTemplateProcessorExtension...

OpenAM J2EE agent installation bringing down tomcat

alfresco,alfresco-share,openam,opensso

The error message is a bit misleading: the Cannot obtain application SSO token in general means that the agent was unable to authenticate itself. When you install the agent, the agent asks for a profile name and a password file, those values need to correspond to the agent profile configured...

Register webscript in alfresco 5

alfresco,alfresco-webscripts

There are 2 approach using which we can deploy webscript in alfresco. 1.Placing webscript inside DataDictionary 2.Placing webscript inside extension folder In case of your code you are placing files in wrong folder.Below are correct location for each deployment approach. Location for Data Dictionary /Data Dictionary/Web Scripts/org/alfresco Location for extension...

Error while creating an aspect in Alfresco

alfresco,alfresco-share

Your share-config-custom is incorrect. Below is full xml. <!-- Global config section --> <config replace="true"> <flags> <!-- Developer debugging setting to turn on DEBUG mode for client scripts in the browser --> <client-debug>false</client-debug> <!-- LOGGING can always be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift). This...

using alfresco as an smtp mail server

email,smtp,alfresco

May be below can help Inbound email service The inbound email service deals with incomming email messages. email.inbound.enabled=true Enable/Disable the inbound email service. The service could be used by processes other than the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service. email.inbound.unknownUser=anonymous The...

How to get ACL of a content in alfresco?

alfresco

Permissions are stored in the DB but also indexed into SOLR to filter search results by permissions without DB access. I guess you're looking for bean PermissionService interface org.alfresco.service.cmr.security.PermissionService: Get all the AccessPermissions that are set for anyone for the given node: public Set<AccessPermission> getAllSetPermissions(NodeRef nodeRef); Get all the AccessPermissions...

Cannot find template in Java web script in alfresco

alfresco,alfresco-share,web-scripting

You most likely derived your class from DeclarativeWebScript which extends AbstractWebScript and adds the template processing. Make sure to derive your class from the latter.

How to redefine Spring bean from default-synchronization-context.xml

java,spring,alfresco

It is the authentication.chain property which defines , from where we are fetching property file. Below URL is description of that. alfresco/extension/subsystems/Authentication/alfrescoNtlm/alfrescoNtlm1/mychanges.properties If you have noticed that alfrescoNtlm1 folder than,this folder name must match with the property value ldap1:ldap1,alfrescoNtlm1:alfrescoNtlm.(See Italic text) In case of context file you can define context...

Alfresco Sharing Content Store

alfresco,conflict,alfresco-share,file-sharing

Alfresco can be divided in two areas, filesystem and DB holding metadata. From the filesystem point of view I cannot imagine how an index could cope with two applications writing on it concurrently. Also, I don't think alfresco can lock filesystem element while accessing it. From the database point of...

How to create process attachment in the Activiti

alfresco,activiti

Activiti does not use the "activiti$" prefix, it's just used by Alfresco APIs. When using the TaskService createAttachment please use Attachment attachment = taskService.createAttachment("url", null, "401", name, "", url); and not activiti$401

JavaBehaviour NotificationFrequency

java,alfresco,alfresco-share

Using NotificationFrequency you can decide when the behavior should be invoked by specifying the appropriate NotificationFrequency. NotificationFrequency.EVERY_EVENT *This will be called every time when event is occurred.* NotificationFrequency.FIRST_EVENT *This will be called only once.* NotificationFrequency.TRANSACTION_COMMIT *This will be called when transaction is committed.* You will get more idea when you read content of below link.Also read the comment of Axel Faust....

Date.ftl - set current time

alfresco,alfresco-share

Changing existing date.ftl is not advisable.Instead of that you should create your own date control(you need to create both ftl and as well as javascript file),In that you need to change below things. Change in tomcat\webapps\share\components\form\date-picker.js file(this should be file which you have created for your custom control).In onReady() function...

WCM replacement in alfresco 5.0

alfresco,wcm

I have worked with WCMQS (Quick Start) with Alfresco 4.2, so my experience is not covering Alfresco 5.x. Correct me if I am wrong, if you talk about replacing the WCM, it means you are interested in building a static web site. Altough wcmqs is a good product, I found...

How to convert alfresco ant based project in alfresco5 maven based?

maven,ant,alfresco,alfresco-share

That totally depends on the ant build setup. But one good guess is that you will have to put the files residing in the "Alfresco" folder of your old project into different subfolders of the repo-amp, and the same way around with the "Share" folder. Most files will go into...

Run Alfresco Java code as Administrator

java,admin,alfresco,backend,runas

To detail the answer from Krutik, you should wrap code in a runAsSystem block like this: final permissionService = serviceRegistry.getPermissionService(); //Read the username of the current user final String loggedInUser = authenticationService.getCurrentUserName(); ChildAssociationRef childAssociationRef = nodeService.getPrimaryParent(actionedUponNodeRef); //Get the parent NodeRef NodeRef parent = childAssociationRef.getParentRef(); String fileName = (String) nodeService.getProperty(parent, ContentModel.PROP_NAME);...

How to POST data on payload instead of formdata

jquery,ajax,json,alfresco,payload

I think it depends on the Content-Type header of the request; if the content type is "application/x-www-form-urlencoded" then it is shown under form data. If you put - for example - Content-Type: application/json the json should be part of the payload. You can use: $.ajax({ url: serviceUrl, type: "POST", dataType:...

How to get the URL for a document in Alfresco using the PHP CMIS API?

php,alfresco,cmis,ecm,apache-chemistry

You need to write a proxy that will fetch the content stream on the user's behalf using the existing CMIS session, then stream it back to the client making the request. Jeff...

Change the file name Alfresco

workflow,filenames,alfresco,business-process

I am find own solution this issue. Need to create execution listener in user task. Its code is: <extensionElements> <activiti:executionListener class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener" event="start"> <activiti:field name="script"> <activiti:string><![CDATA[ if (typeof execution.getVariableLocal('zvernennya_registrationnumber') != undefined) execution.setVariable('zvernennya_registrationnumber', execution.getVariableLocal('zvernennya_registrationnumber')); if (typeof...

How to create site in share programmatically?

alfresco,alfresco-share

This is the curl command I use to generate sites programatically. I insert the JSESSIONID, LOGINCOOKIECONTENTS and CSRFTOKEN (twice) contents manually, but getting them programatically should work. curl 'http://localhost:8081/share/service/modules/create-site' -H 'Cookie: JSESSIONID={JSESSIONID}; alfLogin={LOGINCOOKIECONTENTS}; alfUsername3=admin; Alfresco-CSRFToken={CSRFTOKEN};' -H 'Origin: http://localhost:8081' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac...

Alfresco error: Model '{custom.model}custommodel' does not exist

alfresco,cmis,aspect,custom-type

It seems the warning is just that, it can be ignored. But using CMIS 1.1, I have to do two steps to add in the extra properties from the custom aspect. (Trying to do it in one step gives the error "Type 'P:cmod:customDoc' is unknown!") First createDocument() with the cmis:secondaryObjectTypeIds...

Alfresco - Difference between JavaScript API (Root Object) & JavaScript Services API

javascript,alfresco,ecm,web-scripting

As stated here Alfresco Javascript API The Alfresco JavaScript API allows script writers to develop JavaScript (ECMA Script) 1.7 compatible files that access, modify, and create Alfresco repository objects. This means you are able to extend and create new webscripts to interact with the Alfresco plaform. Moreover it provides some...

Alfresco: Defining new Control-Params

forms,alfresco,alfresco-share

The variable which you are passing is defined in FTL file,which(FTL file) is referenced from share-config-custom.xml. Lets have deeper look. share-config-custom.xml Here Where we are declaring control parameter. <field-visibility> <show id="fieldName"/> </field-visibility> <appearance> <field id="fieldName" label="Name of Field"> <control template="/path/to/ftl/textarea.ftl" /> <control-param name="helpText">Description of field</control-param> </control> </field>...

Alfresco: send workflow form data to custom datalist

workflow,alfresco,datalist

Yes this is possible. Regarding how you can do this,You can do this by defining custom action and calling it from alfresco javascript,which you will write in workflow. How you can define custom action ,that you can find from below link. https://wiki.alfresco.com/wiki/Custom_Actions In case of how you can call custom...

Is there a maven dependency for org.alfresco.repo?

maven,dependencies,alfresco,activiti

The org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener class is contained in the following artifact: org.alfresco:org.alfresco-repository. It is not available in maven central, but instead it can be found in the following repository: https://maven.alfresco.com/nexus/content/groups/public/ So in your pom you would need to add the following: <project> ... <repositories> ... <!-- define the alfresco maven repository -->...

Alfresco 5.0.a/b doubled facets for d:mltext

search,solr,share,alfresco,faceted-search

I raised an issue ALF-21249 And also found a workaround, which is a bit dirty, but works well. Let's say you have a property with name ccm:property which has type d:mltext and you want to have facet for this property in English and French. Define an aspect with two d:text...

Alfresco custom data list layout

layout,alfresco,datalist,alfresco-share

You are entering wrong condition in <config> tag. Below <config evaluator="model-type" condition="orpdl:orpDataListModel"> should replace with <config evaluator="model-type" condition="orpdl:issuesList"> This will also apply to node-type. ...

Alfresco share advanced search

alfresco,advanced-search

You just have to add : force="true" on aspect based property.See below code. <show id="ed:documentRegnum" force="true" /> ...

How to get the name of a document in Alfresco with SQL?

postgresql,alfresco

Based on the other anwsers I created this query: SELECT string_value AS document_name, audit_created AS creation_date FROM alf_node node INNER JOIN alf_node_properties ON (id=node_id) INNER JOIN alf_qname ON (qname_id=alf_qname.id) WHERE ns_id IN (SELECT ns.id FROM alf_namespace AS ns WHERE ns.uri='http://www.alfresco.org/model/content/1.0') AND local_name='name' AND audit_creator = 'admin' AND audit_created > '2015-05-06'...

How to convert tiff to searchable pdf using alfresco and tesseact?

integration,ocr,alfresco,tesseract,alfresco-share

you can use another tool which is directly performing pdf to searchable pdf conversion.This tool is using tesseract internally for this conversion.You can find more details on below link and configure same for alfresco. http://ubuntuforums.org/showthread.php?t=1456756 command pdfocr -i input.pdf -o output.pdf...

How to feed site details on controller in dashlet in alfresco

alfresco,alfresco-share

There isn't a service on the Share side which provides that information, because the information you want is only held on the repository. As such, you'll need to call one of the REST APIs on the Repo to get the information you need Your code would want to look something...

Alfresco, access the server from local network

ip,alfresco

There is a file in below location "tomcat/shared/classes/alfresco-global.properties" Which contains details regarding alfresco host and port configuration. If changing that does not work.You will have firewall enabled in server....

Alfresco disable full text indexing on specific content model

alfresco

You can achieve this by defining a new aspect that extends cm:indexControl like so: <aspect name="my:doNotIndexContentControl"> <title>Do Not Index Control</title> <parent>cm:indexControl</parent> <overrides> <property name="cm:isIndexed"> <default>true</default> </property> <property name="cm:isContentIndexed"> <default>false</default> </property> </overrides> </aspect> Note the overrides. The overridden property, cm:isContentIndexed,...

Need to show help button on title bar of dashlet in alfresco

alfresco,alfresco-share

Try this may this works for you new Alfresco.widget.DashletTitleBarActions("${id}").setOptions( { actions: [ { cssClass: "help", bubbleOnClick: { message: "Information about dashlet" }, tooltip: "Display help for this dashlet" } ] }); Also add <#assign id = args.htmlid?js_string> at start of your ftl or change "${id}" to "${args.htmlid}" in above code....

Disable open office in Alfresco

alfresco,openoffice.org

The following should work: jodconverter.enabled=false jodconverter.officeHome=null jodconverter.portNumbers=8100 The configuration file: tomcat\shared\classes\alfresco-global.properties...

Alfresco Rest API for downloading document

alfresco,alfresco-share

For this NodeRef workspace://SpacesStore/7f77488a-60a0-48c3-9369-77183ccad0d2 Values for parameter will be as follow {property} : content {store_type} :Workspace {store_id}:spaceStore {id}:7f77488a-60a0-48c3-9369-77183ccad0d2 Details related to each parameter is already specified by Krutik. And you should use this download url. /alfresco/d/<d|a>/<workspace>/<store>/<nodeId>/<filename> where d=direct and a=attached The 'attach' or 'direct' element is used to indicate whether...