Custom xml tag inside bpmn2 xml doc
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2012 01:53 PM
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:
So… anywhere solution point?
Thank's in advance
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
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2012 02:03 PM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2012 02:47 PM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2012 03:28 PM
🙂 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…
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2012 09:22 AM
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.
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.