Process Variables definition and documentation inside the BPMN definition itself?

388 views
Skip to first unread message

alf.m...@gmail.com

unread,
Jun 12, 2014, 7:46:53 AM6/12/14
to camunda-...@googlegroups.com
Hi guys,

We'd like to know a simple way to document which are the process variables for a process definition, and for the involved tasks.

The motivation for this is to make easy for any developer working with the process to know which are the variables that are being used at any point of execution by the process. We'd like to know the variables being used for:

- for every start event
- for every user task
- for every service task
- for every receive task
- may be for some other elements

It would be nice to know which variables are expected as available for a specific task, and which variables are set/removed after that task is executed.

The closest feature we saw inside the modeler where the form fields, but they don't show up inside service tasks.

Since it looks like impossible to set those variables from the designer, it would be nice if we could set those variables directly into the bpmn xml file. But if this is neither possible, then, we want to be able to specify which variables are expected as input and which variables are set/removed as output for every single task.

We also wonder how BPMN 2.0 supports this feature (we didn't find anything related to this), and also, we'd like to know how do you manage to specify these variables, without having to use the bmpn annotation artifact, which would make the diagram dirty with lots of annotations...

Thanks in advance!

Daniel Meyer

unread,
Jun 18, 2014, 7:22:56 AM6/18/14
to camunda-...@googlegroups.com, alf.m...@gmail.com
Hi Alfonso,

with camunda BPM 7.2.0-alpha2 we introduced input / output mappings for activities. It is still undocumented (working on the docs) but you can already have a look at the testsuite to find out how it works:

Maybe this could help you to realize your usecase?

Cheers,
Daniel

Bernd Rücker (camunda)

unread,
Jun 18, 2014, 7:35:49 AM6/18/14
to camunda-...@googlegroups.com, alf.m...@gmail.com

Hi Alfonso.

 

As an addition: In current projects we normally use Java Accessor classes to define process variables and encapsulate access to them. You can find an example here: https://github.com/camunda/camunda-consulting/blob/master/patterns/data-in-processes/src/test/java/org/camunda/consulting/patterns/data/ExampleProcessDataAccessor.java  (work in progress). Works pretty well for Java process applications.

 

Cheers

Bernd

--
You received this message because you are subscribed to the Google Groups "camunda BPM users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/bfedfd2a-32d2-476c-82dc-20157fbd056e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages