mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
This is a very rudimentary version of a WCM Workflow that uses
Workflow packages. It's hooked up to the sumbit single file action in the top level website screen in an exceedingly awkard way. The UI doesn't complain about anything, nor does it display the contents of the package. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4099 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -406,6 +406,15 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="start-avm-workflow" class="org.alfresco.repo.avm.actions.StartAVMWorkflowAction" parent="action-executer">
|
||||
<property name="workflowService">
|
||||
<ref bean="WorkflowService"/>
|
||||
</property>
|
||||
<property name="personService">
|
||||
<ref bean="personService"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="simple-avm-promote" class="org.alfresco.repo.avm.actions.SimpleAVMPromoteAction" parent="action-executer">
|
||||
<property name="avmSyncService">
|
||||
<ref bean="avmSyncService"/>
|
||||
|
@@ -93,3 +93,8 @@ simple-avm-submit.description=This will submit any newer nodes in the matched it
|
||||
simple-avm-promote.title=Simple Sandbox Promotion
|
||||
simple-avm-promote.description=This promotes any newer nodes in the matched item to the specified target sandbox.
|
||||
simple-avm-promote.target-store.display-label=The name of the target AVM store.
|
||||
|
||||
start-avm-workflow.title=Start a WCM Workflow
|
||||
start-avm-workflow.description=Starts a workflow expecting an AVM workflow package
|
||||
start-avm-workflow.store-name.display-label=Store name for start task
|
||||
start-avm-workflow.workflow-name.display-label=The name of the WCM workflow to invoke.
|
||||
|
@@ -75,10 +75,11 @@ wcmwf_submit.workflow.description=Submit Web Content
|
||||
|
||||
wcmwf_submitmodel.type.wcmwf_startSubmit.title=Submit Web Content
|
||||
wcmwf_submitmodel.type.wcmwf_startSubmit.description=Have colleague review changes
|
||||
wcmwf_submitmodel.property.wcmwf_submitDueDate.description=Task Due Date
|
||||
wcmwf_submitmodel.association.wcmwf_assignee.title=Asignee
|
||||
wcmwf_submitmodel.association.wcmwf_assignee.description=Who's doing the reviewing
|
||||
wcmwf_submitmodel.property.wcmwf_description.title=Task Description
|
||||
wcmwf_submitmodel.property.wcmwf_description.description=Description of what needs to be achieved
|
||||
wcmwf_submitmodel.type.wcmwf_setupSubmit.title=Submit Web Content
|
||||
wcmwf_submitmodel.type.wcmwf_setupSubmit.description=Choose a colleague to review changes
|
||||
wcmwf_submitmodel.type.wcmwf_review.title=Review Content
|
||||
wcmwf_submitmodel.type.wcmwf_review.description=Review Content
|
||||
|
@@ -686,6 +686,20 @@
|
||||
</properties>
|
||||
</aspect>
|
||||
|
||||
<!-- An aspect to make a node reference another node. Needed to
|
||||
support cross repository references. There is a sys:reference type but
|
||||
that is awkard for AVM Nodes which are less flexible as to type. -->
|
||||
<aspect name="cm:referencesnode">
|
||||
<title>References Node</title>
|
||||
<properties>
|
||||
<property name="cm:noderef">
|
||||
<title>Node Reference</title>
|
||||
<type>d:noderef</type>
|
||||
<mandatory>true</mandatory>
|
||||
</property>
|
||||
</properties>
|
||||
</aspect>
|
||||
|
||||
</aspects>
|
||||
|
||||
</model>
|
||||
|
@@ -10,16 +10,27 @@
|
||||
<start-state name="start">
|
||||
<task name="wcmwf:startSubmit" swimlane="initiator">
|
||||
<controller>
|
||||
<variable name="assignee" access="write" mapped-name="wcmwf:assignee"/>
|
||||
<variable name="description" access="write" mapped-name="wcmwf:description"/>
|
||||
<variable name="storeName" access="write" mapped-name="wcmwf:storeName"/>
|
||||
<!-- <variable name="assignee" access="write" mapped-name="wcmwf:assignee"/> -->
|
||||
<!-- <variable name="description" access="write" mapped-name="wcmwf:description"/> -->
|
||||
<variable name="package" access="write" mapped-name="bpm:package"/>
|
||||
<variable name="workflowcontext" access="write" mapped-name="bpm:context"/>
|
||||
</controller>
|
||||
</task>
|
||||
<transition name="" to="review"/>
|
||||
<transition name="" to="setup"/>
|
||||
</start-state>
|
||||
|
||||
<task-node name="setup">
|
||||
<task name="wcmwf:setupSubmit" swimlane="initiator">
|
||||
<controller>
|
||||
<variable name="assignee" access="write" mapped-name="wcmwf:assignee"/>
|
||||
<variable name="description" access="write" mapped-name="wcmwf:description"/>
|
||||
<variable name="package" access="write" mapped-name="bpm:package"/>
|
||||
<variable name="workflowcontext" access="write" mapped-name="bpm:context"/>
|
||||
</controller>
|
||||
</task>
|
||||
<transition name="" to="review"/>
|
||||
</task-node>
|
||||
|
||||
<swimlane name="assignee">
|
||||
<assignment actor-id="#{assignee.properties['cm:userName']}"/>
|
||||
</swimlane>
|
||||
@@ -28,13 +39,12 @@
|
||||
<task name="wcmwf:review" swimlane="assignee">
|
||||
<controller>
|
||||
<variable name="description" access="read,required" mapped-name="wcmwf:description"/>
|
||||
<variable name="storeName" access="read,required" mapped-name="wcmwf:storeName"/>
|
||||
<variable name="package" access="read,required" mapped-name="bpm:package"/>
|
||||
<variable name="workflowcontext" access="read,required" mapped-name="bpm:context"/>
|
||||
</controller>
|
||||
</task>
|
||||
<transition name="approve" to="end">
|
||||
<action class="org.alfresco.repo.avm.wf.AVMSubmitHandler"/>
|
||||
<transition name="Approve" to="end">
|
||||
<action class="org.alfresco.repo.avm.wf.AVMSubmitPackageHandler"/>
|
||||
</transition>
|
||||
</task-node>
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
</imports>
|
||||
|
||||
<namespaces>
|
||||
<namespace uri="http://www/alfresco.org/model/wcmwf/1.0" prefix="wcmwf"/>
|
||||
<namespace uri="http://www.alfresco.org/model/wcmwf/1.0" prefix="wcmwf"/>
|
||||
</namespaces>
|
||||
|
||||
<types>
|
||||
@@ -21,41 +21,33 @@
|
||||
<title>Description</title>
|
||||
<type>d:text</type>
|
||||
</property>
|
||||
|
||||
<property name="wcmwf:storeName">
|
||||
<title>Sandbox Store Name</title>
|
||||
<type>d:text</type>
|
||||
</property>
|
||||
</properties>
|
||||
</type>
|
||||
|
||||
<type name="wcmwf:startSubmit">
|
||||
<title>Submit Web Content</title>
|
||||
<parent>wcmwf:baseSubmitTask</parent>
|
||||
|
||||
<properties>
|
||||
<property name="wcmwf:submitDueDate">
|
||||
<title>Due Date</title>
|
||||
<type>d:date</type>
|
||||
</property>
|
||||
</properties>
|
||||
|
||||
<associations>
|
||||
<association name="wcmwf:assignee">
|
||||
<title>Assignee</title>
|
||||
<source>
|
||||
<mandatory>false</mandatory>
|
||||
<many>false</many>
|
||||
</source>
|
||||
<target>
|
||||
<class>cm:person</class>
|
||||
<mandatory>true</mandatory>
|
||||
<many>false</many>
|
||||
</target>
|
||||
</association>
|
||||
</associations>
|
||||
</type>
|
||||
|
||||
<type name="wcmwf:setupSubmit">
|
||||
<title>Submit Web Content</title>
|
||||
<parent>wcmwf:baseSubmitTask</parent>
|
||||
<associations>
|
||||
<association name="wcmwf:assignee">
|
||||
<title>The Reviewer</title>
|
||||
<source>
|
||||
<mandatory>false</mandatory>
|
||||
<many>false</many>
|
||||
</source>
|
||||
<target>
|
||||
<class>cm:person</class>
|
||||
<mandatory>true</mandatory>
|
||||
<many>false</many>
|
||||
</target>
|
||||
</association>
|
||||
</associations>
|
||||
</type>
|
||||
|
||||
<type name="wcmwf:review">
|
||||
<title>Review</title>
|
||||
<parent>wcmwf:baseSubmitTask</parent>
|
||||
|
Reference in New Issue
Block a user