cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Workflows and Test Deployments

tschaib2
Champ in-the-making
Champ in-the-making
Hello all,

I've been trying to get WCM setup to use as content management for our current web app and am running into a bit of a snag.  For our purposes, we'd like to use the Test Server feature to allow authors and reviewers to deploy snapshots of the content for review.

This seems to work well, however we also are using a custom workflow that has several different types of tasks that extend the wcmwf:reviewTask (example below), unfortunately, any of the custom reviewTask nodes do not display the Deploy option when reviewing the task.  Is there any kind of customization I can do to enable this?

Sample Customer reviewTask:

      
    <type name="scwf:marketingReviewTask">
         <parent>wcmwf:reviewTask</parent>
         <mandatory-aspects>
            <aspect>scwf:departmentReview</aspect>
         </mandatory-aspects>
      </type>
2 REPLIES 2

marutiprasad
Champ in-the-making
Champ in-the-making
Hi,

According to normal work flow terminology, A reviewer only "Review" an item. The deployment option only comes to "Content Manager" or Admin.Rest of the user are just use "Approve" or "dis Approve" options.

thanks
Maruti

tschaib2
Champ in-the-making
Champ in-the-making
I've eventually worked out the solution for this.

First of all, the user must have Content Manager privileges as noted below.  (If anyone knows a way of switching up these permissions so Reviewers can get them, please let me know).

Also, you must configure your workflow steps to to use the dialog that is used by the other WCM tasks.  The code snipped below shows how this looks.  I've dropped it in my web-client-config-custom.xml file.

   <config evaluator="node-type" condition="scwf:invalidTask" replace="true">
      <dialogs>
            <dialog name="manageTask" page="/jsp/wcm/manage-review-task-dialog.jsp"
                    managed-bean="ManageReviewTaskDialog"
                    icon="/images/icons/manage_workflow_task_large.gif"
                    description-id="manage_task_desc" />
       </dialogs>
      <property-sheet>
         <separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
         <show-property name="wcmwf:label" read-only="true" />
            <show-property name="bpm:description" component-generator="TextAreaGenerator" read-only="true"/>
            <show-property name="bpm:status" />
            <show-property name="bpm:comment" component-generator="TextAreaGenerator" />
            <separator name="sep2" display-label-id="details" component-generator="HeaderSeparatorGenerator" />
         <show-property name="scwf:validationMessage" read-only="true" />
      </property-sheet>
   </config>