Hello,I don't manage to deploy my jpbm workflow under Alfresco CE 4.0c.Here my steps :Process definition at
\alfresco-community-40c-sbc\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\workflow\mon-workflow.xml
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="awf:monworkflow">
<swimlane name="initiator"/>
<start-state name="start">
<task name="awf:submitAdhocTask" swimlane="initiator"/>
<transition name="" to="adhoc"/>
</start-state>
<swimlane name="assignee"/>
<task-node name="adhoc">
<task name="awf:adhocTask" swimlane="assignee"/>
<transition name="" to="completed"/>
</task-node>
<task-node name="completed">
<task name="awf:completedAdhocTask" swimlane="initiator"/>
<transition name="" to="end"/>
</task-node>
<end-state name="end"/>
</process-definition>
Workflow Model definition at
\alfresco-community-40c-sbc\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\fr_intuitiv_module_sbc_amp\model\mon-workflow-model.xml<?xml version="1.0" encoding="UTF-8"?>
<model name="awf: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="awf"/>
</namespaces>
<types>
<type name="awf:submitAdhocTask">
<parent>bpm:startTask</parent>
<properties>
<property name="awf:notifyMe">
<type>d:boolean</type>
<default>false</default>
</property>
</properties>
<mandatory-aspects>
<aspect>bpm:assignee</aspect>
</mandatory-aspects>
</type>
<type name="awf:adhocTask">
<parent>bpm:workflowTask</parent>
</type>
<type name="awf:completedAdhocTask">
<parent>bpm:workflowTask</parent>
</type>
</types>
</model>
Workflow Resource Bundle messages at
\alfresco-community-40c-sbc\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\fr_intuitiv_module_sbc_amp\model\mon-workflow-model.properties#
# Adhoc Task Workflow
#
awf_adhoc.workflow.title=Mon Workflow
awf_adhoc.workflow.description=Ex. avec Mon workflow
# Adhoc Task Definitions
awf_workflowmodel.type.awf_submitAdhocTask.title=Soumettre mon workflow
awf_workflowmodel.type.awf_submitAdhocTask.description=Allocate task to colleague
awf_workflowmodel.property.awf_adhocDescription.title=Task Description
awf_workflowmodel.property.awf_adhocDescription.description=Description of what needs to be achieved
awf_workflowmodel.property.awf_adhocDueDate.description=Task Due Date
awf_workflowmodel.property.awf_adhocPriority.title=Task Priority
awf_workflowmodel.property.awf_notifyMe.title=Notify Me
awf_workflowmodel.property.awf_notifyMe.description=Notify me when task is complete
awf_workflowmodel.association.awf_assignee.title=Assignee
awf_workflowmodel.association.awf_assignee.description=Who's doing the task
awf_workflowmodel.type.awf_adhocTask.title=Adhoc Task
awf_workflowmodel.type.awf_adhocTask.description=Adhoc Task allocated by colleague
awf_workflowmodel.type.awf_completedAdhocTask.title=Adhoc Task Completed
awf_workflowmodel.type.awf_completedAdhocTask.description=Adhoc Task Completed
Spring configuration file for auto deployment of my workflow at
\alfresco-community-40c-sbc\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\fr_intuitiv_module_sbc_amp\context\bootstrap-context.xml<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Workflows –>
<bean id="sbc.workflowBootstrap" parent="workflowDeployer">
<property name="workflowDefinitions">
<list>
<props>
<prop key="engineId">jbpm</prop>
<prop key="location">alfresco/workflow/mon-workflow.xml</prop>
<prop key="mimetype">text/xml</prop>
<prop key="redeploy">true</prop>
</props>
</list>
</property>
<property name="models">
<list>
<value>alfresco/module/fr_intuitiv_module_sbc_amp/model/mon-workflow-model.xml</value>
</list>
</property>
<property name="labels">
<list>
<value>alfresco/module/fr_intuitiv_module_sbc_amp/model/mon-workflow-model</value>
</list>
</property>
<property name="repositoryWorkflowDefsLocations" ref="customWorkflowDefsRepositoryLocation" />
</bean>
</beans>
When I type in workflow admin console :list my file : show file alfresco/workflow/mon-workflow.xml
(ok)deploy my file : deploy alfresco/workflow/mon-workflow.xml
(I've got syntax error)list available workflows : show definitions all
Only 11 items are listed, the out of box workflows only (activiti one).Why the deployment failed ? What is wrong ?