09-17-2010 05:41 AM
09-17-2010 10:03 AM
var srcGrpNode=people.getGroup('GROUP_groupName);
09-17-2010 10:20 AM
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<runas>admin</runas>
<script>
var srcGrpNode = people.getGroup("GROUP_droupName");
var authority = "User1";
if(authority)
{
people.addAuthority(srcGrpNode,authority);
}
</script>
</action>
Caused by: org.alfresco.error.AlfrescoRuntimeException: 08170002 Can't find method org.alfresco.repo.jscript.People.addAuthority(org.alfresco.repo.jscript.ScriptNode,string). (AlfrescoJS#1)
at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:469)
at org.alfresco.repo.jscript.RhinoScriptProcessor.executeString(RhinoScriptProcessor.java:255)
… 129 more
Caused by: org.mozilla.javascript.EvaluatorException: Can't find method org.alfresco.repo.jscript.People.addAuthority(org.alfresco.repo.jscript.ScriptNode,string). (AlfrescoJS#1)
at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
at org.mozilla.javascript.Context.reportRuntimeError(Context.java:1030)
at org.mozilla.javascript.Context.reportRuntimeError(Context.java:1086)
at org.mozilla.javascript.Context.reportRuntimeError1(Context.java:1049)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:162)
at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
at org.mozilla.javascript.gen.c1._c0(AlfrescoJS:1)
at org.mozilla.javascript.gen.c1.call(AlfrescoJS)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
at org.mozilla.javascript.gen.c1.call(AlfrescoJS)
at org.mozilla.javascript.gen.c1.exec(AlfrescoJS)
at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:453)
09-21-2010 01:20 AM
09-23-2010 04:43 AM
09-23-2010 04:52 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.