IBM Integration Bus, Version 10.0.0.0 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


Creating a code plug-in project

Create a Java™ and PHP plug-in project to contain pattern instance modification code.

Before you begin

Before you can complete this task, you must have completed the following tasks:

About this task

You must create a code plug-in project to contain the Java and PHP pattern instance modification code that you write. You can distribute the Java and PHP code plug-in project in the pattern archive for the associated user-defined pattern to pattern users. See Packaging and distributing pattern plug-ins.

Procedure

To create a Java and PHP code plug-in project:

  1. Open the Pattern Configuration tab of the Pattern Authoring editor.
  2. Click Add. The Add Java or PHP Code window opens.
  3. Click New Project. The New Pattern Authoring Java and PHP Project window opens.
  4. Enter a plug-in ID for the new code plug-in. After the plug-in is created, the plug-in ID is shown in the Projects section of the Application Development view. The plug-in ID is also used to identify the plug-in when you distribute it to pattern users.
  5. Optional: If you want to include PHP code in the code plug-in, select Add PHP support to the project. If you select this option a main.php template and example PHP scripts are added to the code plug-in.
  6. Optional: If you want to include a Java class in the code plug-in, complete the following steps:
    1. Select Add an example pattern authoring Java class to the project.
    2. Enter a package name for the Java class in the Package name field.
    3. Enter a class name for the Java class in the Class name field.
  7. Click Finish. The New Pattern Authoring Java and PHP Project window closes.
  8. You can now add Java or PHP code to a user-defined pattern:

bc31020_.htm | Last updated 2015-03-27 19:27:52