cancel
Showing results for 
Search instead for 
Did you mean: 

Please provide me a working wcm:wf review and submit.

nikhil
Champ in-the-making
Champ in-the-making
Hi,

Can any one of you people please furnish me with a customized wcm:wf for review and submission of the content?.

Also please provide me information about all  the steps that u have undertaken in getting the workflow up and running.
I have tried customizing my wcm:review workflow. But after the customizations, the users and roles selection tba does not appear in the workflow configuration wiondow at all

I am not sure which all files to modify for configuring a wcm:workflow


Can you please send me ur pre existing customized code so that i can get atleast some head way into this?
Please  help

Thank you in anticipation

Warm Regards,
Nikhil sharma
4 REPLIES 4

davidc
Star Contributor
Star Contributor
What customization do you want to achieve?

nikhil
Champ in-the-making
Champ in-the-making
Hi,

1, Firstly i do not want the serial/parallel option to be there. It has to be a serial workflow.

2. It has to pass through minimum three stages of review.

3. Once it passes these three stages of review, it should automatically get submitted to staging.

4. If possible, i also want to incorporate a publishing task after the file has been submitted to staging.

Status Achieved :
1. I have created a process definition and have been successful in associating it with a web project.

Here is my code





<?xml version="1.0" encoding="UTF-8"?>

<!– This describes a process for submitting changed content in a user –>
<!– sandbox, via an approver, to the staging sandbox. –>

<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="wcmwf:submitDmlWorkflow">

<swimlane name="initiator"/>

<!– –>
<!– Start Review –>
<!– –>

<start-state name="start">
<task name="wcmwf:submitReviewTask" swimlane="initiator"/>
<transition name="" to="reviewCopyEditor"/>
</start-state>


<swimlane name="CopyEditor">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<pooledactors>#{people.getGroup('GROUP_Editor')}</pooledactors>
</assignment>
</swimlane>

<swimlane name="SectionEditor">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<pooledactors>#{people.getGroup('GROUP_Developer')}</pooledactors>
</assignment>
</swimlane>

<swimlane name="ChiefLayoutEditor">
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
<pooledactors>#{people.getGroup('GROUP_VP')}</pooledactors>
</assignment>
</swimlane>

<task-node name="reviewCopyEditor">
<task name="wcmwf:editDmlTask" swimlane="CopyEditor">
<event type="task-create">
<script>
if (bpm_workflowDueDate != void) taskInstance.dueDate = bpm_workflowDueDate;
if (bpm_workflowPriority != void) taskInstance.priority = bpm_workflowPriority;
</script>
</event>

</task>
<transition name="review" to="reviewSectionEditor" />
</task-node>

<task-node name="reviewSectionEditor">
<task name="wcmwf:reviewDmlTask" swimlane="SectionEditor">
<event type="task-create">
<script>
if (bpm_workflowDueDate != void) taskInstance.dueDate = bpm_workflowDueDate;
if (bpm_workflowPriority != void) taskInstance.priority = bpm_workflowPriority;
</script>
</event>

</task>
<transition name="reject" to="rejectedToCopyEditor" />
<transition name="approve" to="reviewChiefLayoutEditor" />
</task-node>

<task-node name="reviewChiefLayoutEditor">
<task name="wcmwf:reviewDmlTask" swimlane="ChiefLayoutEditor">
<event type="task-create">
<script>
if (bpm_workflowDueDate != void) taskInstance.dueDate = bpm_workflowDueDate;
if (bpm_workflowPriority != void) taskInstance.priority = bpm_workflowPriority;
</script>
</event>

</task>
<transition name="reject" to="rejectedToSectionEditor" />
<transition name="approve" to="approved" >
<action class="org.alfresco.repo.avm.wf.AVMSubmitPackageHandler"/>
</transition>
</task-node>


<task-node name="rejectedToCopyEditor">
<task name="wcmwf:rejectedDmlTask" swimlane="CopyEditor" />
<transition name="review" to="reviewSectionEditor" />
</task-node>

<task-node name="rejectedToSectionEditor">
<task name="wcmwf:rejectedDmlTask" swimlane="SectionEditor" />
<transition name="approve" to="reviewChiefLayoutEditor" />
<transition name="reject" to="reviewCopyEditor" />
</task-node>

<task-node name="approved">
<task name="wcmwf:approvedTask" swimlane="initiator" >
</task>
<transition name="" to="end" />
</task-node>

<end-state name="end" />

<event type="process-end">
<action class="org.alfresco.repo.avm.wf.AVMClearSubmittedHandler"/>
<action class="org.alfresco.repo.avm.wf.AVMRemoveWFStoreHandler"/>
</event>


</process-definition>



Issues Faced :
1. Whenever the workflow is executed, the users and roles section does not appear in the available configuration.

2. So am not able to assign tasks to anyone. Once i click on finish, there is no instance of the workflow that has been started. So its as if i never started the workflow at all Smiley Happy



QUERY :
Please solve this problem of mine, and also tell me what exact steps are to be followed. Please specify the filename and the portion in which i am supposed to make modifications to get my workflow running.

For eg: I was aware that i was supposed to make an enrty into web-client-config-wcm.xml once i created the process definition file.

Now in the same manner, can you please tell me what all modifications to make and where all to make them.

Please help me, Currently a newbie on this tool.


Warm Regards,
Nikhil

nikhil
Champ in-the-making
Champ in-the-making
The above code i have pasted was given to me by one of the members of this forum.

I am basically trying to get a workflow fully functional first

(ie)   implementing a serial review
            followed by submission to staging sandbox
            and subsequent publishing                 


all automated through a workflow


I am trying to do so with the above code itself.

Once that is done, i shall look for further customization Smiley Indifferent

Please assist me in this regard… and Guide me through all the tasks that have to be done to get my workflow fully functional

tsgpartner_mui
Champ in-the-making
Champ in-the-making
Nikhil,


Not sure if you're still working on this.


But I've recently been doing a similar workflow like yours.  With your issue of the 'users and roles section does not appear in the available config', thats because you hard-coded the pooled groups into your process definition, so you don't need to assign tasks to people.  Once you hit finish, the task gets sent to the first reviewed pool group 'Editor".


All the users in that group will be sent a task review, and the first one to take ownership or approve, then that task is sent the next review pool group, and so on.


Also, this is very important, since it is a "pooled task", in the My Alfresco dashboard of a user, you must configure the pooled tasks to be visible.  SO in the configure dashboard wizard under step 2 components, you must add "my pooled tasks(list of tasks allocated to your pool)" to the dashboard.  Thus, any pooled tasks will show up underneath the dashboard.