Question

My aim is to add a custom field in a workflow which tracks the inputs during the workflow steps as the bpm:comment property.

So i tried to add a simple custom property field in bpm-model:

<type name="bpm:task">
         <parent>cm:content</parent>
            <properties>
            <property name="bpm:test_field">
                    <type>d:text</type>
                </property>
 ...

Then i added a "field filter control" in the Alfresco WorkDesk bootstrap.xml and the flow basic step control shows my new field.

Unfortunately the field won't show the history input.

The task inherits every time the field but won't historize anything.

I didn't understand why...can anybody help me?

thanks!

Was it helpful?

Solution

Try using process execution scoped variable to store the task scoped variable value after finishing the task, and do conversely at the beginning of the next task (writing data from execution variable to task variable). That should give you effect you expect.

OTHER TIPS

See there are two type of properties workflow properties and task properties.Scope of workflow properties are through out workflow and scope of task variable is limited to task only.We can copy the value from one to another as follow.

   <task name="yourtask" swimlane="assignee">
          <event type="task-create">
             <script>
                if (bpm_workflowDueDate != void) taskInstance.dueDate = bpm_workflowDueDate;
             </script>
          </event>
      </task>

Task properties will be inherited in case current task is inheriting the task which has your custom property.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top