Sunday, September 4, 2011

WebMethods: Invoke Step , Branch on Value

You use the INVOKE step to request a service within a flow. You can use the INVOKE step to:
 

When you build a BRANCH step, you can:


􀂄 Invoke any type of service, including other flow services and Web service connectors.

􀂄 Invoke any service for which the caller of the current flow has access rights on the local webMethods Integration Server.

􀂄 Invoke built-in services and services on other webMethods Integration Servers.

􀂄 Invoke flow services recursively (that is, a flow service that calls itself). If you use a flow service recursively, bear in mind that you must provide a means to end the recursion.
* Built-in services reside in the WmPublic package
 

Invoking a Service on Another webMethods Integration
Server You can use the built-in service pub.remote:invoke to invoke a service on a remote Integration Server and return the results. The remote server is identified by an alias, which is configured on the Remote Servers screen in the Integration Server Administrator. The
pub.remote:invoke service automatically handles opening a session and authentication on the remote server.


The pub.remote:invoke service resides in the WmPublic package and requires the alias of the remote server and the fully qualified name of the service that you want to invoke as input.


The BRANCH Step
The BRANCH step allows you to conditionally execute a step based on the value of a variable at run time. For example, you might use a BRANCH step to process a purchase order one way if the PaymentType value is “CREDIT CARD” and another way if it is “CORP ACCT”.

When you build a BRANCH step, you can:
 

􀂄 Branch on a switch value. Use a variable to determine which child step executes. At run time, the BRANCH step matches the value of the switch variable to the Label property of each of its targets. It executes the child step whose label matches the value of the switch.
􀂄 Branch on an expression. Use an expression to determine which child step executes. At run time, the BRANCH step evaluates the expression in the Label property of each child step. It executes the first child step whose expression evaluates to “true.”
  

1 comment:

  1. Can you please give me an example of branch on a switch value and branch on an expression?

    ReplyDelete