Unbreaks workflow on WCM-DEV.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4169 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-10-19 21:44:00 +00:00
parent dd5c46339e
commit f005180276
4 changed files with 346 additions and 254 deletions

View File

@@ -164,19 +164,19 @@
<prop key="engineId">jbpm</prop> <prop key="engineId">jbpm</prop>
<prop key="location">alfresco/workflow/review_processdefinition.xml</prop> <prop key="location">alfresco/workflow/review_processdefinition.xml</prop>
<prop key="mimetype">text/xml</prop> <prop key="mimetype">text/xml</prop>
<prop key="redeploy">true</prop> <prop key="redeploy">false</prop>
</props> </props>
<props> <props>
<prop key="engineId">jbpm</prop> <prop key="engineId">jbpm</prop>
<prop key="location">alfresco/workflow/adhoc_processdefinition.xml</prop> <prop key="location">alfresco/workflow/adhoc_processdefinition.xml</prop>
<prop key="mimetype">text/xml</prop> <prop key="mimetype">text/xml</prop>
<prop key="redeploy">true</prop> <prop key="redeploy">false</prop>
</props> </props>
</list> </list>
</property> </property>
<property name="models"> <property name="models">
<list> <list>
<value>alfresco/model/workflowModel.xml</value> <value>alfresco/workflow/workflowModel.xml</value>
</list> </list>
</property> </property>
<property name="labels"> <property name="labels">

View File

@@ -422,7 +422,6 @@
<value>alfresco/model/applicationModel.xml</value> <value>alfresco/model/applicationModel.xml</value>
<value>alfresco/model/forumModel.xml</value> <value>alfresco/model/forumModel.xml</value>
<value>alfresco/model/recordsModel.xml</value> <value>alfresco/model/recordsModel.xml</value>
<value>alfresco/model/workflowModel.xml</value>
<!-- Implementation models --> <!-- Implementation models -->
<value>org/alfresco/repo/security/authentication/userModel.xml</value> <value>org/alfresco/repo/security/authentication/userModel.xml</value>

View File

