Created attachment 836331 [details] Models for testing Steps to Reproduce: 1. Import two models in a jar. For example the drools-core.jar 2. Import org.drools.workbench.models.datamodel.rule.RuleModel and org.drools.workbench.models.datamodel.rule.RuleMetadata 3. Add the two models as patters to a Guided Rule Editor WHEN-section and declare them to variables "model" and "meta" 3. Call a method "addMetadata" from model Actual results: Gives a literal text box with a value "0". Expected results: Should give the pen icon and the ability to either pick a bound variable (the "meta") or a literal value.
Fix is here master: https://github.com/droolsjbpm/drools-wb/commit/07ae521de
The fix in https://bugzilla.redhat.com/show_bug.cgi?id=1042511 depended on this so I cherry-picked this to 6.0.x 6.0.x https://github.com/droolsjbpm/drools-wb/commit/158e0418c
Pen icon is in place. I cannot select bound variable but that is a different issue, I think. I will investigate.