cancel
Showing results for 
Search instead for 
Did you mean: 

Aspects in workflow

buje85
Champ in-the-making
Champ in-the-making
Hi All,

I was just wondering if it is possible to have non mandatory aspects in Activiti workflow so that the workflow properties can grow depending on previous properties that are set along the flow. From what I have read I don't think this is possible as all the examples I have seen online seem to use mandatory aspects. When an example in a workflow enables an aspect it is applying that to the content model aspect rather than a workflow model aspect.

What I would like to be able to do is have a workflow that starts of with say 5 properties and then when a user sets one of the properties to one of three options a workflow model aspect is enabled depending on the users choice. The workflow type would then have more than 5 properties.

Like I said, I haven't seen anyone doing this but just wanted to check.

Thanks
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

I am sorry, but this is actually not possible as you already presumed. The data model for workflows is a one-time declarative definition of the workflow / task data and cannot be enhanced with dynamic aspects (as nodes can be). You CAN add any arbitrary property to the data of a workflow / task, but that will not be exposed to the outside world (i.e. forms) unless it has been defined via the type or a mandatory aspect. This is due to the fact that Alfresco services use the type and mandatory aspects to look up "expected" data and don't process any other data they "don't know of".

Regards
Axel