IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Ask for help on

    Posted 10/09/02 04:21 AM

    X-Application Version: 3.1.3
    Tamino Version : 3.1.1
    Platform : Win2k
    WebContainer : Tomcat 3.3
    JDK Version : 1.3.1

    After looking at documentation section “JavaServer Pages Tag Reference”, and it seems to be able to do one conditional checking on the xapp:if

    But, if it’s possible to deal with more conditions by using logical operator, AND/OR?

    Also, is there any if…then…else capability provided?

    Thanks!

    Mullin

    nil

    [This message was edited by Christian Freytag on 21 Mar 2003 at 12:25.]


    #webMethods
    #Tamino
    #API-Management


  • 2.  RE: Ask for help on

    Posted 10/11/02 02:37 PM

    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


  • 3.  RE: Ask for help on

    Posted 10/16/02 06:30 AM

    any plans of implementation of this feature?

    thanks!

    mullin

    nil


    #API-Management
    #webMethods
    #Tamino


  • 4.  RE: Ask for help on

    Posted 03/21/03 10:39 AM

    Hello,

    with the new XPath handling of X-Application 4.1.1 it is possible to add an XPath expression to the select[b] attribute of an [b]xapp:if tag. This XPath expression can contain ‘and’ and ‘or’ operators.

    Example:

    <xapp:if select="/Property[./Price < 250000 and ./Address/State = 'NY']">
    ...
    </xapp:if>



    The body is evaluated if the price of the current Poperty document is less the defined limit and is in New York.

    Bye,
    Christian.


    #API-Management
    #webMethods
    #Tamino