04-01-2019 05:27 AM
Hello all,
So, I have a workflow that requires all tasks to have additional information, which does not fit in the standard "bpm_workflowTask" that gets created by default by Alfresco.
I defined a different base task type, "my:baseTask", and added the additional slots for data there:
<type name="my:baseTask">
<parent>bpm:workflowTask</parent>
<properties>
<property name="my:data1">
<type>d:text</type>
</property>
<property name="my:data2">
<type>d:text</type>
</property>
<property name="my:data3">
<type>d:text</type>
</property>
<property name="my:data4">
<type>d:text</type>
</property>
</properties>
</type>
I also have some more specialised task types that inherit from this one.
Now, in my workflow, I have added
activiti:formKey="my:baseTask"
to all the tasks (user or service) that I have. Except, obviously, the ones that need a more specialised type of task.
The start of my workflow goes directly to the first service task. So far so good. At the end of that task, if everything went successfully, and we exit via one of the transitions onto the next task (which happens to be a user task of one of the more specific types), the resulting task if of a custom type and has all the data it needs on it. However - if an exception happen, it gets caught, and the task ends by taking a different transition, it ends up on a different user task, which should be of type baseTask .But it's not. It always ends up being a default Alfresco task, so the additional data that I need on that task gets lost.
Any idea what I'm doing wrong? What's the easiest way of ensuring all tasks created in a workflow are of a given basic type, unless otherwise specified?
Any help much appreciated.
04-01-2019 12:45 PM
Hello,
It's difficult give you any advice without see your model and process definition because probably they have some mistake.
Have you override the default outcome property on your tasks model?
Regards
04-02-2019 04:53 AM
Hello,
I will attached an anonimised version of the model and the workflow.
I'm quite a novice to Alfresco and Activiti, and I've inherited this project so I'm not that familiar with it either. What exactly do you mean by overriding the default outcome property? How is that done? I can check whether that's been done or not.
04-07-2019 09:48 PM
Hello,
It seems not to be any problem with definitión or model. Maybe the problem is in the forms ui definition in the file share-config-custom.xml. Can you upload this configuration?
Regards
Explore our Alfresco products with the links below. Use labels to filter content by product module.