cancel
Showing results for 
Search instead for 
Did you mean: 

Problème avec le Web Client Task Dialogs...

greg_shogun_852
Champ in-the-making
Champ in-the-making
Bonjour à tous,
    J'ai créé un workflow tout simple mais lorsque je le choisi dans la liste
    des choix de workflows avancés il me renvoie vers un formulaire où,
    bien que j'en ai besoin, il ne me demande pas à qui je veux attribuer
    une tâche.

    Pourtant j'ai déclaré mon nouveau "Web Client Task Dialogs"
    mais apparement il ne le lance pas. Je m'y suis sûrement mal pris…

    Pourriez-vous me dire ce qui cloche dans mon code?

    Voici ma définition(test_processdefinition.xml):

    <?xml version="1.0" encoding="utf-8"?>
    <process-definition xmlns="urn:jpbm.org:jpdl-3.1" name="wf:test">

    <swimlane name="initiator"/>

    <start-state name="start">
       <task name="submitAdhocTask" swimlane="initiator"/>
       <transition name="" to="adhoc"/>
    </start-state>

    <swimlane name="assignee">
       <assignment actor-id="#{bpm_assignee.properties['cm:userName']}"/>
    </swimlane>

    <task-node name="adhoc">
       <task name="wf:adhocTask" swimlane="assignee"/>
       <transition name="" to="completed"/>
    </task-node>

    <task-node name="completed">
       <task name="wf:completedTask" swimlane="initiator"/>
       <transition name="" to="end"/>
    </task-node>

    <end-state name="end"/>

    </process-definition>

    Mon modèle(testModel.xml):

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

    <model name="wf:workflowmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

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

       <namespaces>
          <namespace uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
       </namespaces>

    <types>
    <type name="wf:submitAdhocTask">
      <parent>bpm:startTask</parent>
      <properties>
       <property name="wf:notifyMe">
        <type>d:boolean</type>
        <default>false</default>
       </property>
      </properties>

      <mandatory-aspects>
       <aspect>bpm:assignee</aspect>
      </mandatory-aspects>
    </type>

    <type name="wf:adhocTask">
      <parent>bpm:workflowTask</parent>
    </type>

    <type name="wf:completedAdhocTask">
      <parent>bpm:workflowTask</parent>
    </type>

    </types>
    </model>

    La déclaration placée dans workflow-context.xml:

    <!– Workflow test Deployer –>
       <bean id="myworkflows.workflowBootstrap" parent="workflowDeployer">
        <property name="workflowDefinitions">
         <list>
          <props>
           <prop key="engineId">jbpm</prop>
           <prop key="location">alfresco/workflow/test_processdefinition.xml</prop>
           <prop key="mimetype">text/xml</prop>
          </props>
         </list>
        </property>
        <property name="models">
         <list>
          <value>alfresco/workflow/testModel.xml</value>
         </list>
        </property>
        <property name="labels">
         <list>
          <value>alfresco/workflow/workflow-messages</value>
         </list>
        </property>
       </bean>

    Le code rajouté dans le web-client-config-custom.xml:

    <config evaluator="node-type" condition="wf:test" replace="true">
    <property-sheet>
      <separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator"/>
      <show-property name="bpm:workflowDescription" component-generator="TextAreaGenerator"/>
      <show-property name="bpm:workflowPriority"/>
      <show-property name="bpm:workflowDueDate"/>
      <show-property name="wf:notifyMe"/>
      <separator name="sep2" display-label-id="users and roles" component-generator="HeaderSeparatorGenerator"/>
      <show-association name="bpm:assignee"/>
    </property-sheet>
    </config>

    Dans la console Tomcat il me met ceci:
    WARN [component.property.UIAssociation] Failed to find association
    definition for association 'bpm:assignee'
Merci d'avance pour votre aide. Smiley Happy
1 REPLY 1

greg_shogun_852
Champ in-the-making
Champ in-the-making
Personne ne sait me dire ce qui cloche?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.