This variable is the most useful custom variable that Bonita provides. We have the ability to create Java classes and export them into a jar file from any IDE or Java command line. This jar file can be added to the classpath of Bonita. Thereafter, we can create a new Java object of the type of the class that we have created. Let us see how to do this:
Open up an IDE, such as IntelliJIdea or Eclipse. Create a new Java project and a package inside src. Here, we will name it
com.rohitbhat.examplepackage
. Inside this package, create a new class namedTestClass
. Enter the following code in it:public class TestClass { private String testString; private int testInt; public TestClass() { this.testString = ""; this.testInt = 0; } public String getTestString() { return testString; } public void setTestString(String testString) { this.testString = testString; } public int getTestInt() { return testInt; } public void setTestInt(int testInt...