AnsweredAssumed Answered

Show property of previous Task

Question asked by jayjayecl on Mar 2, 2009
Latest reply on Mar 4, 2009 by jayjayecl
Hi, I'd like to manage to show a property of a previous task.

To be clear, let's say I have the simplest workflow : 2 steps only : submitCustomWF and ApproveCustomWF
Let's say I have added a custom text property ("fca:eimms") to the submitTask, that the intiator has to fill in.

How could I show the property that was entered in the next step.

My Model :

<types>

     <type name="fca:submitPoc1Task">
        <parent>bpm:startTask</parent>
         <properties>
           <property name="fca:eimms">
              <type>d:text</type>
           </property>
        </properties>

   <overrides>
      <property name="bpm:packageActionGroup">
   <!–     <type>d:text</type>  –>
        <default>add_package_item_actions</default>
      </property>
   </overrides>
   <mandatory-aspects>
           <aspect>bpm:assignee</aspect>
        </mandatory-aspects>
     </type>

     <type name="fca:poc1Task">
        <parent>fca:basePoc1Task</parent>
   <overrides>
      <property name="bpm:packageActionGroup">
   <!–     <type>d:text</type>  –>
        <default>read_package_item_actions</default>
      </property>
   </overrides>
     </type>
     
  </types>


My webclient-config :

<config evaluator="node-type" condition="fca:submitPoc1Task" 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:description" component-generator="TextAreaGenerator" />
     <!– <show-property name="bpm:workflowPriority" /> –>
      <separator name="sep2" display-label-id="users_and_roles" component-generator="HeaderSeparatorGenerator" />
      <show-association name="bpm:assignee" />
      <show-property name="fca:eimms"/>
   </property-sheet>
</config>

<config evaluator="node-type" condition="fca:poc1Task" replace="true">
   <property-sheet>
      <separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
      <show-property name="bpm:taskId" />
      <show-property name="bpm:description" component-generator="TextAreaGenerator" />
      <show-property name="bpm:status" />
   </property-sheet>
</config>

Here is what I tried :
- 1/ just add <show-property name="fca:eimms"/> to the second task.
Of course, it could not work as this property was not part of the type of this second task
- 2/ I then naively tried to add the property "fca:eimms" to the type of the second task (in the model). It could not work, as it failed to parse the model (doublon for this property)
- 3/ I then tried to have those two tasks heritate of a custom type (and not of bpm:startTask)
 <type name="fca:basePoc1Task">
        <parent>bpm:startTask</parent>
   <properties>
           <property name="fca:eimms">
              <type>d:text</type>
      
              <default></default>
         <constraints>
      <constraint ref="list:eimms" />
         </constraints>

           </property>
        </properties>
   <overrides>
      <property name="bpm:packageActionGroup">
   <!–     <type>d:text</type>  –>
        <default>add_package_item_actions</default>
      </property>
   </overrides>
   <mandatory-aspects>
           <aspect>bpm:assignee</aspect>
        </mandatory-aspects>
     </type>

Then, they both have the property "fca:eimms"… I then set up the web-client-config so that this property is read-only on the second task screen… but of course on this screen I hava no data for fca:eimms, because this property from first task and this same property from second task are separate and do not hold the same data.

Then, How can I achieve what I am trying to ?

Outcomes