cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Workflow exclusive Gateway does not work

wajdi_ghribi
Champ in-the-making
Champ in-the-making
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>


6 REPLIES 6

rajeshavatani
Champ in-the-making
Champ in-the-making
The content model scWorkflowModel cannot be deployed because of incorrect prefix for reviewOutcome property for type scwf:activitiReviewTask. Change the type scwf:activitiReviewTask as shown below to deploy the content model.


<type name="scwf:activitiReviewTask">

            <parent>bpm:activitiOutcomeTask</parent>

            <properties>

                <property name="scwf: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}reviewOutcome</default>

                </property>

            </overrides>

        </type>


But the issue you are facing is not because of content model as the formkey you are using is out-of-the-box type present in workflowModel.xml, wf:activitiReviewTask. I have deployed all the files shared by you with small correction mentioned above for type scwf:activitiReviewTask and the exclusive gateway works absolutely fine for me.
Share the logs if you are still facing the issue.

thanks for responding me, i did what you told me but i get a new error message , after deploying the workflow and connecting to alfresco when puting the login and PWD an error message shows up , please can u send me your test project that you tested in the files above in order to try it here , maybe i have an error some where , thanks a lot

Does the content model gets deployed?
Please share the error that you get?

Now and after some modifications, the error does not exist anymore but i think that the model is not getting deployed as you say because i still getting the last name even after changing its name and its id, by the way i proceed like that in deploying models Smiley SadBuild.xml > run as > ant built2) is that the correct way of doing that , sorry i m a newbie in worfkflow developpement.

Here are the working files
I hope you have created users hamdi and fedi in Alfresco.

<strong>csWorkflowModel</strong>


<?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="scwf: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></model>



<strong>scWorkflow.properties></strong>


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


<strong>share-config-custom.xml</strong>


<!– 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>


<strong>wajditodaywork.bpmn20.xml</strong>


<?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>

wajdi_ghribi
Champ in-the-making
Champ in-the-making
i followed your steps , of course i changed "
 </model></model>
" to "
</model>
" in scworkflowmodel lol , and ignored this error in share-config-custom.xml ( The markup in the document following the root element must be well-formed. in this section :
<config evaluator="task-type" condition="scwf:submitHelloWorldTask">
)
but i get this error after deploying

An error has occured in the Share component: /share/service/components/dashlets/my-sites.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 04170005 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/dashlets/my-sites.get.js': 04170004 04170003 Failed during processing of IMAP server status configuration from Alfresco: 04170002 Unable to retrieve IMAP server status from Alfresco: 404
Server: Alfresco Spring WebScripts - v1.2.0 (Release 1174) schema 1 000
Time: 17 mai 2013 10:34:27
Click here to view full technical information on the error.
Exception: org.alfresco.error.AlfrescoRuntimeException - 04170003 Failed during processing of IMAP server status configuration from Alfresco: 04170002 Unable to retrieve IMAP server status from Alfresco: 404
org.alfresco.web.scripts.SingletonValueProcessorExtension.getSingletonValue(SingletonValueProcessorExtension.java:108)
org.alfresco.web.scripts.SingletonValueProcessorExtension.getSingletonValue(SingletonValueProcessorExtension.java:59)
org.alfresco.web.scripts.ImapServerStatus.getEnabled(ImapServerStatus.java:49)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:601)
org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
org.mozilla.javascript.JavaMembers.get(JavaMembers.java:117)
org.mozilla.javascript.NativeJavaObject.get(NativeJavaObject.java:113)
org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1544)
org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1375)
org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1364)
org.mozilla.javascript.gen.c6._c1(file:/C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/my-sites.get.js:4)
org.mozilla.javascript.gen.c6.call(file:/C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/my-sites.get.js)
org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
org.mozilla.javascript.gen.c6._c0(file:/C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/my-sites.get.js:50)
org.mozilla.javascript.gen.c6.call(file:/C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/my-sites.get.js)
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
org.mozilla.javascript.gen.c6.call(file:/C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/my-sites.get.js)
org.mozilla.javascript.gen.c6.exec(file:/C:/Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashlets/my-sites.get.js)
org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:318)
org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:192)
org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70)
org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:240)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:310)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
org.springframework.extensions.surf.render.RenderService.process(RenderService.java:599)
org.springframework.extensions.surf.render.RenderService.renderSubComponent(RenderService.java:505)
org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1284)
org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:81)
freemarker.core.Environment.visit(Environment.java:274)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.IfBlock.accept(IfBlock.java:82)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.Environment.process(Environment.java:199)
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:204)
org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:95)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:86)
org.springframework.extensions.surf.render.RenderService.processComponent(RenderService.java:432)
org.springframework.extensions.surf.render.bean.ComponentRenderer.body(ComponentRenderer.java:94)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
org.springframework.extensions.surf.render.RenderService.renderComponent(RenderService.java:961)
org.springframework.extensions.surf.render.RenderService.renderRegionComponents(RenderService.java:900)
org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1263)
org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:81)
freemarker.core.Environment.visit(Environment.java:274)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.Environment.process(Environment.java:199)
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:204)
org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:95)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:86)
org.springframework.extensions.surf.render.bean.RegionRenderer.body(RegionRenderer.java:99)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
org.springframework.extensions.surf.render.RenderService.renderRegion(RenderService.java:851)
org.springframework.extensions.directives.RegionDirectiveData.render(RegionDirectiveData.java:91)
org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:408)
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169)
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137)
freemarker.core.Environment.visit(Environment.java:274)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
freemarker.core.Environment.visit(Environment.java:428)
freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
freemarker.core.Environment.visit(Environment.java:428)
freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.Macro$Context.runMacro(Macro.java:172)
freemarker.core.Environment.visit(Environment.java:614)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.IfBlock.accept(IfBlock.java:82)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.Macro$Context.runMacro(Macro.java:172)
freemarker.core.Environment.visit(Environment.java:614)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.Environment$3.render(Environment.java:246)
org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirectiveData.render(DefaultExtensibilityDirectiveData.java:119)
org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:408)
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169)
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137)
freemarker.core.Environment.visit(Environment.java:274)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.Environment.visit(Environment.java:406)
freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.Macro$Context.runMacro(Macro.java:172)
freemarker.core.Environment.visit(Environment.java:614)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.Environment.process(Environment.java:199)
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:721)
org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:140)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:85)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:762)
org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:419)
org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:314)
org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:316)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:374)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
java.lang.Thread.run(Thread.java:722)
Exception: org.springframework.extensions.webscripts.WebScriptException - 04170004 04170003 Failed during processing of IMAP server status configuration from Alfresco: 04170002 Unable to retrieve IMAP server status from Alfresco: 404
org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:324)
Exception: org.springframework.extensions.webscripts.WebScriptException - 04170005 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/dashlets/my-sites.get.js': 04170004 04170003 Failed during processing of IMAP server status configuration from Alfresco: 04170002 Unable to retrieve IMAP server status from Alfresco: 404
org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:200)