These procedures assume you have configured your Process development environment (see Configuring the Process Development Environment), and are using the Java™ Development Kit (JDK) in native, command line mode. If you are using an IDE, add the vwpanel.jar file to your Java project to use the Process Java UI Toolkit's Swing-based controls. See Java UI Toolkit Overview.
Note: Although only customization of the Step Processor samples is discussed, simple directory and file name changes are all that is necessary to apply these instructions to the Launch Step Processor samples.
To customize the sample Java Step Processor:
If the new custom Step Processor runs properly, you are ready to customize the Step Processor application/applet source.
This section describes how to add user interface controls to the custom Step Processor by adding simple fields to indicate when the Step Processor was sent (launch information) and who sent it (originator information).
//Create labels for the launch date and originator information. javax.swing.JLabel sentLabel = new javax.swing.JLabel(); javax.swing.JLabel fromLabel = new javax.swing.JLabel(); //Create label objects for the launch date and originator information. filenet.vw.toolkit.runtime.step.beans.VWLabel vwSentLabel = new filenet.vw.toolkit.runtime.step.beans.VWLabel(); filenet.vw.toolkit.runtime.step.beans.VWLabel vwFromLabel = new filenet.vw.toolkit.runtime.step.beans.VWLabel();
iconLabel.setBounds(516,48,216,108);
iconLabel.setBounds(20,48,216,108);
//Display the label text on the JPanel to specify what the launch date information means. sentLabel.setText("Launched on:"); add(sentLabel); sentLabel.setBounds(320,84,100,24); //Retrieve and display the launch date for Step Processor. vwSentLabel.setParameterName("F_LaunchDate");
add(vwSentLabel);
vwSentLabel.setBounds(430,84,100,24);
//Display the label text on the JPanel to indicate what the originator information means. sentLabel.setText("Step Originator:"); add(fromLabel); fromLabel.setBounds(320,120,100,24); //Retrieve and display the originator information. vwFromLabel.setParameterName("F_Originator"); add(vwFromLabel); vwFromLabel.setBounds(430,120,180,24);