cancel
Showing results for 
Search instead for 
Did you mean: 

Custom xml tag inside bpmn2 xml doc

nandoztx
Champ in-the-making
Champ in-the-making
Hi everybody!
I have a simple question, can I add an different xml tag in bpmn2 diagram?
My objective is read this tag on persist workflow, to get schema definitions to this workflow, where I can customize anywhere default workflow variables.
example:

<?xml version="1.0" encoding="UTF-8"?>
<customtag id="customtag">
   <value>wow! this is my custom tag! :D, I really want run this before start</value>
</customtag>
<definitions id="taskAssigneeExample"
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:activiti="http://activiti.org/bpmn"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  targetNamespace="meu workflow">
(…)

So… anywhere solution point?

Thank's in advance
4 REPLIES 4

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise

oca
Champ in-the-making
Champ in-the-making
can I add an different xml tag in bpmn2 diagram?
Yes, you can put your own tags in a bpmn file, but not the way you do it in your example.
Maybe you should have a look at the "extension" part of bpmn2

8.2.3 Extensibility
The BPMN metamodel is aimed to be extensible. This allows BPMN adopters to extend the specified metamodel in a
way that allows them to be still BPMN-compliant.
It provides a set of extension elements, which allows BPMN adopters to attach additional attributes and elements to
standard and existing BPMN elements.
This approach results in more interchangeable models, because the standard elements are still intact and can still be
understood by other BPMN adopters. It’s only the additional attributes and elements that MAY be lost during interchange.

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
🙂 His question was not about just adding custom tags, but having it being executed in a specific order etc… therefor my question, what do you want to achieve. There might be various better options…

nandoztx
Champ in-the-making
Champ in-the-making
Thank's for all feedbacks,
well, my real objective is put a script or attribs in a custom tag to persist this values in database, where I read this data before workflow persist and run, this same workflow will be request this customized and dinamic (can be modified by crud implementation) data before started.
Like that: ( [upload workflow] -> [read custom tag to get persistent default workflow data] -> [persist custom data] -> [persist workflow] -> [be happy] )
My boss say to me: "That solution can be implemented in a next future, for now, this workflow has your data persisted before workflow persistence".
Thank's in advance.