cancel
Showing results for 
Search instead for 
Did you mean: 

Updating variable in start task node in other task node

santoso_n
Champ in-the-making
Champ in-the-making
Hi all,

I have a workflow, where during starting the task, the user is required to insert a value into a variable, let's say "sanz:total"

In the next task, I need to update the total value, how do I do that?
I've tried to show the property in the next task by modifying the UI config in web-client-configconfiguration, however I got a warning that says
WARN  [alfresco.missingProperties] Failed to find property 'sanz:total' for node: workspace://SpacesStore/ad56d33a-3c16-433a-950a-f356ba459456



Thanks in advance,

Santoso
4 REPLIES 4

joksy
Champ in-the-making
Champ in-the-making
Hi Man, i have the same problem, but the error was mine, the sanz prefix match exactly what you set in the type definition?? because one reason of the exception could be this

Cheers

sethatrothbury
Champ in-the-making
Champ in-the-making
You can't just add the variable to the web UI, you also have to add it to the content model. After you've added your variable to the model, you'll be able to edit it in your workflow tasks and see it in the UI.

santoso_n
Champ in-the-making
Champ in-the-making
Hi,

Actually I've tried to add it to the model (on the first task where the total is initialized and on the second task where I want to update the value), however alfresco complained that the variable already defined unfortunately I forgot the exact error message.

Here's how I declared the variable :

     <type name="sanz:submitTask">
         <parent>bpm:startTask</parent>
         <properties>
            <property name="sanz:total">
               <type>d:int</type>
               <default>0</default>
            </property>
          </properties>
        <mandatory-aspects>
            <aspect>elbm:actor1</aspect>
         </mandatory-aspects>
      </type>

    <type name="sanz:review">
         <parent>bpm:workflowTask</parent>
         <properties>
            <property name="sanz:total">
               <type>d:int</type>
               <default>0</default>
            </property>
          </properties>
      </type>

Do you have any idea what is causing the error?

Thanks

santoso_n
Champ in-the-making
Champ in-the-making
Hi Man, i have the same problem, but the error was mine, the sanz prefix match exactly what you set in the type definition?? because one reason of the exception could be this

Cheers

Yes, the sanz prefix match with my type definition.