09-01-2010 02:09 PM
org.alfresco.error.AlfrescoRuntimeException: 08010003 Workflow deployment failed
at org.alfresco.repo.workflow.WorkflowDeployer.init(WorkflowDeployer.java:330)
at org.alfresco.repo.workflow.WorkflowDeployer$1.doWork(WorkflowDeployer.java:437)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508)
at org.alfresco.repo.workflow.WorkflowDeployer.onBootstrap(WorkflowDeployer.java:433)
at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:294)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:858)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:419)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 08010002 Could not import bootstrap model alfresco/extension/20100901_vp.customModel.xml
at org.alfresco.repo.dictionary.DictionaryBootstrap.onDictionaryInit(DictionaryBootstrap.java:157)
at org.alfresco.repo.dictionary.DictionaryBootstrap.bootstrap(DictionaryBootstrap.java:104)
at org.alfresco.repo.workflow.WorkflowDeployer.init(WorkflowDeployer.java:260)
… 36 more
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 08010001 Failed to compile model custom:customModel
at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:106)
at org.alfresco.repo.dictionary.M2Model.compile(M2Model.java:128)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModel(DictionaryDAOImpl.java:277)
at org.alfresco.repo.dictionary.DictionaryBootstrap.onDictionaryInit(DictionaryBootstrap.java:153)
… 38 more
Caused by: org.alfresco.service.namespace.NamespaceException: Namespace prefix is not mapped to a namespace URI
at org.alfresco.service.namespace.QName.createQName(QName.java:101)
at org.alfresco.service.namespace.QName.createQName(QName.java:123)
at org.alfresco.repo.dictionary.M2ClassDefinition.<init>(M2ClassDefinition.java:85)
at org.alfresco.repo.dictionary.M2TypeDefinition.<init>(M2TypeDefinition.java:41)
at org.alfresco.repo.dictionary.CompiledModel.constructDefinitions(CompiledModel.java:147)
<?xml version="1.0" encoding="UTF-8"?>
<!– Custom Model –>
<!– Note: This model is pre-configured to load at startup of the Repository. So, all custom –>
<!– types and aspects added here will automatically be registered –>
<model name="custom:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Custom Model</description>
<author></author>
<version>1.0</version>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
<import uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf" />
</imports>
<!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="custom.model" prefix="custom"/>
</namespaces>
<types>
<type name="assign_task_to_author">
<parent>bpm:workflowTask</parent>
<properties>
<property name="trash">
<type>d:boolean</type>
<default>false</default>
</property>
</properties>
</type>
</types>
</model>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<bean id="myworkflows.wf_book-review" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
<props>
<prop key="engineId">jbpm</prop>
<prop key="location">alfresco/extension/20100816_vp.book_process_definition.xml</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">true</prop>
</props>
</list>
</property>
<property name="models">
<list>
<!–value>alfresco/extension/20100816_vp.book_task_model.xml</value–>
<value>alfresco/extension/20100901_vp.customModel.xml</value>
</list>
</property>
<property name="labels">
<list><value>alfresco/messages/20100901vpbook</value></list>
</property>
</bean>
</beans>
<?xml version="1.0" encoding="UTF-8"?>
<process-definition name="book-review20100901" xmlns="urn:jbpm.org:jpdl-3.1">
<swimlane name="initiator" />
<start-state name="start">
<transition to="n0" name="tr1" />
</start-state>
<task-node name="n0">
<!–task name="assign_task_to_author" /–>
<transition to="end" name="tr2" />
</task-node>
<end-state name="end" />
</process-definition>
09-02-2010 05:39 PM
<type name="assign_task_to_author">
<parent>bpm:workflowTask</parent>
<properties>
<property name="trash">
<type>d:boolean</type>
<default>false</default>
</property>
</properties>
</type>
</types>
<type name="custom:assign_task_to_author">
<parent>bpm:workflowTask</parent>
<properties>
<property name="trash">
<type>d:boolean</type>
<default>false</default>
</property>
</properties>
</type>
</types>
09-07-2010 01:35 AM
09-07-2010 04:22 PM
javax.faces.FacesException: Error calling action method of component with id loginForm:submit
caused by:
javax.faces.el.EvaluationException: Exception while invoking expression #{LoginBean.login}
caused by:
org.alfresco.service.namespace.NamespaceException: A namespace prefix is not registered for uri http://<MY URI>
09-08-2010 02:42 AM
09-08-2010 04:11 PM
<?xml version="1.0" encoding="UTF-8"?>
<model name="ed:editorialModel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Review And Approve Task Model</description>
<author>piousbox</author>
<version>0.1</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"></import>
<import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"></import>
<import uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"></import>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
</imports>
<namespaces>
<namespace uri="http://mediatecpub.com/namespaces/editorial/0.1" prefix="ed"/>
</namespaces>
<types>
<type name="ed:editor_assigns_authors">
<parent>bpm:startTask</parent>
<mandatory-aspects>
<aspect>ed:author</aspect>
<aspect>ed:copyeditor</aspect>
<aspect>ed:editor</aspect>
</mandatory-aspects>
</type>
<type name="ed:author_develops">
<parent>bpm:workflowTask</parent>
</type>
<type name="ed:editor_edits">
<parent>bpm:workflowTask</parent>
</type>
<type name="ed:editor_approves">
<parent>bpm:workflowTask</parent>
</type>
<type name="ed:copyeditor_edits">
<parent>bpm:workflowTask</parent>
</type>
<type name="ed:copyeditor_approves">
<parent>bpm:workflowTask</parent>
</type>
<type name="ed:editor_edits2">
<parent>bpm:workflowTask</parent>
</type>
</types>
<aspects>
<aspect name="ed:author">
<associations>
<association name="ed:author">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
</aspect>
<aspect name="ed:editor">
<associations>
<association name="ed:editor">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
</aspect>
<aspect name="ed:copyeditor">
<associations>
<association name="ed:copyeditor">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
</aspect>
<!–aspect name="ed:editors">
<associations>
<association name="ed:editors">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>true</mandatory>
<many>true</many>
</target>
</association>
</associations>
</aspect–>
</aspects>
</model>
IsLoaded: Y , RepoVersion: 1.0 , RepoName: contentModel.xml , ModelQName: {http://www.alfresco.org/model/content/1.0}contentmodel , Description: Alfresco Content Domain Model , Author: Alfresco , Published: Thu Jun 04 00:00:00 CDT 2009 , Version: 1.1
IsLoaded: N , RepoVersion: 1.7 , RepoName: editorialTaskModel.xml , ModelQName: n/a , Description: n/a , Author: n/a , Published: n/a , Version: n/a
org.alfresco.service.namespace.NamespaceException: Namespace prefix ed is not mapped to a namespace URI
11-27-2010 04:16 PM
08-08-2011 10:12 AM
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="ccswfcredential:credential">
<swimlane name="initiator" />
<swimlane name="reviewer">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{bpm_assignee}</actor>
</assignment>
</swimlane>
<swimlane name="filler">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<actor>#{people.getPerson("tsmith").properties["cm:userName"]}</actor>
</assignment>
</swimlane>
<start-state name="start">
<task name="ccswfcredential:startTask" swimlane="initiator"/>
<transition name="Initiate" to="Initiate"/>
</start-state>
<task-node name="Initiate">
<event type="node-leave">
<script>
System.out.println("———- Node Leave of LicenseTask ————");
</script>
</event>
<task name="ccswfcredential:licenseTask" swimlane="initiator">
<event type="task-create">
<script>
System.out.println("———-in Task Create of LicenseTask———");
</script>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
taskInstance.setVariable("ccswfcredential_firstname","WFDefault");
taskInstance.setVariable("ccswfcredential_lastname","WFDefault");
taskInstance.setVariable("ccswfcredential_info","WFDefault");
taskInstance.setVariable("ccswfcredential_st","WFDefault");
bpm_package.children[0].properties["ccs:fname"] = "WFDefault";
bpm_package.children[0].properties["ccs:lname"] = "WFDefault";
bpm_package.children[0].properties["ccs:st"] = "WFDefault";
bpm_package.children[0].properties["ccs:info"] = "WFDefault";
</script>
</action>
</event>
<event type="task-end">
<script>
System.out.println("———-in Task End of LicenseTask ———–");
</script>
</event>
<timer name='AutoPreFill' duedate='3 minute' transition='Pre-Fill'>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var temp2 = "dummy";
</script>
</action>
</timer>
</task>
<transition name="Evaluate" to="Evaluate" />
<transition name="Pre-Fill" to="Prefill"/>
</task-node>
<task-node name="Prefill">
<task name="ccswfcredential:prefillTask" swimlane="filler"/>
<event type="task-create">
<script>
System.out.println("———-in Task Create of PreFill Task———");
</script>
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var temp = bpm_package.children[0].properties["ccs:fname"];
taskInstance.setVariable("ccswfcredential_firstname",temp);
temp = bpm_package.children[0].properties["ccs:lname"];
taskInstance.setVariable("ccswfcredential_lastname",temp);
temp = bpm_package.children[0].properties["ccs:info"];
taskInstance.setVariable("ccswfcredential_info",temp);
temp = bpm_package.children[0].properties["ccs:st"];
taskInstance.setVariable("ccswfcredential_st",temp);
</script>
</action>
</event>
<transition name="Evaluate" to="Evaluate" />
</task-node>
<task-node name="Evaluate">
<task name="ccswfcredential:evaluateTask" swimlane="reviewer"/>
<transition name="moreInfoNeeded" to="moreInfoNeeded" />
<transition name="Complete" to="complete" />
</task-node>
<task-node name="moreInfoNeeded">
<task name="ccswfcredential:moreInfoNeededTask" swimlane="initiator" />
<transition name="Re-Evaluate" to="Evaluate">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var mail = actions.create("mail");
mail.parameters.to = "ani@possible.com";
mail.parameters.subject = "ReEvaluate " + ccswfcredential_firstname + " " + ccswfcredential_lastname +"'s Credentials";
mail.parameters.text = "Please Re-Evaluate the additional Information \n "+
"License Number : " + ccswfcredential_info + "\n"+
"State : " + ccswfcredential_st + "\n" ;
mail.execute(bpm_package);
</script>
</action>
</transition>
</task-node>
<task-node name="complete">
<task name="ccswfcredential:completeTask" swimlane="initiator" />
<transition name="Complete" to="end">
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<script>
var scriptnode_mycontent = bpm_package.children[0];
var documentfolder = bpm_package.children[0].parent;
var destinationFolder = documentfolder.childByNamePath("Evaluated Licenses");
bpm_package.children[0].copy(destinationFolder);
</script>
</action>
</transition>
</task-node>
<end-state name="end" />
</process-definition>
08-08-2011 11: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.