Bug 1132383 - Guided Editor does not see classes from external JAR
Summary: Guided Editor does not see classes from external JAR
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER2
: 6.1.0
Assignee: manstis
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-21 09:17 UTC by Anton Giertli
Modified: 2020-03-27 20:00 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:00:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
[1] drl (21.82 KB, image/png)
2014-08-21 09:17 UTC, Anton Giertli
no flags Details
[2] guided rule (12.55 KB, image/png)
2014-08-21 09:17 UTC, Anton Giertli
no flags Details
[3] import suggestions (27.53 KB, image/png)
2014-08-21 09:18 UTC, Anton Giertli
no flags Details
[4] guided rule - working (67.56 KB, image/png)
2014-08-21 09:18 UTC, Anton Giertli
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1007887 0 low CLOSED The Import section for Guided editors only allows to import one fact at a time 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1078763 0 medium CLOSED Import suggestions should act as a mask for imports 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1081552 0 unspecified CLOSED Models not available for rules - errors during deployment 2021-02-22 00:41:40 UTC

Internal Links: 1007887 1078763 1081552

Description Anton Giertli 2014-08-21 09:17:02 UTC
Description of problem:

It is not possible to select model classes in the CONFIG tab in the guided rule.
Only classes created by Data Modeler are available for selection.

Version-Release number of selected component (if applicable):
 BPM 6.0.2

How reproducible:
always

Steps to Reproduce:
1. Upload some jar with model class to the artifact repository
2. make it a project dependency
3. create guided rule and try to use this class in the LHS

Actual results:

Classes from external jar can't be import in the guided editor

Expected results:
 Classes from external jar can be imported in the guided editor

Comment 1 Anton Giertli 2014-08-21 09:17:33 UTC
Created attachment 929132 [details]
[1] drl

Comment 2 Anton Giertli 2014-08-21 09:17:51 UTC
Created attachment 929133 [details]
[2] guided rule

Comment 3 Anton Giertli 2014-08-21 09:18:11 UTC
Created attachment 929134 [details]
[3] import suggestions

Comment 4 Anton Giertli 2014-08-21 09:18:41 UTC
Created attachment 929135 [details]
[4] guided rule - working

Comment 6 Anton Giertli 2014-08-21 09:22:58 UTC
If you upload the JAR with the model you can use this class in the DRL rule, as shown in the screenshot [1]. However, it is not visible in the guided rule, as shown in screenshot [2].

workaround:

Authoring - > Project Authoring - > Tools - > Project Editor - > Imports - > Import Suggestions

Now you need to *manually* enter all the FQCN of your model classes - as shown in screenshot [3]. This is apparently not a best practice, as explained by manstis in BZ-1081552:

"Import Suggestions" are really badly named; they are really a place to define imports for classes *not* in the Project, but for example (and their main use) classes in the JRE that you need: java.util.List etc."

Once you save/build the project there will be WARN that these classes can't be resolved - BZ-1078763

However, after this you can finally import these classes in the config tab in the guided rule - screenshot [4].

Please improve the usability of imports/guided editor - as you can see the process is quite painful.

Comment 7 manstis 2014-11-06 12:28:14 UTC
I followed these steps (with 6.2.0.CR1 Community, i.e. 6.1.0.CR1 Product):-

1) Upload JAR to "Artifact Repository"
2) Open Project (Authoring Perspective) and add uploaded JAR as a dependency
3) Saved the Project changes
4) Opened a Guided Rule
5) Added a class from the uploaded JAR on the "Config" tab
6) Added a Pattern in the rule for the class I added in the "Config" tab

i.e. I was able to perform the required operation without problem.

Can you please re-test or provide steps to re-produce?

Comment 8 Zuzana Krejčová 2014-11-21 09:06:05 UTC
Works for me as well - both BRMS and BPMS 6.1 ER2.


Note You need to log in before you can comment on or make changes to this bug.