Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1112884

Summary: Desginer does not allow to use a variable for "called element" in CallActivity
Product: [Retired] JBoss BPMS Platform 6 Reporter: Hisao Furuichi <hfuruich>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED EOL QA Contact: Sona Mala <smala>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.1CC: kverlaen
Target Milestone: DR2   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:02:22 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:
Embargoed:
Attachments:
Description Flags
reproducer none

Description Hisao Furuichi 2014-06-25 00:50:04 UTC
Created attachment 911901 [details]
reproducer

Description of problem:
Web designer does not allow to use a process variable for "called element" in CallActivity.

Steps to Reproduce:
1. unzip attached archive
2. import BaseBPMNProject/src/main/resources/com/sample/*.bpmn2 to web designer
3. click "start validating" on web designer

Actual results:
ERROR messages shows up on server.log
===
09:31:22,438 ERROR [org.drools.core.xml.ExtensibleXmlParser] (http-localhost.localdomain/127.0.0.1:8080-7) (null: 14, 202): cvc-datatype-valid.1.2.1: '#{processVar1}' is not a valid value for 'QName'.
09:31:22,439 ERROR [org.drools.core.xml.ExtensibleXmlParser] (http-localhost.localdomain/127.0.0.1:8080-7) (null: 14, 202): cvc-attribute.3: The value '#{processVar1}' of attribute 'calledElement' on element 'bpmn2:callActivity' is not valid with respect to its type, 'QName'.
===

Expected results:
no error message shows up

Additional info:
- With JBDS-7.1.1/jbdevstudio-integration-stack-updatesite-7.0.2.GA, user can set a variable and no validation error occurs
- jbpm engine can operate a process which uses a variable for called element. Please use BaseBPMNProject/src/main/java/com/sample/ProcessMain.java to test it
- With web designer, user can not set a variable for "called element"

Comment 2 Tihomir Surdilovic 2014-07-07 19:55:47 UTC
commits in master:

(designer) https://github.com/droolsjbpm/jbpm-designer/commit/307e34037

(jbpm) https://github.com/droolsjbpm/jbpm/commit/a81a4f02f

(jboss-integration-platform-bom) pull request https://github.com/jboss-integration/jboss-integration-platform-bom/pull/77

node the pull request should be committed before the overall change is complete. I have added overwrite to use the new eclipse.bpmn2 version in designer so it can be tested now but this will be removed once the bom changes are in and resolve.

Comment 3 Sona Mala 2014-09-15 14:20:45 UTC
Verified for 6.1.0 DR2.

I was able to import attached processes and run them when I set a process variable to the correct process ID.