JFC application contexts or JFC applications in short provide a GUI by means of which the user can inter-operate in an execution client with workflow data from the model.
JFC Java applications allow to instantiate any Java class which extends JComponent with a public default constructor in an execution client and execute it. For this, at modeling time you have to specify
The completion method parameters will be exposed as IN access points named x
Param n where x is the first letter of the class name and n is a
consecutive number, starting with 1. The return value of the completion
method, if any, will be exposed as an OUT access point returnValue.
Let's consider a class PersonPanel used as JFC application with
completion method save() defined the following way:
public class PersonPanel extends JPanel
{
private Person person;
private JTextField nameField;
public void NamePanel()
{
add(new JTextField());
...
} public void setPerson(Person person)
{
this.person = person;
nameField.setText(person.getName());
} public Person save()
{
person.setName(nameField.getText());
return person;
}
}
This will result in the access point pParam1 for the
completion method parameter.
To specify a JFC application in the Process Workbench:
Figure: Creating a JFC Application
Open the properties page of the JFC application.
In the details panel, choose the correct values for the
implementation class and the completion method. Note that for
accomplishing this step it is necessary to have the implementation class
in the class path of the Process Workbench.
Figure: Specifying a JFC Application