AnsweredAssumed Answered

Activiti Workflow exclusive Gateway does not work

Question asked by wajdi.ghribi on May 10, 2013
Latest reply on May 17, 2013 by rajeshavatani
Hi, please i need help , i have no mush time , i m trying to deploy a workflow via activiti eclipse designer so i created my project(fllowed the tuto)which contains the four main files , the workflow is deployed and works fine except that the gateway does not make decision!!!
scWorkflow.properties:

activitiHelloWorldUI.workflow.title=Hello World UI (Activiti)
activitiHelloWorldUI.workflow.description=A simple hello world process using Activiti
scwf_helloWorldUI.workflow.title=Hello World UI (JBPM)
scwf_helloWorldUI.workflow.description=A simple hello world process

activitiPublishWhitepaper.workflow.title=Publish Whitepaper to Web (Activiti)
activitiPublishWhitepaper.workflow.description=Review and approve Someco Whitepaper content using Activiti
scwf_publishWhitepaper.workflow.title=Publish Whitepaper to Web (JBPM)
scwf_publishWhitepaper.workflow.description=Review and approve Someco Whitepaper content using JBPM

# The following "transition" props are for JBPM only
scwf_publishWhitepaper.node.Marketing\ Review.transition.approve.title=Approve
scwf_publishWhitepaper.node.Marketing\ Review.transition.approve.description=Approve this change
scwf_publishWhitepaper.node.Marketing\ Review.transition.reject.title=Reject
scwf_publishWhitepaper.node.Marketing\ Review.transition.reject.description=Reject this change
scwf_publishWhitepaper.node.Operations\ Review.transition.approve.title=Approve
scwf_publishWhitepaper.node.Operations\ Review.transition.approve.description=Approve this change
scwf_publishWhitepaper.node.Operations\ Review.transition.reject.title=Reject
scwf_publishWhitepaper.node.Operations\ Review.transition.reject.description=Reject this change
scwf_publishWhitepaper.node.Third\ Party\ Review.transition.approve.title=Approve
scwf_publishWhitepaper.node.Third\ Party\ Review.transition.approve.description=Approve this change
scwf_publishWhitepaper.node.Third\ Party\ Review.transition.reject.title=Reject
scwf_publishWhitepaper.node.Third\ Party\ Review.transition.reject.description=Reject this change
scwf_publishWhitepaper.node.Revise.transition.submit.title=Resubmit
scwf_publishWhitepaper.node.Revise.transition.submit.description=Resubmit after revision
scwf_publishWhitepaper.node.Revise.transition.done.title=Abort
scwf_publishWhitepaper.node.Revise.transition.done.description=Stop the review process for this content

# Workflow Model related strings (Activiti & JBPM)

scwf_workflowmodel.type.scwf_submitHelloWorldTask.title=Start Hello World UI Workflow
scwf_workflowmodel.type.scwf_submitHelloWorldTask.description=Submit a workflow that says hello in the log
scwf_workflowmodel.type.scwf_submitReviewTask.title=Start Someco Web Review
scwf_workflowmodel.type.scwf_submitReviewTask.description=Submit Someco Web documents for review & approval to a group of people
scwf_workflowmodel.type.scwf_marketingReview.title=Marketing Review
scwf_workflowmodel.type.scwf_marketingReview.description=Review documents for impact on SomeCo marketing message
scwf_workflowmodel.type.scwf_activitiMarketingReview.title=Marketing Review
scwf_workflowmodel.type.scwf_activitiMarketingReview.description=Review documents for impact on Someco marketing message
scwf_workflowmodel.type.scwf_operationsReview.title=Operations Review
scwf_workflowmodel.type.scwf_operationsReview.description=Review documents for technical accuracy and best practices
scwf_workflowmodel.type.scwf_activitiOperationsReview.title=Operations Review
scwf_workflowmodel.type.scwf_activitiOperationsReview.description=Review documents for technical accuracy and best practices
scwf_workflowmodel.type.scwf_activitiThirdPartyReview.title=Third Party Review
scwf_workflowmodel.type.scwf_activitiThirdPartyReview.description=Obtain third party approval
scwf_workflowmodel.type.scwf_revise.title=Revise
scwf_workflowmodel.type.scwf_revise.description=Make changes then resubmit or abort
scwf_workflowmodel.type.scwf_activitiRevise.title=Revise
scwf_workflowmodel.type.scwf_activitiRevise.description=Make changes then resubmit or abort
scwf_workflowmodel.type.scwf_activitiReviewTask.title=Review
scwf_workflowmodel.type.scwf_activitiReviewTask.description=Approve or reject this change

