How do I use a Java-defined "condition" attribute customization?
With some help from this forum and IBM Tech support, I am now able to define a couple of "conditions" in a Java Plug-in project, export them, move the "update site" to the server, and get them to install. The server log shows that the extension is being installed, resolved, and started.
However, I can't seem to use the resulting conditions. I am trying to follow the example in this article to create a "Read-Only Attribute for Condition" precondition and set it to use my newly imported condition. However, the article only shows how to do so for a Javascript condition. I need the equivalent procedure for a Java condition, but I have not been able to find that information. How does one use a Java extension "condition" as the condition for this type of precondition? A "script-based condition" prompts you to enter Javascript, and there is no obvious way to choose any other type. If it matters, this is using version 4.0.3 RTC server over Tomcat. Thanks for any light that anyone can shed, Eric Salberta |
One answer
Ralph Schoon (63.4k●3●36●46)
| answered Jun 19 '15, 6:27 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Plase see https://rsjazz.wordpress.com/2015/06/19/a-custom-condition-to-make-attributes-required-or-read-only-by-role/ and https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ for a bit more information.
If you don't see your extension you
Comments
Eric Salberta
commented Jun 19 '15, 9:16 p.m.
Ralph Schoon: Thank you very much for this answer. It may be just what I needed, and in any case the first document that you cite is a blessing from heaven. I will test it this weekend, and if it works, we will count this one closed. Thanks.
Ralph Schoon
commented Jun 22 '15, 11:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Welcome. Just accept the answer if you got it working, please.
Eric Salberta
commented Jun 23 '15, 4:06 p.m.
Ralph Schoon:
I am sorry, but I would suggest to
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.