cancel
Showing results for 
Search instead for 
Did you mean: 

Passing values between workflow tasks

azivotic
Champ in-the-making
Champ in-the-making
Hi,

I have problem with passing property values between tasks. For example, i have in start task model defined property:


<parent>bpm:startTask</parent>
   <properties>
      <property name="mcwm:projectName">
         <title>Naziv projekta</title>
         <type>d:text</type>
         <mandatory>true</mandatory>
      </property>

in share-config-custom.xml i show that property on start page and that's ok.

<show id="mcwm:projectName"/>

<field id="mcwm:projectName" set="general" />


Now on my second form i want to show the same field with value that is entered on start form. In model i didn't specify again this property for second task, i just wrote:


<type name="mcwm:preparationOfProjectCharter">
   <parent>bpm:workflowTask</parent>
</type>


and in share-config-custom.xml copied first form configuration for second form with one little change in force="true" attribute:


<show id="mcwm:projectName" force="true"/>

<field id="mcwm:projectName" set="general" />
Now field is there on my second form but value that is entered on my first form isn't, do i have to do something else to succeed that?

Regards,
Aleksadnar
3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator
Try moving mcwmSmiley TonguerojectName to an aspect, then make that aspect mandatory on your type that extends bpm:startTask as well as your mcwmSmiley TonguereparationOfProjectCharter type.

Jeff

azivotic
Champ in-the-making
Champ in-the-making
Thanks a lot on your help. Smiley Happy 

I defined custom aspect with mcwmSmiley TonguerojectName property and one more.

<aspect name="mcwm:myCustomAspect">
<property name="mcwm:projectName">
   <title>Naziv projekta</title>
   <type>d:text</type>
   <mandatory>true</mandatory>
</property>
<property name="mcwm:shortProjectName">
   <title>Skraceni naziv projekta</title>
   <type>d:text</type>
   <mandatory>true</mandatory>
</property>
</aspect">

I add them on both task type (mcwm:myStartTask as well as mcwmSmiley TonguereparationOfProjectCharter) as mandatory aspect and that's ok.

But i'm facing now with some other problem. On mcwm:myStartTask property of my custom aspect mcwmSmiley TonguerojectName is mandatory and i want that this filed on my second task ins't mandatory. On my second task i use

<overrides>
       <property name="mcwm:projectName">
      <mandatory>false</mandatory>
   </property>

but this doesn't have any effect, projectName is still mandatory as i defined in aspect? Any idea why this is wrong?

Thanks in advance,
Aleksadnar

jpotts
World-Class Innovator
World-Class Innovator
Try making it non-mandatory in the model, but required in the Share form config. That way you can make it required in one task and optional in another.

Jeff