scwf_workflowmodel.property.scwf_helloName.title=Name
scwf_workflowmodel.property.scwf_helloName.description=Say hello to this person
scwf_workflowmodel.property.scwf_reviewerEmail.title=Reviewer email
scwf_workflowmodel.property.scwf_reviewerEmail.description=Third-party reviewer email address
scwf_workflowmodel.property.scwf_approveRejectOutcome.title=Outcome
scwf_workflowmodel.property.scwf_approveRejectOutcome.description=Reviewer outcome
scwf_workflowmodel.property.scwf_reviseOutcome.title=Outcome
scwf_workflowmodel.property.scwf_reviseOutcome.description=Reviewer outcome


scWorkflowModel:
<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="scwf:workflowmodel"
   xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!– Optional meta-data about the model –>
   <description>Someco Workflow Model</description>
   <author>Jeff Potts</author>
   <version>1.0</version>

   <!– Imports are required to allow references to definitions in other models –>
   <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>

   <!– Introduction of new namespaces defined by this model –>
   <namespaces>
      <namespace uri="http://www.someco.com/model/workflow/1.0"
         prefix="scwf" />
   </namespaces>

   <types>
      <type name="scwf:submitHelloWorldTask">
         <parent>bpm:startTask</parent>
         <properties>
            <property name="scwf:helloName">
               <type>d:text</type>
               <mandatory>true</mandatory>
               <multiple>false</multiple>
            </property>
            
         </properties>
              <mandatory-aspects>
               <aspect>bpm:assignee</aspect>
             </mandatory-aspects>
      </type>
      
      <type name="scwf:submitReviewTask">
         <parent>bpm:startTask</parent>
         <mandatory-aspects>
            <aspect>scwf:thirdPartyReviewable</aspect>
         </mandatory-aspects>
      </type>
     
        <type name="scwf:marketingReview">
            <parent>bpm:workflowTask</parent>
            <overrides>
                <property name="bpm:packageItemActionGroup">
                    <default>read_package_item_actions</default>
                </property>
            </overrides>
        </type>

        <type name="scwf:activitiMarketingReview">
            <parent>scwf:activitiReviewTask</parent>
        </type>
      
        <type name="scwf:test">
         <parent>bpm:startTask</parent>
         <mandatory-aspects>
            <aspect>scwf:thirdPartyReviewable</aspect>
         </mandatory-aspects>
      </type>
      
        <type name="scwf:operationsReview">
            <parent>bpm:workflowTask</parent>
            <overrides>
                <property name="bpm:packageItemActionGroup">
                    <default>read_package_item_actions</default>
                </property>
            </overrides>
        </type>

        <type name="scwf:activitiOperationsReview">
            <parent>scwf:activitiReviewTask</parent>
        </type>

        <type name="scwf:thirdPartyReview">
            <parent>bpm:workflowTask</parent>
            <overrides>
                <property name="bpm:packageItemActionGroup">
                    <default>read_package_item_actions</default>
                </property>
            </overrides>
        </type>
       
        <type name="scwf:activitiThirdPartyReview">
            <parent>scwf:activitiReviewTask</parent>
        </type>
       
        <type name="scwf:revise">
            <parent>bpm:workflowTask</parent>
            <overrides>
                <property name="bpm:packageItemActionGroup">
                    <default>edit_package_item_actions</default>
                </property>
            </overrides>
        </type>

        <type name="scwf:activitiRevise">
            <parent>bpm:activitiOutcomeTask</parent>
            <properties>
                <property name="scwf:reviseOutcome">
                    <type>d:text</type>
                    <default>Abort</default>
                    <constraints>
                        <constraint type="LIST">
                            <parameter name="allowedValues">
                                <list>
                                    <value>Re-submit</value>
                                    <value>Abort</value>
                                </list>
                            </parameter>
                        </constraint>
                    </constraints>
                </property>
            </properties>              
            <overrides>
                <property name="bpm:packageItemActionGroup">
                    <default>edit_package_item_actions</default>
                </property>
                <property name="bpm:outcomePropertyName">
                    <default>{http://www.someco.com/model/workflow/1.0}reviseOutcome</default>
                </property>
            </overrides>
        </type>

        <type name="scwf:activitiReviewTask">
            <parent>bpm:activitiOutcomeTask</parent>
            <properties>
                <property name="wf:reviewOutcome">
                    <type>d:text</type>
                    <default>Reject</default>
                    <constraints>
                        <constraint type="LIST">
                            <parameter name="allowedValues">
                                <list>
                                    <value>Approve</value>
                                    <value>Reject</value>
                                </list>
                            </parameter>
                        </constraint>
                    </constraints>
                </property>
            </properties>              
            <overrides>
                <property name="bpm:packageItemActionGroup">
                    <default>read_package_item_actions</default>
                </property>
                <property name="bpm:outcomePropertyName">
                    <default>{http://www.someco.com/model/workflow/1.0}approveRejectOutcome</default>
                </property>
            </overrides>
        </type>

      <type name="scwf:activitiApprovedNotification">
          <parent>bpm:workflowTask</parent>
            <overrides>
                <property name="bpm:packageItemActionGroup">
                    <default>read_package_item_actions</default>
                </property>
            </overrides>         
      </type>
   </types>

   <aspects>
      <aspect name="scwf:thirdPartyReviewable">
         <title>Someco Third Party Reviewable</title>
         <properties>
            <property name="scwf:reviewerEmail">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <multiple>false</multiple>
            </property>
         </properties>
      </aspect>
   </aspects>
</model>



workflow process:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
  <process id="wajditoday" name="wajditodaywork" isExecutable="true">
    <startEvent id="startevent3" name="Start" activiti:formKey="scwf:submitHelloWorldTask"></startEvent>
    <userTask id="usertask8" name="ef3al" activiti:assignee="hamdi" activiti:formKey="wf:activitiReviewTask">
      <extensionElements>
        <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string>/* next two lines are workarounds ACT-765, ACT-766 */
                if (typeof bpm_workflowDueDate != 'undefined') task.setVariableLocal('bpm_dueDate', bpm_workflowDueDate);
                if (typeof bpm_workflowPriority != 'undefined') task.priority = bpm_workflowPriority;</activiti:string>
          </activiti:field>
        </activiti:taskListener>
        <activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
          <activiti:field name="script">
            <activiti:string>execution.setVariable('wf_reviewOutcome', task.getVariable('wf_reviewOutcome'));</activiti:string>
          </activiti:field>
        </activiti:taskListener>
      </extensionElements>
    </userTask>
    <sequenceFlow id="flow50" sourceRef="startevent3" targetRef="usertask8"></sequenceFlow>
    <userTask id="usertask9" name="two" activiti:assignee="fedi" activiti:formKey="wf:activitiReviewTask"></userTask>
    <endEvent id="endevent1" name="End"></endEvent>
    <sequenceFlow id="flow52" sourceRef="usertask9" targetRef="endevent1"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow53" sourceRef="exclusivegateway1" targetRef="usertask9">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${wf_reviewOutcome == 'Approve'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow54" sourceRef="usertask8" targetRef="exclusivegateway1"></sequenceFlow>
    <sequenceFlow id="flow55" sourceRef="exclusivegateway1" targetRef="usertask8">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${wf_reviewOutcome == 'Reject'}]]></conditionExpression>
    </sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_wajditoday">
    <bpmndi:BPMNPlane bpmnElement="wajditoday" id="BPMNPlane_wajditoday">
      <bpmndi:BPMNShape bpmnElement="startevent3" id="BPMNShape_startevent3">
        <omgdc:Bounds height="35.0" width="35.0" x="70.0" y="90.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask8" id="BPMNShape_usertask8">
        <omgdc:Bounds height="55.0" width="105.0" x="200.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="usertask9" id="BPMNShape_usertask9">
        <omgdc:Bounds height="55.0" width="105.0" x="530.0" y="80.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="670.0" y="90.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="400.0" y="89.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow50" id="BPMNEdge_flow50">
        <omgdi:waypoint x="105.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="200.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow52" id="BPMNEdge_flow52">
        <omgdi:waypoint x="635.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="670.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow53" id="BPMNEdge_flow53">
        <omgdi:waypoint x="420.0" y="89.0"></omgdi:waypoint>
        <omgdi:waypoint x="482.0" y="83.0"></omgdi:waypoint>
        <omgdi:waypoint x="530.0" y="107.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow54" id="BPMNEdge_flow54">
        <omgdi:waypoint x="305.0" y="107.0"></omgdi:waypoint>
        <omgdi:waypoint x="400.0" y="109.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow55" id="BPMNEdge_flow55">
        <omgdi:waypoint x="420.0" y="129.0"></omgdi:waypoint>
        <omgdi:waypoint x="500.0" y="216.0"></omgdi:waypoint>
        <omgdi:waypoint x="255.0" y="259.0"></omgdi:waypoint>
        <omgdi:waypoint x="252.0" y="135.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

