Создание нового типа реестра на основании своего же
Добрый день.
Сделал свой тип реестра (который с префиксом regdev), потом скопировал этот проект и переделал его во второй тип реестра (который с префиксом regdocpack). Все префиксы и названия переделал, контекст файлы и build скрипты тоже.
По отдельности они работают, но если в системе они одновременно, первый (regdev) выдаёт "Не удается получить поля реестра. Проверьте настройки формы."
Что я делаю не так?
В логах
Конфиг шары для первого
Модель
Для второго конфиг шары
И модель
Сделал свой тип реестра (который с префиксом regdev), потом скопировал этот проект и переделал его во второй тип реестра (который с префиксом regdocpack). Все префиксы и названия переделал, контекст файлы и build скрипты тоже.
По отдельности они работают, но если в системе они одновременно, первый (regdev) выдаёт "Не удается получить поля реестра. Проверьте настройки формы."
Что я делаю не так?
В логах
Показать / скрыть
2014-09-30 17:15:36,247 ERROR [extensions.webscripts.AbstractRuntime] [http-bio-8080-exec-1] Exception from executeScript - redirecting to status template error: 08300019 Failed to execute script 'classpath*:alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js': 08300018 TypeError: Cannot call method "getFields" of null (jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js#236)
org.springframework.extensions.webscripts.WebScriptException: 08300019 Failed to execute script 'classpath*:alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js': 08300018 TypeError: Cannot call method "getFields" of null (jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js#236)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:200)
at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70)
at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:236)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
at org.springframework.extensions.webscripts.servlet.mvc.WebScriptView.renderMergedOutputModel(WebScriptView.java:104)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
В логахlicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:168)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.CSRFFilter.doFilter(CSRFFilter.java:320)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.springframework.extensions.webscripts.WebScriptException: 08300018 TypeError: Cannot call method "getFields" of null (jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js#236)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:328)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:192)
... 51 more
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "getFields" of null (jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js#236)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3394)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2026)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:117)
at org.mozilla.javascript.gen.c7._c6(jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js:236)
at org.mozilla.javascript.gen.c7.call(jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
at org.mozilla.javascript.gen.c7._c0(jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js:283)
at org.mozilla.javascript.gen.c7.call(jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
at org.mozilla.javascript.gen.c7.call(jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js)
at org.mozilla.javascript.gen.c7.exec(jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:318)
... 52 more
2014-09-30 17:15:36,247 ERROR [extensions.webscripts.AbstractRuntime] [http-bio-8080-exec-1] Exception from executeScript - redirecting to status template error: 08300019 Failed to execute script 'classpath*:alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js': 08300018 TypeError: Cannot call method "getFields" of null (jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js#236)
org.springframework.extensions.webscripts.WebScriptException: 08300019 Failed to execute script 'classpath*:alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js': 08300018 TypeError: Cannot call method "getFields" of null (jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js#236)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:200)
at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70)
at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:236)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
at org.springframework.extensions.webscripts.servlet.mvc.WebScriptView.renderMergedOutputModel(WebScriptView.java:104)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
В логахlicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:168)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.CSRFFilter.doFilter(CSRFFilter.java:320)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.springframework.extensions.webscripts.WebScriptException: 08300018 TypeError: Cannot call method "getFields" of null (jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js#236)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:328)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:192)
... 51 more
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "getFields" of null (jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js#236)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3394)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2026)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:117)
at org.mozilla.javascript.gen.c7._c6(jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js:236)
at org.mozilla.javascript.gen.c7.call(jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
at org.mozilla.javascript.gen.c7._c0(jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js:283)
at org.mozilla.javascript.gen.c7.call(jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
at org.mozilla.javascript.gen.c7.call(jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js)
at org.mozilla.javascript.gen.c7.exec(jar:file:/home/dashkov/alfresco-4.2.f/tomcat/webapps/share/WEB-INF/lib/alvex-documents-registers-ce-share-1.26.jar!/alfresco/site-webscripts/com/alvexcore/datagrid-config/columns.get.js)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:318)
... 52 more
Конфиг шары для первого
Показать / скрыть
<alfresco-config>
<config evaluator="model-type" condition="regdev:documentRegisterDevices">
<forms>
<form id="datagrid">
<field-visibility>
<show id="alvexdt:id"/>
<show id="regdev:followingUser"/>
<show id="regdev:linksToNotifications"/>
<show id="regdev:linksToDocPack"/>
<show id="regdev:linksToСontracts"/>
<show id="regdev:linksToMemo"/>
<show id="regdev:linksToComands"/>
<show id="regdev:linksToOrders"/>
</field-visibility>
</form>
<form>
<field-visibility>
<show id="alvexdt:id"/>
<show id="regdev:followingUser"/>
<show id="regdev:linksToNotifications"/>
<show id="regdev:linksToDocPack"/>
<show id="regdev:linksToСontracts"/>
<show id="regdev:linksToMemo"/>
<show id="regdev:linksToComands"/>
<show id="regdev:linksToOrders"/>
</field-visibility>
<create-form template="/alvex-form.ftl"/>
<appearance>
<field set="" id="alvexdt:id"/>
<field set="" id="regdev:followingUser"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdev:linksToNotifications"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToDocPack"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToСontracts"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToMemo"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToComands"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToOrders"><control template="/alvex-docreg-picker.ftl"/></field>
</appearance>
</form>
</forms>
</config>
<config evaluator="node-type" condition="regdev:documentRegisterDevices">
<forms>
<form>
<field-visibility>
<show id="alvexdt:id"/>
<show id="regdev:followingUser"/>
<show id="regdev:linksToNotifications"/>
<show id="regdev:linksToDocPack"/>
<show id="regdev:linksToСontracts"/>
<show id="regdev:linksToMemo"/>
<show id="regdev:linksToComands"/>
<show id="regdev:linksToOrders"/>
</field-visibility>
<view-form template="/alvex-form.ftl"/>
<edit-form template="/alvex-form.ftl"/>
<appearance>
<field set="" id="alvexdt:id"/>
<field set="" id="regdev:followingUser"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdev:linksToNotifications"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToDocPack"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToСontracts"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToMemo"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToComands"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToOrders"><control template="/alvex-docreg-picker.ftl"/></field>
</appearance>
</form>
</forms>
</config>
</alfresco-config>
<alfresco-config>
<config evaluator="model-type" condition="regdev:documentRegisterDevices">
<forms>
<form id="datagrid">
<field-visibility>
<show id="alvexdt:id"/>
<show id="regdev:followingUser"/>
<show id="regdev:linksToNotifications"/>
<show id="regdev:linksToDocPack"/>
<show id="regdev:linksToСontracts"/>
<show id="regdev:linksToMemo"/>
<show id="regdev:linksToComands"/>
<show id="regdev:linksToOrders"/>
</field-visibility>
</form>
<form>
<field-visibility>
<show id="alvexdt:id"/>
<show id="regdev:followingUser"/>
<show id="regdev:linksToNotifications"/>
<show id="regdev:linksToDocPack"/>
<show id="regdev:linksToСontracts"/>
<show id="regdev:linksToMemo"/>
<show id="regdev:linksToComands"/>
<show id="regdev:linksToOrders"/>
</field-visibility>
<create-form template="/alvex-form.ftl"/>
<appearance>
<field set="" id="alvexdt:id"/>
<field set="" id="regdev:followingUser"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdev:linksToNotifications"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToDocPack"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToСontracts"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToMemo"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToComands"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToOrders"><control template="/alvex-docreg-picker.ftl"/></field>
</appearance>
</form>
</forms>
</config>
<config evaluator="node-type" condition="regdev:documentRegisterDevices">
<forms>
<form>
<field-visibility>
<show id="alvexdt:id"/>
<show id="regdev:followingUser"/>
<show id="regdev:linksToNotifications"/>
<show id="regdev:linksToDocPack"/>
<show id="regdev:linksToСontracts"/>
<show id="regdev:linksToMemo"/>
<show id="regdev:linksToComands"/>
<show id="regdev:linksToOrders"/>
</field-visibility>
<view-form template="/alvex-form.ftl"/>
<edit-form template="/alvex-form.ftl"/>
<appearance>
<field set="" id="alvexdt:id"/>
<field set="" id="regdev:followingUser"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdev:linksToNotifications"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToDocPack"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToСontracts"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToMemo"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToComands"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdev:linksToOrders"><control template="/alvex-docreg-picker.ftl"/></field>
</appearance>
</form>
</forms>
</config>
</alfresco-config>
Модель
Показать / скрыть
<?xml version="1.0" encoding="UTF-8"?>
<model
name="regdev:documents_model"
xmlns="http://www.alfresco.org/model/dictionary/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.alfresco.org/model/dictionary/1.0 modelSchema.xsd">
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
<import uri="http://www.alfresco.org/model/datalist/1.0" prefix="dl"/>
<import uri="http://alvexcore.com/prefix/alvexdt" prefix="alvexdt"/>
</imports>
<namespaces>
<namespace uri="http://rza.ru/prefix/regdev" prefix="regdev"/>
</namespaces>
<types>
<type name="regdev:documentRegisterDevices">
<parent>alvexdt:object</parent>
<associations>
<association name="regdev:followingUser">
<title>Ведущий по изделию</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:person</class>
</target>
</association>
<association name="regdev:linksToNotifications">
<title>Извещения</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="regdev:linksToDocPack">
<title>Пакеты документации</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="regdev:linksToСontracts">
<title>Договоры</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="regdev:linksToMemo">
<title>Служебные записки</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="regdev:linksToComands">
<title>Приказы</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="regdev:linksToOrders">
<title>Распоряжения</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
</types>
</model>
<?xml version="1.0" encoding="UTF-8"?>
<model
name="regdev:documents_model"
xmlns="http://www.alfresco.org/model/dictionary/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.alfresco.org/model/dictionary/1.0 modelSchema.xsd">
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
<import uri="http://www.alfresco.org/model/datalist/1.0" prefix="dl"/>
<import uri="http://alvexcore.com/prefix/alvexdt" prefix="alvexdt"/>
</imports>
<namespaces>
<namespace uri="http://rza.ru/prefix/regdev" prefix="regdev"/>
</namespaces>
<types>
<type name="regdev:documentRegisterDevices">
<parent>alvexdt:object</parent>
<associations>
<association name="regdev:followingUser">
<title>Ведущий по изделию</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:person</class>
</target>
</association>
<association name="regdev:linksToNotifications">
<title>Извещения</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="regdev:linksToDocPack">
<title>Пакеты документации</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="regdev:linksToСontracts">
<title>Договоры</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="regdev:linksToMemo">
<title>Служебные записки</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="regdev:linksToComands">
<title>Приказы</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="regdev:linksToOrders">
<title>Распоряжения</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
</types>
</model>
Для второго конфиг шары
Показать / скрыть
<alfresco-config>
<config evaluator="model-type" condition="regdocpack:documentRegisterDocPack">
<forms>
<form id="datagrid">
<field-visibility>
<!--show id="alvexdt:id"/-->
<show id="regdocpack:LinkToDevice"/>
<show id="regdocpack:status"/>
<show id="regdocpack:completeDate"/>
<!-- show id="regdocpack:description"/ -->
<show id="regdocpack:version"/>
<show id="regdocpack:files"/>
<show id="regdocpack:author"/>
<!-- show id="regdocpack:agrees"/ -->
<!-- show id="regdocpack:agreementStarter"/ -->
<show id="regdocpack:startWorkFlowDate"/>
<show id="regdocpack:LinkToWorkflow"/>
</field-visibility>
</form>
<form>
<field-visibility>
<!--show id="alvexdt:id"/-->
<show id="regdocpack:LinkToDevice"/>
<show id="regdocpack:status"/>
<show id="regdocpack:completeDate"/>
<show id="regdocpack:description"/>
<show id="regdocpack:version"/>
<show id="regdocpack:files"/>
<show id="regdocpack:author"/>
<show id="regdocpack:agrees"/>
<show id="regdocpack:agreementStarter"/>
<show id="regdocpack:startWorkFlowDate"/>
<show id="regdocpack:LinkToWorkflow"/>
</field-visibility>
<create-form template="/alvex-form.ftl" />
<appearance>
<field set="" id="regdocpack:LinkToDevice"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdocpack:status"/>
<field set="" id="regdocpack:completeDate"/>
<field set="" id="regdocpack:description"/>
<field set="" id="regdocpack:version"/>
<field set="" id="regdocpack:files"/>
<field set="" id="regdocpack:author"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdocpack:agrees"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdocpack:agreementStarter"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdocpack:startWorkFlowDate"/>
<field set="" id="regdocpack:LinkToWorkflow"/>
</appearance>
</form>
</forms>
</config>
<config evaluator="node-type" condition="regdocpack:documentRegisterDocPack">
<forms>
<form>
<field-visibility>
<!--show id="alvexdt:id"/-->
<show id="regdocpack:LinkToDevice"/>
<show id="regdocpack:status"/>
<show id="regdocpack:completeDate"/>
<show id="regdocpack:description"/>
<show id="regdocpack:version"/>
<show id="regdocpack:files"/>
<show id="regdocpack:author"/>
<show id="regdocpack:agrees"/>
<show id="regdocpack:agreementStarter"/>
<show id="regdocpack:startWorkFlowDate"/>
<show id="regdocpack:LinkToWorkflow"/>
</field-visibility>
<view-form template="/alvex-form.ftl" />
<edit-form template="/alvex-form.ftl" />
<appearance>
<field set="" id="regdocpack:LinkToDevice"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdocpack:status"/>
<field set="" id="regdocpack:completeDate"/>
<field set="" id="regdocpack:description"/>
<field set="" id="regdocpack:version"/>
<field set="" id="regdocpack:files"/>
<field set="" id="regdocpack:author"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdocpack:agrees"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdocpack:agreementStarter"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdocpack:startWorkFlowDate"/>
<field set="" id="regdocpack:LinkToWorkflow"/>
</appearance>
</form>
</forms>
</config>
</alfresco-config>
<alfresco-config>
<config evaluator="model-type" condition="regdocpack:documentRegisterDocPack">
<forms>
<form id="datagrid">
<field-visibility>
<!--show id="alvexdt:id"/-->
<show id="regdocpack:LinkToDevice"/>
<show id="regdocpack:status"/>
<show id="regdocpack:completeDate"/>
<!-- show id="regdocpack:description"/ -->
<show id="regdocpack:version"/>
<show id="regdocpack:files"/>
<show id="regdocpack:author"/>
<!-- show id="regdocpack:agrees"/ -->
<!-- show id="regdocpack:agreementStarter"/ -->
<show id="regdocpack:startWorkFlowDate"/>
<show id="regdocpack:LinkToWorkflow"/>
</field-visibility>
</form>
<form>
<field-visibility>
<!--show id="alvexdt:id"/-->
<show id="regdocpack:LinkToDevice"/>
<show id="regdocpack:status"/>
<show id="regdocpack:completeDate"/>
<show id="regdocpack:description"/>
<show id="regdocpack:version"/>
<show id="regdocpack:files"/>
<show id="regdocpack:author"/>
<show id="regdocpack:agrees"/>
<show id="regdocpack:agreementStarter"/>
<show id="regdocpack:startWorkFlowDate"/>
<show id="regdocpack:LinkToWorkflow"/>
</field-visibility>
<create-form template="/alvex-form.ftl" />
<appearance>
<field set="" id="regdocpack:LinkToDevice"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdocpack:status"/>
<field set="" id="regdocpack:completeDate"/>
<field set="" id="regdocpack:description"/>
<field set="" id="regdocpack:version"/>
<field set="" id="regdocpack:files"/>
<field set="" id="regdocpack:author"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdocpack:agrees"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdocpack:agreementStarter"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdocpack:startWorkFlowDate"/>
<field set="" id="regdocpack:LinkToWorkflow"/>
</appearance>
</form>
</forms>
</config>
<config evaluator="node-type" condition="regdocpack:documentRegisterDocPack">
<forms>
<form>
<field-visibility>
<!--show id="alvexdt:id"/-->
<show id="regdocpack:LinkToDevice"/>
<show id="regdocpack:status"/>
<show id="regdocpack:completeDate"/>
<show id="regdocpack:description"/>
<show id="regdocpack:version"/>
<show id="regdocpack:files"/>
<show id="regdocpack:author"/>
<show id="regdocpack:agrees"/>
<show id="regdocpack:agreementStarter"/>
<show id="regdocpack:startWorkFlowDate"/>
<show id="regdocpack:LinkToWorkflow"/>
</field-visibility>
<view-form template="/alvex-form.ftl" />
<edit-form template="/alvex-form.ftl" />
<appearance>
<field set="" id="regdocpack:LinkToDevice"><control template="/alvex-docreg-picker.ftl"/></field>
<field set="" id="regdocpack:status"/>
<field set="" id="regdocpack:completeDate"/>
<field set="" id="regdocpack:description"/>
<field set="" id="regdocpack:version"/>
<field set="" id="regdocpack:files"/>
<field set="" id="regdocpack:author"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdocpack:agrees"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdocpack:agreementStarter"><control template="/orgchart-picker.ftl"/></field>
<field set="" id="regdocpack:startWorkFlowDate"/>
<field set="" id="regdocpack:LinkToWorkflow"/>
</appearance>
</form>
</forms>
</config>
</alfresco-config>
И модель
Показать / скрыть
<?xml version="1.0" encoding="UTF-8"?>
<model
name="regdocpack:documents_model_register_documents_packages"
xmlns="http://www.alfresco.org/model/dictionary/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.alfresco.org/model/dictionary/1.0 modelSchema.xsd">
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
<import uri="http://www.alfresco.org/model/datalist/1.0" prefix="dl"/>
<import uri="http://alvexcore.com/prefix/alvexdt" prefix="alvexdt"/>
</imports>
<namespaces>
<namespace uri="http://rza.ru/prefix/regdocpack" prefix="regdocpack"/>
</namespaces>
<constraints>
<constraint name="regdocpack:statusConstraint" type="LIST">
<parameter name="allowedValues">
<list>
<value>Согласовано</value>
<value>В процессе согласования</value>
<value>Отклонено</value>
<value>Старая версия</value>
</list>
</parameter>
</constraint>
</constraints>
<types>
<type name="regdocpack:documentRegisterDocPack">
<parent>alvexdt:object</parent>
<properties>
<property name="regdocpack:status">
<type>d:text</type>
<default>В процессе согласования</default>
<constraints>
<constraint ref="regdocpack:statusConstraint"/>
</constraints>
</property>
<property name="regdocpack:description"><type>d:text</type></property>
<property name="regdocpack:version"><type>d:text</type></property>
<property name="regdocpack:completeDate"><type>d:date</type></property>
<property name="regdocpack:startWorkFlowDate"><type>d:date</type></property>
</properties>
<associations>
<association name="regdocpack:author">
<title>Разработчик</title>
<source>
<mandatory>true</mandatory>
<many>true</many>
</source>
<target>
<class>cm:person</class>
</target>
</association>
<association name="regdocpack:agrees">
<title>Согласующие</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:person</class>
</target>
</association>
<association name="regdocpack:agreementStarter">
<title>Инициатор согласования</title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
</target>
</association>
<association name="regdocpack:LinkToDevice">
<title>Устройство</title>
<source>
<mandatory>true</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>true</mandatory>
<many>true</many>
</target>
</association>
<association name="regdocpack:LinkToWorkflow">
<title>Ссылка на процесс согласования</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="regdocpack:files">
<title>Файлы</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:cmobject</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
</types>
</model>
<model
name="regdocpack:documents_model_register_documents_packages"
xmlns="http://www.alfresco.org/model/dictionary/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.alfresco.org/model/dictionary/1.0 modelSchema.xsd">
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
<import uri="http://www.alfresco.org/model/datalist/1.0" prefix="dl"/>
<import uri="http://alvexcore.com/prefix/alvexdt" prefix="alvexdt"/>
</imports>
<namespaces>
<namespace uri="http://rza.ru/prefix/regdocpack" prefix="regdocpack"/>
</namespaces>
<constraints>
<constraint name="regdocpack:statusConstraint" type="LIST">
<parameter name="allowedValues">
<list>
<value>Согласовано</value>
<value>В процессе согласования</value>
<value>Отклонено</value>
<value>Старая версия</value>
</list>
</parameter>
</constraint>
</constraints>
<types>
<type name="regdocpack:documentRegisterDocPack">
<parent>alvexdt:object</parent>
<properties>
<property name="regdocpack:status">
<type>d:text</type>
<default>В процессе согласования</default>
<constraints>
<constraint ref="regdocpack:statusConstraint"/>
</constraints>
</property>
<property name="regdocpack:description"><type>d:text</type></property>
<property name="regdocpack:version"><type>d:text</type></property>
<property name="regdocpack:completeDate"><type>d:date</type></property>
<property name="regdocpack:startWorkFlowDate"><type>d:date</type></property>
</properties>
<associations>
<association name="regdocpack:author">
<title>Разработчик</title>
<source>
<mandatory>true</mandatory>
<many>true</many>
</source>
<target>
<class>cm:person</class>
</target>
</association>
<association name="regdocpack:agrees">
<title>Согласующие</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:person</class>
</target>
</association>
<association name="regdocpack:agreementStarter">
<title>Инициатор согласования</title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
</target>
</association>
<association name="regdocpack:LinkToDevice">
<title>Устройство</title>
<source>
<mandatory>true</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>true</mandatory>
<many>true</many>
</target>
</association>
<association name="regdocpack:LinkToWorkflow">
<title>Ссылка на процесс согласования</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>alvexdt:object</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
<association name="regdocpack:files">
<title>Файлы</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:cmobject</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
</type>
</types>
</model>
Комментарии
30/09/2014 - 21:20
01/10/2014 - 10:53