Questions tagged [alfresco-webscripts]

Web scripts provide a way to write small extensions to Alfresco using JavaScript and FreeMarker.

Alfresco web scripts provide a unique way to programmatically interact with the Alfresco content application server. Unlike other interfaces exposed by Alfresco, web scripts offer a RESTful API for the content residing in the content repository. The REST (Representational State Transfer) web architecture is based on HTTP requests and responses, URIs (Uniform Resource Identifiers), and document types. Web scripts let you implement your own RESTful API without tooling or Java knowledge, requiring only a text editor. This approach to developing an Alfresco API means that web scripts offer many advantages over existing technologies, including ease and speed of development, and flexibility in API design. By focusing on the RESTful architectural style, web scripts let you build custom URI-identified and HTTP accessible content management web services backed by the Alfresco content application server.

Web scripts provide RESTful access to content held within your Alfresco content repository. You can place controls on your content to manage it and provide uniform access for a wide variety of client applications and services, such as a browser, portal, search engine, or custom application. Because of the inherent distributed nature of this interface, all Alfresco content repositories within the enterprise can resemble one logical collection of inter-related documents (like the web), letting you apply web technologies such as caching, authentication, proxies, and negotiation to your repository resources.

You can build your own RESTful interface using lightweight scripting technologies (such as JavaScript and FreeMarker), allowing you to arbitrarily map any content in the repository to resources on the web, or you can use out-of-the-box web scripts that already encapsulate many of the mappings. The Alfresco CMIS (Content Management Interoperability Services) AtomPub binding is implemented as a series of web scripts.

You can use web scripts for various solutions, such as:

  • Integrating Alfresco with third party systems Providing feeds
  • Developing data services Developing UI services such as portlets
  • Customizing search Acting as a back-end to client tools, such as
  • Orbeon Forms Integrating with Microsoft Office
  • Developing Facebook applications
  • Building UI components in Alfresco Surf

Source: http://docs.alfresco.com/5.1/concepts/ws-overview.html

352 questions
0
votes
1 answer

import Excel File Data into Alfresco Datalist

I have more than one-thousands records in excel sheet. now i want to import those records into data list in alfresco. But it seems to be very bad practice to copy those records one by one to data-list. so is there any way to import all records from…
0
votes
1 answer

How to get workflow taskId in Alfresco process service using script task

I wanted to get workflow taskId in a script task variable(Java Script/Groovy) and want's display it on user form. Please let me know if you have any Idea regarding this. we are using Alfresco process service 1.9 version Thanks in Advance.
Deepak Talape
  • 997
  • 1
  • 9
  • 35
0
votes
1 answer

How to set arbitrary version number for uploaded content?

I am developing the content uploader that represents a Surf WebScript. Perhaps it would be more correct to say "updater", because the content already exists in the repository, but may not have cm:versionable aspect. I need to update this content and…
user1134181
0
votes
0 answers

How to restrict Date fields to select past dates in Alfresco Process Servicce?

I am quite new to Alfresco Process Service, I have one workflow due date field on metadata form but now it's allowing users to select past dates also, but workflow due date will never be past date. I also wan't to restrict users to select Saturday's…
Deepak Talape
  • 997
  • 1
  • 9
  • 35
0
votes
1 answer

Alfresco export file by ftp

Good day. I use the standard alfresco job and i need to save the line in a csv file and then transfer this file via FTP to a remote server. How can this be done?
0
votes
1 answer

How to create custom tooltip for mandatory fields in Alfresco share property page?

I have to create some custom tooltip on Alfresco property page. I tried following code with "Description" attribute, but its not working for mandatory fields because for mandatory fields, default tooltip is "The value can not be empty"
0
votes
0 answers

Alfresco restart webscript after read timeout error

In an alfresco custom webscript, I have a read timeout error, afterwards the alfresco restarts the webscript. Is possible disable this behaviour?
0
votes
1 answer

Angular Error 403: Response for preflight does not have HTTP ok status

I have the following post request by which I am trying to upload a PDF FIle on Alfresco Community Version On-Premise Server: var urlPost = 'http://127.0.0.1:8080/alfresco/service/api/upload?alf_ticket=' + ticket; let header = new…
0
votes
0 answers

Alfresco property page default values should not be default in advance search screen

In alfresco content model I have made some default values and I can see it on the Alfresco property page in share UI. I used following tag in content model to make No as a default value. No But the requirement is, it should not…
Deepak Talape
  • 997
  • 1
  • 9
  • 35
0
votes
1 answer

Alfresco accepting only .txt files while uploading and giving 500 internal server error for other files

Today I found very wearied behavior of alfresco, When I upload any .txt file via share UI, its getting uploaded successfully, but if I upload any other type of file then it's giving 500 internal server error as shown in attached screen shot, also…
0
votes
1 answer

How to get status of the workflow from related the document ? , About Folder Rule Script of Alfresco

I want to move documents between "working folder" to "In Progress folder" according status of workflow when I started our Alfresco's workflow.These Folder was created by me in Sites of Alfresco. The following code for Folder Rule Script does not…
0
votes
1 answer

How to customize the history display for the requester

I need to configure the display history for the requester, in particular, the date of the last change should be displayed not in the form of how many days have passed since the last change, but simply the date of the last change. How can I settle…
0
votes
0 answers

Run the maven build its showing below console error

When i run the maven build it's showing the below error like Click here to see the full explanation of this Error ERROR [webscripts.connector.RemoteClient] [http-bio-8080-exec-9] Error status 500 Cannot call sendError() after the response has been…
0
votes
1 answer

How to upload a new version of a file by using WebScript?

I have a simple Spring application (front-end application) that loads files into the Alfresco repository. If the file already exists, its new version is not created. Repository web script is presented below: public class CustomFileUploader extends…
user1134181
0
votes
0 answers

How to display custom site field with stored value in site edit form using Aikau framework in Alfresco

I'm able to create custom site field in alfresco using Aikau framework and also successfully able to store the value, i got to know that i should modify modules/edit-site.js file. But i don't know the procedure to display it in edit site form. I…
Faiz
  • 31
  • 3