and finally share-config-custom
<alfresco-config>

    <!– Put Share Client in debug mode –>
    <config replace="true">
        <flags>
            <client-debug>false</client-debug>
            <client-debug-autologging>false</client-debug-autologging>
        </flags>
    </config>

    <!– Put Surf into development mode –>
    <!–
    <config evaluator="string-compare" condition="WebFramework">
        <web-framework>
            <autowire>
                <mode>development</mode>               
            </autowire>
        </web-framework>
    </config>
    –>

    <!–
         ====================================================================
         WORKFLOW FORMS
         ====================================================================
     –>

    <!– Activiti Hello World UI Workflow Definition –>
    <config evaluator="string-compare" condition="activiti$wajdinho">
      <forms>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="packageItems" />
               <show id="scwf:helloName" />
               <show id="transitions" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.general" />
               <set id="items" appearance="title" label-id="workflow.set.items" />
               <set id="other" appearance="title" label-id="workflow.set.other" />
               <set id="response" appearance="title" label-id="workflow.set.response" />
              
               <field id="bpm:workflowDescription" label-id="workflow.field.message">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl">
                     <control-param name="style">width: 95%</control-param>
                  </control>
               </field>
               <field id="packageItems" set="items" />
               <field id="helloName" set="other" />
               <field id="transitions" set="response" />              
            </appearance>
         </form>
      </forms>
    </config>
       
    <config evaluator="task-type" condition="scwf:submitHelloWorldTask">
       <forms>
          <form>
             <field-visibility>
                <show id="scwf:helloName" />
             </field-visibility>
             <appearance>                  
                   <field id="scwf:helloName" label-id="prop.scwf_helloName" />
            </appearance>
          </form>
       </forms>
    </config>
   
    <config evaluator="task-type" condition="scwf:activitiReviewTask">
      <forms>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="packageItems" />
               <show id="scwf:approveRejectOutcome" />
               <show id="transitions" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.general" />
               <set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="assignee" appearance="title" label-id="workflow.set.assignee" />
         
              
               <set id="items" appearance="title" label-id="workflow.set.items" />
               <set id="response" appearance="title" label-id="workflow.set.response" />
              
               <field id="bpm:workflowDescription" label-id="workflow.field.message">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl">
                     <control-param name="style">width: 95%</control-param>
                  </control>
               </field>
               <field id="packageItems" set="items" />
               <field id="scwf:approveRejectOutcome" set="response" />
               <field id="transitions" set="response" />              
            </appearance>
         </form>
      </forms>
    </config>

    <config evaluator="task-type" condition="scwf:activitiMarketingReview">
      <forms>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="packageItems" />
               <show id="scwf:approveRejectOutcome" />
               <show id="transitions" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.general" />
               <set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="assignee" appearance="title" label-id="workflow.set.assignee" />
               <set id="items" appearance="title" label-id="workflow.set.items" />
               <set id="response" appearance="title" label-id="workflow.set.response" />
              
               <field id="bpm:workflowDescription" label-id="workflow.field.message">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl">
                     <control-param name="style">width: 95%</control-param>
                  </control>
               </field>
               <field id="packageItems" set="items" />
               <field id="scwf:approveRejectOutcome" set="response" />              
               <field id="transitions" set="response" />              
            </appearance>
         </form>
      </forms>
    </config>

    <config evaluator="task-type" condition="scwf:activitiOperationsReview">
      <forms>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="packageItems" />
               <show id="scwf:approveRejectOutcome" />
               <show id="transitions" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.general" />
               <set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="assignee" appearance="title" label-id="workflow.set.assignee" />
               <set id="items" appearance="title" label-id="workflow.set.items" />
               <set id="response" appearance="title" label-id="workflow.set.response" />
              
               <field id="bpm:workflowDescription" label-id="workflow.field.message">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl">
                     <control-param name="style">width: 95%</control-param>
                  </control>
               </field>
               <field id="packageItems" set="items" />
               <field id="scwf:approveRejectOutcome" set="response" />              
               <field id="transitions" set="response" />              
            </appearance>
         </form>
      </forms>
    </config>
       
    <config evaluator="task-type" condition="scwf:activitiThirdPartyReview">
      <forms>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="packageItems" />
               <show id="scwf:approveRejectOutcome" />
               <show id="transitions" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.general" />
               <set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="assignee" appearance="title" label-id="workflow.set.assignee" />
               <set id="items" appearance="title" label-id="workflow.set.items" />
               <set id="response" appearance="title" label-id="workflow.set.response" />
              
               <field id="bpm:workflowDescription" label-id="workflow.field.message">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl">
                     <control-param name="style">width: 95%</control-param>
                  </control>
               </field>
               <field id="packageItems" set="items" />
               <field id="scwf:approveRejectOutcome" set="response" />
               <field id="transitions" set="response" />              
            </appearance>
         </form>
      </forms>
    </config>
   
    <config evaluator="task-type" condition="scwf:activitiRevise">
      <forms>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="packageItems" />
               <show id="scwf:reviseOutcome" />
               <show id="transitions" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.general" />
               <set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="assignee" appearance="title" label-id="workflow.set.assignee" />
               <set id="items" appearance="title" label-id="workflow.set.items" />
               <set id="response" appearance="title" label-id="workflow.set.response" />
              
               <field id="bpm:workflowDescription" label-id="workflow.field.message">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl">
                     <control-param name="style">width: 95%</control-param>
                  </control>
               </field>
               <field id="packageItems" set="items" />
               <field id="scwf:reviseOutcome" set="response" />
               <field id="transitions" set="response" />              
            </appearance>
         </form>
      </forms>
    </config>

    <config evaluator="task-type" condition="wf:activitiReviewTask">
      <forms>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="packageItems" />
               <show id="wf:reviewOutcome" />
               <show id="transitions" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.general" />
               <set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="assignee" appearance="title" label-id="workflow.set.assignee" />
               <set id="items" appearance="title" label-id="workflow.set.items" />
               <set id="response" appearance="title" label-id="workflow.set.response" />
              
               <field id="bpm:workflowDescription" label-id="workflow.field.message">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl">
                     <control-param name="style">width: 95%</control-param>
                  </control>
               </field>
               <field id="packageItems" set="items" />
               <field id="wf:reviewOutcome" set="response" />
               <field id="transitions" set="response" />              
            </appearance>
         </form>
      </forms>
    </config>

    <config evaluator="task-type" condition="scwf:activitiApprovedNotification">
      <forms>
         <form>
            <field-visibility>
               <show id="bpm:workflowDescription" />
               <show id="packageItems" />
               <show id="transitions" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.general" />
               <set id="info" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="assignee" appearance="title" label-id="workflow.set.assignee" />
               <set id="items" appearance="title" label-id="workflow.set.items" />
               <set id="response" appearance="title" label-id="workflow.set.response" />
              
               <field id="bpm:workflowDescription" label-id="workflow.field.message">
                  <control template="/org/alfresco/components/form/controls/textarea.ftl">
                     <control-param name="style">width: 95%</control-param>
                  </control>
               </field>
               <field id="packageItems" set="items" />
               <field id="transitions" set="response" />              
            </appearance>
         </form>
      </forms>
    </config>
   
</alfresco-config>


Outcomes