IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Advanced development topics > Customize behavior with visual snippets > Create a custom visual snippet
Adding a Java visual snippet
Java™ visual snippets are predefined pieces of Java code that you can use in your snippet.
To import a Java visual snippet, proceed as follows:
Procedure
- From the palette, click the Java visual snippet activity icon
.
- In the Select a Java Visual Snippet wizard, browse the existing types and qualifiers, choose an appropriate snippet and click OK
- You can drop the activity into one of two places in your snippet:
In both cases, you will notice that the icon beside your cursor has a plus symbol when you are at a place where you are allowed to drop the activity, and a thick black line will mark the location more clearly. When the cursor becomes a crossed out circle, continue moving it until it becomes a plus sign again.
- To drop it onto an empty area of the canvas, drag the cursor out over the canvas.
- To drop the activity into a structured activity that contains other activities, drag the cursor over the appropriate activity.
- Click where you want to drop the activity.
Results
Your newly created Java visual snippet will appear.