cancel
Showing results for 
Search instead for 
Did you mean: 

group processes into logical units

smcardle
Champ in-the-making
Champ in-the-making
Hi

What would be your recommendation to group processes into groups covering functional areas i.e. HR, CRM, CMS etc, etc

I would like to have these in there own functional area name space's and don't want to prefix the id's (if possible) as follows


<process id="HR.process1">
   …
</process>


Regards

Steve
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi Steve,

The category attribute of a process definition seems to be a good fit for that. The category attribute is filled with the targetNamespace of the process definition. Then you can query on process definitions in the same category.

Best regards,

mike_d
Champ in-the-making
Champ in-the-making
Hello,

coming back to this old question. I've got Activiti 5.17.0 and try to set the category attribute to a procdef. I can do it in java or I can do it via the modeler and DB is updated appropriately. When I export the XML, the category is written in targetNamespace. So it seems OK to me. But when I set the category in target namespace in xml and then import it, it doesn't get set in the DB. Is that a bug or is there something I don't understand ?

Here's an extract of the xml file where I set the namespace as "TRS" :
<blockcode>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlnsSmiley Surprisedmgdc="http://www.omg.org/spec/DD/20100524/DC" xmlnsSmiley Surprisedmgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="TRS">
</blockcode>
Thx in advance