The following sample code provides the MyTable class that implements a dataslot with custom interface.
Note
The MyTable class (a subclass of BSObject) implements the set methods for all the attributes defined for the dataslot. Additionally, this class implements the getPresentation() method for rendering dataslot presentation. If the inout parameter in the getPresentation() method is False, then the dataslot is input only, and it renders a read-only presentation. If the inout parameter in the getPresentation() method is True, then it renders an editable presentation. This method must return a string which represents the presentation for the dataslot.
Sample code
package com.savvion.BPM Workflow.beans;
import java.util.*;
import java.net.*;
import java.sql.*;
public class MyTable
extends BSObject
{ public static final String NL = "\n";