@@ -2,269 +2,355 @@
<model name="bpm:businessprocessmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <model name="bpm:businessprocessmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Business Process Model</description> <description>Business Process Model</description>
<author>Alfresco</author> <author>Alfresco</author>
<version>1.0</version> <version>1.0</version>
<!-- Imports are required to allow references to definitions in other models --> <!-- Imports are required to allow references to definitions in other models -->
<imports> <imports>
<!-- Import Alfresco Dictionary Definitions --> <!-- Import Alfresco Dictionary Definitions -->
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/> <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<!-- Import Alfresco Content Domain Model Definitions --> <!-- 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/content/1.0" prefix="cm" />
</imports> </imports>
<namespaces> <namespaces>
<namespace uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"/> <namespace uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
</namespaces> </namespaces>
<constraints>
<constraint name="bpm:allowedPriority" type="LIST">
<parameter name="allowedValues">
<!-- TODO: Determine if priority values can be mapped to human-readable strings -->
<list>
<value>1</value>
<value>2</value>
<value>3</value>
</list>
</parameter>
</constraint>
<constraint name="bpm:allowedStatus" type="LIST">
<parameter name="allowedValues">
<!-- TODO: Determine if status values can be mapped to human-readable strings -->
<list>
<value>Not Yet Started</value>
<value>In Progress</value>
<value>On Hold</value>
<value>Cancelled</value>
<value>Completed</value>
</list>
</parameter>
</constraint>
<constraint name="bpm:percentage" type="MINMAX">
<parameter name="minValue"><value>0</value></parameter>
<parameter name="maxValue"><value>100</value></parameter>
</constraint>
</constraints>
<types>
<!-- -->
<!-- Base definition for all Tasks -->
<!-- -->
<type name="bpm:task">
<title>Task</title>
<description>Task</description>
<parent>cm:content</parent>
<properties>
<!-- -->
<!-- Assignment -->
<!-- -->
<!-- Note: Implemented via cm:ownable aspect -->
<!-- -->
<!-- Task Identifier -->
<!-- -->
<property name="bpm:taskId">
<title>Task Identifier</title>
<type>d:long</type>
<protected>true</protected>
<mandatory>true</mandatory>
</property>
<!-- -->
<!-- Task Dates -->
<!-- -->
<property name="bpm:startDate">
<title>Start Date</title>
<type>d:date</type>
<protected>true</protected>
</property>
<property name="bpm:completionDate">
<title>End Date</title>
<type>d:date</type>
<protected>true</protected>
</property>
<property name="bpm:dueDate">
<title>Due Date</title>
<type>d:date</type>
</property>
<!-- --> <constraints>
<!-- Task Progress -->
<!-- -->
<property name="bpm:status">
<title>Status</title>
<type>d:text</type>
<mandatory>true</mandatory>
<default>Not Yet Started</default>
<constraints>
<constraint ref="bpm:allowedStatus"/>
</constraints>
</property>
<property name="bpm:priority">
<title>Priority</title>
<type>d:int</type>
<mandatory>true</mandatory>
<default>2</default>
<constraints>
<constraint ref="bpm:allowedPriority"/>
</constraints>
</property>
<property name="bpm:percentComplete">
<title>Percentage Complete</title>
<type>d:int</type>
<mandatory>true</mandatory>
<default>0</default>
<constraints>
<constraint ref="bpm:percentage"/>
</constraints>
</property>
<!-- --> <constraint name="bpm:allowedPriority" type="LIST">
<!-- Task Notes --> <parameter name="allowedValues">
<!-- --> <!-- TODO: Determine if priority values can be mapped to human-readable strings -->
<!-- Note: Implemented via cm:content property : see 'fm:post' --> <list>
<value>1</value>
<value>2</value>
<value>3</value>
</list>
</parameter>
</constraint>
</properties> <constraint name="bpm:allowedStatus" type="LIST">
<parameter name="allowedValues">
<!-- TODO: Determine if status values can be mapped to human-readable strings -->
<list>
<value>Not Yet Started</value>
<value>In Progress</value>
<value>On Hold</value>
<value>Cancelled</value>
<value>Completed</value>
</list>
</parameter>
</constraint>
<associations> <constraint name="bpm:percentage" type="MINMAX">
<parameter name="minValue">
<value>0</value>
</parameter>
<parameter name="maxValue">
<value>100</value>
</parameter>
</constraint>
<!-- List of users who may potentially get assigned to the task --> </constraints>
<association name="bpm:pooledActors">
<title>Pooled Users</title>
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations> <types>
<mandatory-aspects> <!-- -->
<aspect>cm:ownable</aspect> <!-- Base definition for all Tasks -->
</mandatory-aspects> <!-- -->
</type>
<type name="bpm:task">
<parent>cm:content</parent>
<properties>
<!-- -->
<!-- Assignment -->
<!-- -->
<!-- Note: Implemented via cm:ownable aspect -->
<!-- -->
<!-- Task Identifier -->
<!-- -->
<property name="bpm:taskId">
<type>d:long</type>
<protected>true</protected>
<mandatory>true</mandatory>
</property>
<!-- Task Description -->
<property name="bpm:description">
<type>d:text</type>
</property>
<!-- -->
<!-- Task Dates -->
<!-- -->
<property name="bpm:startDate">
<type>d:date</type>
<protected>true</protected>
</property>
<property name="bpm:completionDate">
<type>d:date</type>
<protected>true</protected>
</property>
<property name="bpm:dueDate">
<type>d:date</type>
</property>
<!-- -->
<!-- Task Progress -->
<!-- -->
<property name="bpm:status">
<type>d:text</type>
<mandatory>true</mandatory>
<default>Not Yet Started</default>
<constraints>
<constraint ref="bpm:allowedStatus" />
</constraints>
</property>
<property name="bpm:priority">
<type>d:int</type>
<mandatory>true</mandatory>
<default>2</default>
<constraints>
<constraint ref="bpm:allowedPriority" />
</constraints>
</property>
<property name="bpm:percentComplete">
<type>d:int</type>
<mandatory>true</mandatory>
<default>0</default>
<constraints>
<constraint ref="bpm:percentage" />
</constraints>
</property>
<!-- -->
<!-- Task Notes -->
<!-- -->
<!-- Note: Implemented via cm:content property : see 'fm:post' -->
</properties>
<associations>
<!-- List of users who may potentially get assigned to the task -->
<association name="bpm:pooledActors">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
<mandatory-aspects>
<aspect>cm:ownable</aspect>
</mandatory-aspects>
</type>
<!-- --> <!-- -->
<!-- The base for all Tasks assigned via a Workflow --> <!-- The base for all Tasks assigned via a Workflow -->
<!-- --> <!-- -->
<type name="bpm:workflowTask">
<title>Workflow Task</title>
<description>Task assigned via Workflow</description>
<parent>bpm:task</parent>
<properties>
<!-- Task Context --> <type name="bpm:workflowTask">
<!-- e.g. Space, Document --> <parent>bpm:task</parent>
<property name="bpm:context">
<title>Task Context</title>
<type>d:noderef</type>
</property>
<!-- Task Outcome -->
<property name="bpm:outcome">
<title>Task Outcome</title>
<type>d:text</type> <!-- Transition id -->
</property>
<!-- Items within package marked as complete --> <properties>
<property name="bpm:completedItems">
<type>d:noderef</type>
<multiple>true</multiple>
</property>
<!-- Applicable actions for workflow package --> <!-- Task Context -->
<property name="bpm:packageActionGroup"> <!-- e.g. Space, Document -->
<type>d:text</type> <property name="bpm:context">
</property> <type>d:noderef</type>
</property>
<!-- Applicable actions for workflow package item --> <!-- Task Outcome -->
<property name="bpm:packageItemActionGroup"> <property name="bpm:outcome">
<type>d:text</type> <type>d:text</type><!-- Transition id -->
<default>workflow_item_read_actions</default> </property>
</property>
</properties>
<associations> <!-- Items within package marked as complete -->
<property name="bpm:completedItems">
<association name="bpm:package"> <type>d:noderef</type>
<title>Workflow Package</title> <multiple>true</multiple>
<source> </property>
<mandatory>false</mandatory>
<many>false</many> <!-- Applicable actions for workflow package -->
</source> <property name="bpm:packageActionGroup">
<target> <type>d:text</type>
<class>bpm:workflowPackage</class> <!-- NOTE: empty default specified, therefore no actions -->
<mandatory>true</mandatory> <default></default>
<many>false</many> </property>
</target>
</association> <!-- Applicable actions for workflow package item -->
<property name="bpm:packageItemActionGroup">
</associations> <type>d:text</type>
<default>read_package_item_actions</default>
</type> </property>
</properties>
<associations>
<association name="bpm:package">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>bpm:workflowPackage</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</associations>
</type>
<!-- -->
<!-- Default Start Task -->
<!-- -->
<type name="bpm:startTask">
<parent>bpm:workflowTask</parent>
<properties>
<!-- Description for the workflow as a whole -->
<property name="bpm:workflowDescription">
<type>d:text</type>
</property>
<!-- Due date for the workflow as a whole -->
<property name="bpm:workflowDueDate">
<type>d:date</type>
</property>
<!-- Priority for the workflow as a whole -->
<property name="bpm:workflowPriority">
<type>d:int</type>
<default>2</default>
<constraints>
<constraint ref="bpm:allowedPriority" />
</constraints>
</property>
</properties>
<overrides>
<property name="bpm:packageActionGroup">
<default>add_package_item_actions</default>
</property>
<property name="bpm:packageItemActionGroup">
<default>edit_and_remove_package_item_actions</default>
</property>
</overrides>
</type>
</types> </types>
<aspects> <aspects>
<!-- --> <!-- -->
<!-- A collection of content routed through a workflow. --> <!-- Single Task Assignee -->
<!-- --> <!-- -->
<!-- Note: this aspect should be applied to a container such as -->
<!-- a folder, versioned folder or layered folder. --> <aspect name="bpm:assignee">
<!-- --> <associations>
<aspect name="bpm:workflowPackage">
<title>Workflow Package</title>
<properties> <association name="bpm:assignee">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:person</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
<!-- --> </associations>
<!-- Associated Workflow --> </aspect>
<!-- -->
<property name="bpm:workflowDefinitionId"> <!-- -->
<title>Workflow Definition Id</title> <!-- Multiple Task Assignees -->
<type>d:text</type> <!-- -->
</property>
<property name="bpm:workflowDefinitionName"> <aspect name="bpm:assignees">
<title>Workflow Definition Name</title> <associations>
<type>d:text</type>
</property> <association name="bpm:assignees">
<property name="bpm:workflowInstanceId"> <source>
<title>Workflow Instance Id</title> <mandatory>false</mandatory>
<type>d:text</type> <many>false</many>
</property> </source>
<target>
<!-- TODO: Define properties (replicated from Workflow/Task Engine) for --> <class>cm:person</class>
<!-- search within Alfresco e.g. task info, workflow info ... --> <mandatory>true</mandatory>
<many>true</many>
</properties> </target>
</association>
<!-- Commentary -->
<!-- Note: Implement tracking of comments via fm:discussable aspect --> </associations>
<!-- Note: Haven't made this aspect mandatory as this would force creation --> </aspect>
<!-- of forum folder against each package, even if there aren't any -->
<!-- comments --> <!-- -->
<!-- A collection of content routed through a workflow. -->
</aspect> <!-- -->
<!-- Note: this aspect should be applied to a container such as -->
<!-- a folder, versioned folder or layered folder. -->
<!-- -->
<aspect name="bpm:workflowPackage">
<properties>
<!-- Created by Workflow Service (true), or provided from outside (false) -->
<property name="bpm:isSystemPackage">
<type>d:boolean</type>
</property>
<!-- -->
<!-- Associated Workflow -->
<!-- -->
<property name="bpm:workflowDefinitionId">
<type>d:text</type>
</property>
<property name="bpm:workflowDefinitionName">
<type>d:text</type>
</property>
<property name="bpm:workflowInstanceId">
<type>d:text</type>
</property>
<!-- TODO: Define properties (replicated from Workflow/Task Engine) for -->
<!-- search within Alfresco e.g. task info, workflow info ... -->
</properties>
<!-- Commentary -->
<!-- Note: Implement tracking of comments via fm:discussable aspect -->
<!-- Note: Haven't made this aspect mandatory as this would force creation -->
<!-- of forum folder against each package, even if there aren't any -->
<!-- comments -->
</aspect>
</aspects>
</aspects>
</model> </model>

