AnsweredAssumed Answered

Workflow Deployment Failure

Question asked by ogunen on Nov 28, 2006
Latest reply on Dec 1, 2006 by davidc
Hi again,
i read the doc. in http://wiki.alfresco.com/wiki/WorkflowAdministration#Step_2:_Create_the_Task_Model address and i did the following steps there and faced with some difficulties here is what i have and what i did :

my system is based on liferay 4.0.0 with alfresco version 1.4 i can reach the alfresco from http://localhost:8080/alfresco address.

1) first of all i have a basic workflow scenario: "one submits a document and other person reviews it and the doc. passes to another person and this another person confirms the document for publishing." i have designed the workflow with eclipse plug-in and then i manualy deployed the file. file named as "docFlow_processdefinition.xml" and its content is like this :
<?xml version="1.0" encoding="UTF-8"?>

<process-definition
  xmlns="urn:jbpm.org:jpdl-3.1"  name="wf:docFlow">
   <swimlane name="initiator"></swimlane>
   <swimlane name="assignee"></swimlane>
   <swimlane name="assignee2"></swimlane>
   <start-state name="start">
      <task name="wf:submitDoc" swimlane="initiator"></task>
      <transition name="" to="review"></transition>
   </start-state>
   <task-node name="review">
      <task name="wf:reviewDoc" swimlane="assignee"></task>
      <transition name="" to="accept">
      </transition>
   </task-node>
   <task-node name="accept">
      <task name="wf:confirmDoc" swimlane="assignee2"></task>
      <transition name="" to="end1"></transition>
   </task-node>
   <end-state name="end1"></end-state>
</process-definition>

and then i created task model xml file named as docFlowModel which has a content like this :
<?xml version="1.0" encoding="UTF-8"?>

<model name="wf:workflowmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

  <imports>
     <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
     <import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/>
  </imports>

  <namespaces>
     <namespace uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
  </namespaces>
     
  <types>


     <type name="wf:submitDoc">
        <parent>bpm:startTask</parent>
                
        <mandatory-aspects>
           <aspect>bpm:assignee</aspect>
        </mandatory-aspects>
     </type>

     <type name="wf:reviewDock">
        <parent>bpm:workflowTask</parent>
     </type>

     <type name="wf:confirmDoc">
        <parent>bpm:workflowTask</parent>
     </type>
     
  </types>
  
</model>

i placed this to files seprately. Process defination file in  C:\liferay\webapps\alfresco\WEB-INF\classes\alfresco\workflow directory and task model file in C:\liferay\webapps\alfresco\WEB-INF\classes\alfresco\model directory. After these i copied following text :
<bean id="myworkflows.workflowBootstrap" parent="workflowDeployer">
                 <property name="workflowDefinitions">
                      <list>
                         <props>
                            <prop key="engineId">jbpm</prop>
                            <prop key="location">alfresco/workflow/docFlow_processdefinition.xml</prop>
                            <prop key="mimetype">text/xml</prop>
                         </props>
                      </list>
                 </property> 
                <property name="models">
                       <list>
                            <– Task Model associated with above process definition –>
                            <value>alfresco/model/docFlowModel.xml</value>
             </list>
        </property>
        </bean>

into C:\Liferay\webapps\alfresco\WEB-INF\classes\alfresco\bootstrap-context.xml file and then restarted the server and then alfresco web application corrupted. I could not reach the login screen http://localhost:8080/alfresco. What could be the problem ? I guess the bootstrap-context.xml file could be the wrong one but in workflowAdministrator document it does not tell where to put deployment bean text.
thanks a lot…

Outcomes