Hello,
To your questions:
(1) Is it possible to deal with more conditions by using logical operator (AND/OR) ?
No, X-Application does currently not provide an expression language for tag attribute.
(2) Is any if…then…else capability provided?
No, the “if tag” has only a plain body without sub-element structure. I think your intention was a JSP tag construct of the following form:
<xapp:if condition="..." ...>
<xapp:then>
<!-- body content if the condition is true -->
</xapp:then>
<xapp:else>
<!-- body content if the condition is false -->
</xapp:else>
</xapp:if>
What is the current possibility you have to extend the conditional check?
It is possible to define a plugin method for a check. The attribute ‘condition’ of the ‘if tag’ must be a string to name your check. The attribute ‘value’ is the argument passed to your check.
An example is the method ‘isRemoveable’ of the class StandardElementPlugin.
Have a look at the files
(1) xapplication_313\src\com\softwareag\xtools\xapplication\jsp\xapplication-standard.xml,
(2) xapplication_313\src\com\softwareag\xtools\xapplication\plugin\StandardElementPlugin.java.
If you have problems to define a check for you application send a post with a description about your requirements and we will try to support you.
Bye,
Chritsian.
#webMethods#Tamino#API-Management