Table of Contents

Search

  1. Preface
  2. Part 1: Using Process Developer
  3. Part 2: Creating and Modifying Processes
  4. Part 3: Functions, Events, Errors, and Correlation
  5. Part 4: Testing and Deployment
  6. Part 5: Process Central and Process Server (On-Premises)

Process Developer

Process Developer

Example XPath Expressions

Example XPath Expressions

The following are example expressions for message, element and complex schema type variables.
  • Element type variable:
    Example:
    $AStatus/e:statusDescription
    Selects the
    statusDescription
    child node of
    AStatus
    element
  • Message type variable:
    Example:
    $StatusVariable.StatusPart2/e:statusDescription
    Selects the
    statusDescription
    child node of the
    StatusPart2
    part of
    StatusVariable
  • Schema complex type variable:
    Example:
    $Results/e:AuctionResult[2]/@AuctionID
    Selects the
    AuctionID
    attribute of the second
    AuctionResult
    child node
  • Expression statement
    itemsShipped = itemsShipped + itemsCount:
    $itemsShipped + $shipnotice.props/itemsCount
  • Convert
    a variable and part to a string:
    string($input.parameters)
  • Referencing a child node by localname only
    This can be useful when a schema has an
    xsd:any
    element in it, such as:
    <xs:any minOccurs="0" maxOccurs="unbounded"      namespace="##other" processContents="lax"/>
The Expression Builder doesn't show the structure in the variable tree view. To use the element, the namespace prefix can be ignored as in this example:
$creditInformation/*[local-name()= "previousLoanApplicationAttempts"][1] /*[local-name()="applicationDate"]
Selects the date of the first previous loan application, if information about previous loan applications is supplied as additional content for the creditInformation message.

0 COMMENTS

We’d like to hear from you!