Wednesday, August 6, 2008

Visual Snippet

Visual Snippet How to

Websphere Integration Developer v612

Contents

How to create custom Java logic using the visual snippet editor

Related links

Visual snippet editor

The building blocks of the visual snippet editor
Customizing behavior with visual snippets

Unleashing visual snippets and business state machines in your service-oriented application

This is a Completed Visual Snippet. It will do the following:

  1. Accept an input parameter and prints it on the Console.
  2. It will create a new instance of a Business Object.
  3. It will retrieve the current date and time and return it.

The following steps below describe the activities in detail.

1-Create a Visual Snippet

Right-click the Reply activity and select Insert Before > Snippet.

2-Empty Visual Snippet

An empty Visual Snippet is created with a default name of Snippet. Change the default snippet name as required.

Select Visual Snippet

Right-click inside the visual snippet editor canvas and select the required visual snippet.

Print the input parameter on the Console

  1. Add an expression
    (**Expression) and populate as shown.
  2. Add a print to log utility (Standard...> utility folder)
  3. Wire the expression to the print to log.

Create a New Instance of of a Business Object.

Add the namespace and name of the Business Object to create BO ((Standard...> SCA Services folder)

Return the date and time

No comments: