12-18-2006 05:34 AM
<config>
<actions>
<!– Launch Test Javascript Dialog –>
<action id="test_js">
<label>Test Javascript</label>
<image>/images/icons/add.gif</image>
<script>/Company Home/Data Dictionary/backup.js</script>
</action>
<!– Add action to more actions menu for each space –>
<action-group id="document_browse">
<action idref="test_js" />
</action-group>
</actions>
</config>
org.alfresco.error.AlfrescoRuntimeException: Error during command servlet processing: Unable to resolve item Path: /Company Home/Data Dictionary/backup.js
at org.alfresco.web.app.servlet.CommandServlet.service(CommandServlet.java:176)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: Unable to resolve item Path: /Company Home/Data Dictionary/backup.js
at org.alfresco.web.app.servlet.BaseServlet.resolveNamePath(BaseServlet.java:315)
at org.alfresco.web.app.servlet.command.ScriptCommandProcessor.validateArguments(ScriptCommandProcessor.java:72)
at org.alfresco.web.app.servlet.CommandServlet.service(CommandServlet.java:128)
… 15 more
12-18-2006 11:46 AM
<script>/Company Home/Data Dictionary/backup.js</script>
</action>
What is the problem??
I think that the path is correct.
12-18-2006 11:48 AM
Another question: Is it possible to create an action only for a single user?
org.alfresco.web.app.Application.getCurrentUser()
12-19-2006 04:22 AM
12-20-2006 12:21 PM
04-17-2007 10:08 PM
<config>
<actions>
<action id="custom-action-check-in-all">
<permissions>
<!– each permission can be an Allow or Deny check –>
<permission allow="true">Write</permission>
</permissions>
<label>Check All In</label>
<tooltip>Check in all documents in this space</tooltip>
<show-link>true</show-link>
<style>padding:4px</style>
<style-class>inlineAction</style-class>
<image>/images/icons/CheckIn_icon.gif</image>
<script>/Company Home/Data Dictionary/Scripts/framemaker_ci.js</script>
<params>
<param name="id">#{actionContext.id}</param>
</params>
</action>
<action-group id="browse_actions_menu">
<action idref="custom-action-check-out-all" />
<action idref="custom-action-check-in-all" />
</action-group>
</actions>
</config>
//
// Alfresco script to handle Framemaker documents.
//
var space = search.findNode( "workspace://SpacesStore/" + args["id"] );
for (var i=0; i<space.children.length; i++ ) {
var child = space.children[i];
if ( child.isDocument ) {
child.checkin( "changes…" );
}
}
org.mozilla.javascript.Undefined@198096
19:05:57,778 DEBUG [org.alfresco.repo.jscript.RhinoScriptService] Executing script: workspace://SpacesStore/162cc14f-ed50-11db-997f-9be431dba158
19:05:57,778 DEBUG [org.alfresco.repo.jscript.ScriptLogger] 22b9098c-ed50-11db-997f-9be431dba158
19:05:57,848 DEBUG [org.alfresco.repo.jscript.RhinoScriptService] Time to execute script: 70ms
04-18-2007 04:22 AM
04-18-2007 05:05 PM
05-22-2007 02:04 PM
<!– Adding a custom menu item for adding "Pending approval" aspect after being rejected –>
<config>
<actions>
<!– Launch Add Aspect Dialog –>
<action id="return_to_PendingApproval">
<label>Return to "Pending Approval" state</label>
<script>/Company Home/Data Dictionary/Scripts/applyPendingApprovalAspect.js</script>
</action>
<!– Add action to Actions Menu for Document Details screen–>
<action-group id="doc_details_actions">
<action idref="return_to_PendingApproval" />
</action-group>
<!– Add action to Actions Menu for a document in the Browse screen–>
<action-group id="document_browse_menu">
<action idref="return_to_PendingApproval" />
</action-group>
</actions>
</config>
document.removeAspect(“dsm:docStatus_Rejectedâ€);
document.removeAspect(“dsm:docStatus_Approvedâ€);
document.addAspect(“dsm:docStatus_PendingApprovalâ€);
<namespaces>
<namespace uri="extension.document.status.model" prefix="dsm"/>
</namespaces>
<!– ASPECTS definitions –>
<aspects>
<!– Definition of new Document Status Aspect –>
<aspect name="dsm:docStatus_PendingApproval">
<title>DocumentStatus_PendingApproval</title>
<!– Properties associated to this aspect –>
<properties>
[…]
</properties>
</aspect>
<!– Definition of new Document Status Aspect –>
<aspect name="dsm:docStatus_Rejected">
<title>DocumentStatus_Rejected</title>
<!– Properties associated to this aspect –>
<properties>
[…]
</properties>
</aspect>
<!– Definition of new Document Status Aspect –>
<aspect name="dsm:docStatus_Approved">
<title>DocumentStatus_Approved</title>
<!– Properties associated to this aspect –>
<properties>
[…]
</properties>
</aspect>
05-23-2007 04:53 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.