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.
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
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.
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
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.