<webscript>
<shortname>Add Aspect to Project</shortname>
<description>add aspect to root project space</description>
<url>/addAspect</url>
<format default="html">extension</format>
<authentication>admin</authentication>
</webscript>
addAspect.post.jsvar props = new Array(1),
spaceId = args.redmineIdentifier,
strnodeReference = args.alfrescoNoderef;
projectNode= search.luceneSearch('ID:"'+strnodeReference+'"');
props["my:redID"] = spaceId;
projectNode[0].addAspect("my:redmineIdentifier", props);
model.resultString = "Syncronization Done!!!!";
addAspect.post.html.ftl<html>
<body>
<p>info: ${resultString.name}</p>
</body>
</html>
et le formulaire HTML<html>
<head>
</head>
<body>
<form action="http://localhost:8080/alfresco/service/addAspect" method="post">
<input name="redmineIdentifier" type="hidden" value="toto" />
<input name="alfrescoNoderef" type="hidden" value="workspace://SpacesStore/500d66d9-6e4c-450b-9296-cfbba2d7ba69" />
<input name="commit" type="submit" value="Synchronization" />
</form>
</body>
</html>
Tous ces fichiers sont dans le dossier Webscript du data dictionary mais j'obtiens toujours cette erreur:Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.