Describes PBL, Java, and Visual Basic programming styles
Studio supports different programming styles to reduce the time needed to learn how to program business process methods. Each style mimics a well-known programming language as precisely as possible and adds the features that are required to write your business rules effectively.
All available styles are functionally identical except where specifically noted. In other words, the Java and Visual Basic styles are not Java or Visual Basic. They are actually PBL formatted with Java or Visual Basic syntax as a programming aid to people familiar with these languages.
firstName as String
lastName as String
selectedButton as String
// Ask the person's name
input "First Name:" : firstName, "Last Name:" : lastName
using title = "Enter Your Name", buttons = ["Done", "Cancel"]
returning selectedButton = selection
// Check the button pressed
if selectedButton = "Done" then
display "Hello " + firstName + "!"
else
display "Hello!"
end
String firstName;
String lastName;
String selectedButton;
// Ask the person's name
input("First Name:" firstName,
"Last Name:" lastName, title : "Enter Your Name", buttons : { "Done", "Cancel" }, out selection : selectedButton);
// Check the button pressed
if (selectedButton == "Done")
{
display("Hello " + firstName + "!");
}
else
{
display("Hello!");
}
Dim firstName As String
Dim lastName As String
Dim selectedButton As String
' Ask the person's name
Input "First Name:" : firstName,
"Last Name:" : lastName, title := "Enter Your Name", buttons := { "Done", "Cancel" }, Out selection := selectedButton
' Check the button pressed
If selectedButton = "Done" Then
Display "Hello " & firstName & "!"
Else
Display "Hello!"
End If