cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Deployment Failure

ogunen
Champ in-the-making
Champ in-the-making
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…
3 REPLIES 3

ogunen
Champ in-the-making
Champ in-the-making
hi again all,
finaly i realized that i made a comic mistake in text which i inserted into bootstrap-context.xml. The mistake is :
<– Task Model associated with above process definition –>

the right one is like this :
<–! Task Model associated with above process definition –>


of course this line is even unnecessary just a comment line for xml. And finaly i can say that u can deploy your own custom workflows by following the steps which i posted above.
Thanks all for their interests…

ogunen
Champ in-the-making
Champ in-the-making
hi all again,
after deploying the workflow another question appeared in my mind. How to start this workflow or how to assign this workflow to any spaces. Is it possible to assign this workflow froum create role menu ?

davidc
Star Contributor
Star Contributor
By default, you can start any workflow on any document in any space.

It's also possible to configure your own web client menu items to invoke Alfresco javascript which in turn starts a workflow.