View File

@@ -19,19 +19,18 @@
<type name="wf:submitReviewTask"> <type name="wf:submitReviewTask">
<parent>bpm:startTask</parent> <parent>bpm:startTask</parent>
<mandatory-aspects>
<aspect>bpm:assignee</aspect>
</mandatory-aspects>
</type> </type>
<type name="wf:reviewTask"> <type name="wf:reviewTask">
<parent>bpm:workflowTask</parent> <parent>bpm:workflowTask</parent>
<overrides> <overrides>
<property name="bpm:packageItemActionGroup"> <property name="bpm:packageItemActionGroup">
<default>workflow_item_edit_actions</default> <default>edit_package_item_actions</default>
</property> </property>
</overrides> </overrides>
</type> </type>
@@ -39,21 +38,29 @@
<!-- Adhoc Tasks --> <!-- Adhoc Tasks -->
<!-- --> <!-- -->
<type name="wf:submitAdhocTask"> <type name="wf:submitAdhocTask">
<parent>bpm:startTask</parent> <parent>bpm:startTask</parent>
<properties> <properties>
<property name="wf:notifyMe"> <property name="wf:notifyMe">
<type>d:boolean</type> <type>d:boolean</type>
<default>false</default> <default>false</default>
</property> </property>
</properties> </properties>
<mandatory-aspects>
<aspect>bpm:assignee</aspect>
</mandatory-aspects>
</type> </type>
<type name="wf:adhocTask"> <type name="wf:adhocTask">
<parent>bpm:workflowTask</parent> <parent>bpm:workflowTask</parent>
<overrides>
<property name="bpm:packageActionGroup">
<default>add_package_item_actions</default>
</property>
<property name="bpm:packageItemActionGroup">
<default>edit_package_item_actions</default>
</property>
</overrides>
</type> </type>
<type name="wf:completedAdhocTask"> <type name="wf:completedAdhocTask">