Thanks in advance.
Solved! Go to Solution.
Without more context the best I can do is suggest that you read the source. Specifically, take a look at
Depending on what you want to do you might also pick up a few tips by looking at org/alfresco/repo/processor/ScriptServiceImpl.java.
Mr. Jeff , Mr. Axel thank you for the reply and the precise answer.
I did took a look at those classes and did some research. I found this :
// Create the script node reference
NodeRef script = this.nodeService.createNode(
this.nodeService.setProperty(script, ContentModel.PROP_NAME, "testScript.js");
ContentWriter contentWriter = this.contentService.getWriter(script, ContentModel.PROP_CONTENT, true);
// Create the action
Action action1 = this.actionService.createAction(ScriptActionExecuter.NAME);
// Execute the action
in my Java code that lets me executing the code above.
Sorry if I misunderstood something, I'm new to this field.
Thanks a lot.