Discussion:
[jboss-user] [jBPM] - Designer - Mixed up global/input/output variables in imported processes
Olaf Sebelin
2013-08-09 09:57:28 UTC
Permalink
Olaf Sebelin [https://community.jboss.org/people/osebelin] created the discussion

"Designer - Mixed up global/input/output variables in imported processes"

To view the discussion, visit: https://community.jboss.org/message/832094#832094

--------------------------------------------------------------
Hi,

we are migrating from using the drools eclipse BPMN2 modeler to the designer 2.4 war. When I import the processes into the guvnor, edit them in the designer and save and export them they fail to execute in the drools runtime.

I narrowed the problem down to global variables, data input and output variables that have the same name. They will get mixed up leading to missing <bpmn2:dataInputAssociation> elements.

This is visible  in the editor for data assignments for work items. If I try to map e.g.
* the global variable 'acl' to the input parameter 'acl' and
* the output parameter 'acl' to the global variable 'acl',
they get mixed up. If I open the drop down list again, ist is always the gl
Robert (Bob) Brodt
2013-08-09 14:15:52 UTC
Permalink
Robert (Bob) Brodt [https://community.jboss.org/people/bbrodt] created the discussion

"Re: Designer - Mixed up global/input/output variables in imported processes"

To view the discussion, visit: https://community.jboss.org/message/832131#832131

--------------------------------------------------------------
Hi Olaf,

I believe this is a problem with the jBPM runtime because it uses the BPMN element "id" attribute instead of "name" for the variable name (presumably because XML Schema ID naming rules are similar to Java's variable names.) This was, IMHO, an unfortunate design decision which essentially means that ALL variable names must be unique within the process. I'm not sure if there's a bugzilla enhancement request filed for this or not, but the workaround is to rename your variables so they don't collide.

Bob
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/832131#832131]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Olaf Sebelin
2013-08-09 14:44:17 UTC
Permalink
Olaf Sebelin [https://community.jboss.org/people/osebelin] created the discussion

"Re: Designer - Mixed up global/input/output variables in imported processes"

To view the discussion, visit: https://community.jboss.org/message/832140#832140

--------------------------------------------------------------
OK, I will rename the variables. Shall I file an RFE anyway?



Thank you for your help && Regards
Olaf
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/832140#832140]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Robert (Bob) Brodt
2013-08-11 14:36:52 UTC
Permalink
Robert (Bob) Brodt [https://community.jboss.org/people/bbrodt] created the discussion

"Re: Designer - Mixed up global/input/output variables in imported processes"

To view the discussion, visit: https://community.jboss.org/message/832219#832219

--------------------------------------------------------------
Yes please :)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/832219#832219]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Olaf Sebelin
2013-08-12 15:31:07 UTC
Permalink
Olaf Sebelin [https://community.jboss.org/people/osebelin] created the discussion

"Re: Designer - Mixed up global/input/output variables in imported processes"

To view the discussion, visit: https://community.jboss.org/message/832358#832358

--------------------------------------------------------------
Done: https://issues.jboss.org/browse/JBPM-4095 https://issues.jboss.org/browse/JBPM-4095
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/832358#832358]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...