Bug 1253594

Summary: JBDS8.1 Diagram Editor does not allow to use a variable for "called element" in CallActivity
Product: [Retired] JBoss BPMS Platform 6 Reporter: Hiroko Miura <hmiura>
Component: Eclipse ToolingAssignee: Kris Verlaenen <kverlaen>
Status: CLOSED EOL QA Contact: Jozef Marko <jomarko>
Severity: high Docs Contact:
Priority: high    
Version: 6.1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:00:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Hiroko Miura 2015-08-14 08:19:28 UTC
Description of problem:
JBDS8 Diagram Editor does not allow to use a variable for "Called Element" in CallActivity

Version-Release number of selected component (if applicable):
JBDS 8.1
BPMS2 Modeler - Diagram Editor 1.1.2.Final

How reproducible:

Steps to Reproduce:
1.create business process and then create call activity
2.create Reusable Process (Call Activity)
3.open property then go to Call Activity tab, 
  In the Called Element field, click pencil icon and then input something like 

Actual results:
OK button is grayed out if non alphabet character is included.
(unable input numeric and special character, such as '#','{')

Expected results:
variable representation can be accepted and saved.

Additional info:
It fails to save business process  which is imported from business central if variable is specified in called element.

Error Message somehing like:
The file can not be saved because the current stateod the model is invalid.
Please resolve the following issues before saving:

The ExternalProcess ID is invalid: #(subprocessId}

Comment 3 Robert (Bob) Brodt 2015-09-09 17:08:05 UTC
Added support for process variable references in Called Element attribute. Also fixed validation to conform to process ID naming conventions as defined in jBPM documentation section

See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=476672

Comment 4 Jozef Marko 2015-10-06 13:36:41 UTC
Still reproducible on:
jbds-9.0.0.CR2_jbdsis-9.0.0.Alpha2 bpmn2 modeler

I am marking this again as assigned, because Bob mentioned in linked bugzilla, that fix should be available in bmn2 modeler.

Comment 5 Robert (Bob) Brodt 2015-10-15 17:48:03 UTC
This is fixed in build of the editor. I forgot to promote that build, so the update site still contained the previous version.

Comment 6 Jozef Marko 2015-10-26 12:59:25 UTC
In build fix looks very good. There is feature, which checks if really exists declared variable with given name.

Great job Bob. Thanks.

I will mark this as verified, as soon as there will be JBDSIS 9 which will contain this fix.

Comment 7 Jozef Marko 2016-01-18 13:55:18 UTC
Verified on jbdsis-8.0.5.CR1, BPMN2 Modeller 1.1.4.Final

#{processId} can be added as callable element.