summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVrishali Doke2012-04-24 04:16:28 (EDT)
committer Stephan Born2012-06-15 10:39:23 (EDT)
commit3aaa9eca571bcc7d43735d93b70b0324bbf632c1 (patch)
tree99832a49bd5828feb2ad20ae78d3ba40d869aea6
parent06d402dbcf4c4098518c5df9bde6bb30ced21622 (diff)
downloadorg.eclipse.stardust.documentation-3aaa9eca571bcc7d43735d93b70b0324bbf632c1.zip
org.eclipse.stardust.documentation-3aaa9eca571bcc7d43735d93b70b0324bbf632c1.tar.gz
org.eclipse.stardust.documentation-3aaa9eca571bcc7d43735d93b70b0324bbf632c1.tar.bz2
CRNT-24520 - Added tutorial for JFC application
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/documentation@55751 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--org.eclipse.stardust.docs.dev/html/examples/index.html1
-rw-r--r--org.eclipse.stardust.docs.dev/html/examples/tutorials/tutorials-index.html1
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/compo1.pngbin0 -> 19870 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/getdata.pngbin0 -> 23089 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/jfcgetdata.pngbin0 -> 20155 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/jfcshowdata.pngbin0 -> 19861 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/mancompany.pngbin0 -> 33005 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/mandob.pngbin0 -> 32062 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manemp.pngbin0 -> 32408 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manempid.pngbin0 -> 32241 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manname.pngbin0 -> 31225 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manualactivity.pngbin0 -> 18901 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outcompany.pngbin0 -> 33781 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outdob.pngbin0 -> 31477 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outempid.pngbin0 -> 32537 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outempinfo.pngbin0 -> 32339 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outname.pngbin0 -> 30799 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showcominfo.pngbin0 -> 34097 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showdata.pngbin0 -> 25290 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showdob.pngbin0 -> 31560 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showempid.pngbin0 -> 32655 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showempinfo.pngbin0 -> 33050 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showname.pngbin0 -> 31952 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/skeleton.pngbin0 -> 21253 bytes
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/jfc-example.html539
-rw-r--r--org.eclipse.stardust.docs.dev/html/handbooks/tutorial/tut-preface.htm1
-rw-r--r--org.eclipse.stardust.docs.dev/tochandbooks.xml2
27 files changed, 544 insertions, 0 deletions
diff --git a/org.eclipse.stardust.docs.dev/html/examples/index.html b/org.eclipse.stardust.docs.dev/html/examples/index.html
index 23e2d80..6c798a8 100644
--- a/org.eclipse.stardust.docs.dev/html/examples/index.html
+++ b/org.eclipse.stardust.docs.dev/html/examples/index.html
@@ -54,6 +54,7 @@
Multi Model Audit Trail Setups Tutorial</a></li>
<li><a href="tutorials/jms/readme.html">
JMS Example</a></li>
+ <li><a href="tutorials/jfc/readme.html">JFC Example</a></li>
</ul>
<h2>Document Management Service</h2>
<ul>
diff --git a/org.eclipse.stardust.docs.dev/html/examples/tutorials/tutorials-index.html b/org.eclipse.stardust.docs.dev/html/examples/tutorials/tutorials-index.html
index c9220b4..0a32704 100644
--- a/org.eclipse.stardust.docs.dev/html/examples/tutorials/tutorials-index.html
+++ b/org.eclipse.stardust.docs.dev/html/examples/tutorials/tutorials-index.html
@@ -32,6 +32,7 @@
Multi Model Audit Trail Setups Tutorial</a></li>
<li><a href="jms/readme.html">
JMS Example</a></li>
+ <li><a href="jfc/readme.html">JFC Example</a></li>
</ul>
<script language="JavaScript" type="text/javascript">
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/compo1.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/compo1.png
new file mode 100644
index 0000000..837bafe
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/compo1.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/getdata.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/getdata.png
new file mode 100644
index 0000000..518b7b3
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/getdata.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/jfcgetdata.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/jfcgetdata.png
new file mode 100644
index 0000000..285df97
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/jfcgetdata.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/jfcshowdata.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/jfcshowdata.png
new file mode 100644
index 0000000..75af807
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/jfcshowdata.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/mancompany.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/mancompany.png
new file mode 100644
index 0000000..558ecd5
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/mancompany.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/mandob.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/mandob.png
new file mode 100644
index 0000000..72aa4cc
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/mandob.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manemp.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manemp.png
new file mode 100644
index 0000000..7c6c029
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manemp.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manempid.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manempid.png
new file mode 100644
index 0000000..609f2db
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manempid.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manname.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manname.png
new file mode 100644
index 0000000..313303d
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manname.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manualactivity.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manualactivity.png
new file mode 100644
index 0000000..450fecb
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/manualactivity.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outcompany.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outcompany.png
new file mode 100644
index 0000000..640a4da
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outcompany.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outdob.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outdob.png
new file mode 100644
index 0000000..d8e9dfe
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outdob.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outempid.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outempid.png
new file mode 100644
index 0000000..6f4cab4
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outempid.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outempinfo.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outempinfo.png
new file mode 100644
index 0000000..02ea269
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outempinfo.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outname.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outname.png
new file mode 100644
index 0000000..72d2f16
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/outname.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showcominfo.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showcominfo.png
new file mode 100644
index 0000000..a4e92e4
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showcominfo.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showdata.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showdata.png
new file mode 100644
index 0000000..8dd8fe0
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showdata.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showdob.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showdob.png
new file mode 100644
index 0000000..360985d
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showdob.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showempid.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showempid.png
new file mode 100644
index 0000000..0c34ccb
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showempid.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showempinfo.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showempinfo.png
new file mode 100644
index 0000000..93e2d40
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showempinfo.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showname.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showname.png
new file mode 100644
index 0000000..5d6f42b
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/showname.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/skeleton.png b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/skeleton.png
new file mode 100644
index 0000000..e11cc65
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/images/skeleton.png
Binary files differ
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/jfc-example.html b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/jfc-example.html
new file mode 100644
index 0000000..c6701b6
--- /dev/null
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/jfc/jfc-example.html
@@ -0,0 +1,539 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+<link rel="STYLESHEET" href="../../../styles/carnot.css"
+ charset="ISO-8859-1" type="text/css">
+<title>Using JFC Application</title>
+<script language="JavaScript" src="../../../styles/naviLine.js"
+ type="text/javascript"></script>
+</head>
+<body>
+<script language="JavaScript" type="text/javascript">
+<!--
+ writeNavigation("","../../../toc.html",
+ "../portal-configuration/filter-provider.html","",
+ "../../handbooks.htm","Developer Handbooks",
+ "../tut-preface.htm","Tutorial");
+ -->
+</script>
+<h1 id="provider">Using JFC Application</h1>
+<p>This tutorial helps you to work with JFC application.
+</p>
+
+<p>Using this example, you can:</p>
+<ul>
+ <li><a href="#jfc">Work with JFC Application</a></li>
+ <li><a href="#deploy">Deploy the JFC Application Model</a></li>
+
+</ul>
+
+<h2>Importing the Example Model</h2>
+<p>
+You can download the example source code as well as the complete
+model from the following link as a ZIP file:</p>
+<ul>
+ <li><a href="PLUGINS_ROOT/org.eclipse.stardust.docs.dev/html/examples/tutorials/jms/jms.zip">JMS Examples Sources</a></li>
+</ul>
+
+<h2 id ="jfc">Working with JFC Application</h2>
+<p>In this tutorial, two JFC applications are used. The JFCGetData application gets the data and JFCShowData appplication
+sets the data retrieved from the JFCGetData application. To facilitate the appropriate access points for application
+activities GetDataUsingJFC and ShowJFCData, we need to create a class which contains the get/set method.</p>
+
+<p>Let's create a skeleton of a model:</p>
+
+<ol>
+ <li>Create a process definition named <strong>DemoProcess</strong></li>
+ <li>Create a manual trigger</li>
+ <li>Create two application activities, named <strong>GetDataUsingJFC</strong> and <strong>ShowJFCData</strong></li>
+ <li>Create two JFC interactive applications named <strong>JFCGetData</strong> and <strong>JFCShowData</strong></li>
+ <li>Create three primitive data named <strong>Name</strong>, <strong>DOB</strong> and <strong>Employee Info</strong></li>
+ <li>Create a composite type with structured type definition as <strong>companyname</strong> of type string and
+ <strong>empid</strong> of type
+ unsignedint</li>
+ <p class="image"><img src="images/compo1.png"
+ alt="Composite1"><br>
+<strong>Figure:</strong> Composite1</p>
+ <li>Create a structured data named <strong>CompanyInfo</strong> and specify <strong>Composite1</strong> as the declared type.</li>
+
+</ol>
+<p>The model skeleton would look like as shown in the following screenshot:</p>
+
+<p class="image"><img src="images/skeleton.png"
+ alt="Skeleton"><br>
+<strong>Figure:</strong> DemoProcess - Skeleton</p>
+<h3>Creating Java Classes</h3>
+<p>Create a class named <strong>DemoJFC</strong> which extends a JPanel. This class provides get and set methods for appropriate
+access points. The following is the code snippet of DemoJFC class file.</p>
+
+<pre>
+package ag.carnot.hydra.jfc;
+
+import java.awt.GridLayout;
+import java.util.Date;
+
+import javax.swing.JFormattedTextField;
+import javax.swing.JLabel;
+import javax.swing.JPanel;
+import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
+import javax.swing.JTextField;
+
+/*
+ * This will take string as input from user using JFC and will display output as simple String (not using JFC).
+ * Model used - JFCSwingModel.DemoProcess
+ */
+public class DemoJFC extends JPanel {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1L;
+ private PersonDetails person;
+ private JTextField nameField;
+
+ private JFormattedTextField dobField;
+
+ private JTextField comapnyNameField = null;
+ private JTextField empIDField = null;
+ private JTextArea empInfoField = null;
+
+ public DemoJFC()
+ {
+ super(new GridLayout(7,2));
+
+ System.out.println("calling constructor");
+ person = new PersonDetails();
+
+ JLabel nameLabel = new JLabel("Name : ");
+
+ JLabel dobLabel = new JLabel("Date of Birth : ");
+
+
+
+ System.out.println("before textfield");
+ nameField = new JTextField(25);
+
+ dobField = new JFormattedTextField(new Date());
+
+
+ System.out.println("after textfield");
+ nameLabel.setLabelFor(nameField);
+
+ dobLabel.setLabelFor(dobField);
+
+
+ add(nameLabel);
+ add(nameField);
+
+
+ add(dobLabel);
+ add(dobField);
+
+
+
+ //company info
+ JLabel jNameL = new JLabel("Company name : ");
+ JLabel jEmpIDL = new JLabel("Employee ID : ");
+ JLabel empInfoLabel = new JLabel("Employee info");
+
+ comapnyNameField = new JTextField();
+ empIDField = new JTextField();
+ empInfoField = new JTextArea("Enter more personal info", 5, 5);
+ JScrollPane scrollPane = new JScrollPane(empInfoField);
+
+ jNameL.setLabelFor(comapnyNameField);
+ jEmpIDL.setLabelFor(empIDField);
+ empInfoLabel.setLabelFor(empInfoField);
+
+ add(jNameL);
+ add(comapnyNameField);
+ add(jEmpIDL);
+ add(empIDField);
+ add(empInfoLabel);
+ add(scrollPane);
+ System.out.println("after adding fields");
+ }
+
+ //if we create Person as structured data, then this method can be used. Currently not used.
+ public void setPerson(PersonDetails person)
+ {
+ System.out.println("setperson called");
+ this.person = person;
+ nameField.setText(person.getName());
+ }
+
+ //completion method for JFC application, saves data
+ public PersonDetails save() {
+ System.out.println("save called");
+ person.setName(nameField.getText());
+
+ person.setDob((Date)dobField.getValue());
+
+ person.setCompanyName(comapnyNameField.getText());
+ person.setEmpID(new Integer(empIDField.getText()));
+ person.setEmpInfo(empInfoField.getText());
+
+ return person;
+ }
+
+ public String getName()
+ {
+ System.out.println("Inside getName");
+ return person.getName();
+ }
+
+ public String getAddress()
+ {
+ System.out.println("Inside getAddress");
+ return person.getCaddress();
+ }
+
+ public Date getDOB()
+ {
+ return person.getDob();
+ }
+
+ public Long getPhoneno()
+ {
+ return person.getPhoneno();
+ }
+
+ public String getCompanyName()
+ {
+ return person.getCompanyName();
+ }
+
+ public Integer getEmpID()
+ {
+ return person.getEmpID();
+ }
+
+ public String getEmpInfo()
+ {
+ return person.getEmpInfo();
+ }
+
+ public void setName(String name)
+ {
+ System.out.println("inside setName : " + person.getName() + "name passed " + name);
+ nameField.setText(name);
+ }
+
+
+
+
+ public void setDOB(Date date)
+ {
+ dobField.setText(date.toString());
+ }
+
+ public void setCompanyName(String companyName)
+ {
+ comapnyNameField.setText(companyName);
+ }
+
+ public void setEmpID(Integer empID)
+ {
+ empIDField.setText(empID.toString());
+ }
+
+ public void setEmpInfo(String empInfo)
+ {
+ empInfoField.setText(empInfo);
+ }
+ //completion method, does nothing for show JFC data
+ public void submit()
+ {
+
+ }
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ // TODO Auto-generated method stub
+ DemoJFC jfcapp = new DemoJFC();
+ jfcapp.save();
+ }
+
+}
+</pre>
+<p>Also, create a POJO class named <strong>PersonDetails</strong>. The following is the code snippet for PersonDetails class.</p>
+
+<pre>
+package ag.carnot.hydra.jfc;
+
+import java.util.Date;
+
+public class PersonDetails
+{
+ String name;
+ String fname;
+ String mname;
+ String caddress;
+ String paddress;
+ String sex;
+ Date dob;
+ Long phoneno;
+ Long mobileno;
+ String companyName;
+ Integer empID;
+ String empInfo;
+
+ public PersonDetails()
+ {
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public void setName(String name)
+ {
+ this.name = name;
+ }
+
+ public String getFname()
+ {
+ return fname;
+ }
+
+ public void setFname(String fname)
+ {
+ this.fname = fname;
+ }
+
+ public String getMname()
+ {
+ return mname;
+ }
+
+ public void setMname(String mname)
+ {
+ this.mname = mname;
+ }
+
+ public String getCaddress()
+ {
+ return caddress;
+ }
+
+ public void setCaddress(String caddress)
+ {
+ this.caddress = caddress;
+ }
+
+ public String getPaddress()
+ {
+ return paddress;
+ }
+
+ public void setPaddress(String paddress)
+ {
+ this.paddress = paddress;
+ }
+
+ public String getSex()
+ {
+ return sex;
+ }
+
+ public void setSex(String sex)
+ {
+ this.sex = sex;
+ }
+
+ public Date getDob()
+ {
+ return dob;
+ }
+
+ public void setDob(Date dob)
+ {
+ this.dob = dob;
+ }
+
+ public Long getPhoneno()
+ {
+ return phoneno;
+ }
+
+ public void setPhoneno(Long phoneno)
+ {
+ this.phoneno = phoneno;
+ }
+
+ public Long getMobileno()
+ {
+ return mobileno;
+ }
+
+ public void setMobileno(Long mobileno)
+ {
+ this.mobileno = mobileno;
+ }
+
+ public String Submit()
+ {
+ return "submit";
+ }
+ public String getCompanyName() {
+ return companyName;
+ }
+
+ public void setCompanyName(String companyName) {
+ this.companyName = companyName;
+ }
+
+ public Integer getEmpID() {
+ return empID;
+ }
+
+ public void setEmpID(Integer empID) {
+ this.empID = empID;
+ }
+
+ public String getEmpInfo() {
+ return empInfo;
+ }
+
+ public void setEmpInfo(String empInfo) {
+ this.empInfo = empInfo;
+ }
+
+}
+</pre>
+<p>You need to add these classes to src folder of your project.</p>
+
+<h3>Creating JFC Application Context</h3>
+<p>You need to specify the class and completion method for the <strong>JFCGetData</strong> and <strong>JFCShowData</strong>
+JFC applications.</p>
+<p>For more information, please refer to the chapter <a href="PLUGINS_ROOT/org.eclipse.stardust.docs.dev/html/handbooks
+/modelling/mg-integration-7.htm">Integrating JFC Applications</a> of the
+<a href="PLUGINS_ROOT/org.eclipse.stardust.docs.dev/html/handbooks/modelling/mg-preface.htm">Modeling Guide</a>.</p>
+
+<ol>
+ <li>Open the properties of <strong>JFCGetData</strong> application</li>
+ <li>In the left pane of the properties page, select <strong>Interactive</strong> and
+ then select the check box <strong>jfc</strong> context</li>
+ <li>In the left pane, under Interactive, select <strong>JFC Application</strong></li>
+ <li>Specify the DemoJFC java class for JFC application</li>
+ <li>Specify the public method as a completion method. It gets executed once application activity is complete.
+ </li>
+
+</ol>
+<p class="image"><img src="images/jfcgetdata.png"
+ alt="JFCGetData - Application Context"><br>
+<strong>Figure:</strong> JFCGetData - Application Context</p>
+<p>Similarly, specify the following application context for the JFCShowData application.</p>
+
+
+<p class="image"><img src="images/jfcshowdata.png"
+ alt="JFCShowData - Application Context"><br>
+<strong>Figure:</strong> JFCShowData - Application Context</p>
+
+<h3>Specifying Data Mapping</h3>
+<ol>
+<li>Specify the following Out data mapping for the application activity <strong>GetDataUsingJFC</strong></li>
+ <p class="image"><img src="images/outname.png"
+ alt="GetDataUsingJFC - Out Mapping"><br>
+<strong>Figure:</strong> GetDataUsingJFC - Out Mapping - Name</p>
+<p>Note that the access point methods are specified in DemoJFC.java file.</p>
+ <p class="image"><img src="images/outdob.png"
+ alt="GetDataUsingJFC - Out Mapping"><br>
+<strong>Figure:</strong> GetDataUsingJFC - Out Mapping - DOB</p>
+ <p class="image"><img src="images/outcompany.png"
+ alt="GetDataUsingJFC - Out Mapping"><br>
+<strong>Figure:</strong> GetDataUsingJFC - Out Mapping - CompanyInfo</p>
+ <p class="image"><img src="images/outempid.png"
+ alt="GetDataUsingJFC - Out Mapping"><br>
+<strong>Figure:</strong> GetDataUsingJFC - Out Mapping - EmpID</p>
+ <p class="image"><img src="images/outempinfo.png"
+ alt="GetDataUsingJFC - Out Mapping"><br>
+<strong>Figure:</strong> GetDataUsingJFC - Out Mapping - EmpInfo</p>
+
+<li>Specify the following In data mapping for the Manual Activity 1</li>
+ <p class="image"><img src="images/manname.png"
+ alt="Manual Activity 1 - In Mapping - Name"><br>
+<strong>Figure:</strong> Manual Activity 1 - In Mapping</p>
+<p class="image"><img src="images/mandob.png"
+ alt="Manual Activity 1 - In Mapping"><br>
+<strong>Figure:</strong> Manual Activity 1 - In Mapping - DOB</p>
+<p class="image"><img src="images/mancompany.png"
+ alt="Manual Activity 1 - In Mapping"><br>
+<strong>Figure:</strong> Manual Activity 1 - In Mapping - CompanyInfo</p>
+<p class="image"><img src="images/manemp.png"
+ alt="Manual Activity 1 - In Mapping"><br>
+<strong>Figure:</strong> Manual Activity 1 - In Mapping - EmployeeInfo</p>
+<p class="image"><img src="images/manempid.png"
+ alt="Manual Activity 1 - In Mapping"><br>
+<strong>Figure:</strong> Manual Activity 1 - In Mapping - EmpID</p>
+<li>Specify the following In data maaping for the application activity <strong>ShowJFCData</strong></li>
+<p class="image"><img src="images/showname.png"
+ alt="ShowJFCData - In Mapping"><br>
+<strong>Figure:</strong> ShowJFCData - In Mapping - Name</p>
+<p class="image"><img src="images/showdob.png"
+ alt="ShowJFCData - In Mapping"><br>
+<strong>Figure:</strong> ShowJFCData - In Mapping - DOB</p>
+<p class="image"><img src="images/showcominfo.png"
+ alt="ShowJFCData - In Mapping"><br>
+<strong>Figure:</strong> ShowJFCData - In Mapping - CompanyInfo</p>
+<p class="image"><img src="images/showempid.png"
+ alt="ShowJFCData - In Mapping"><br>
+<strong>Figure:</strong> ShowJFCData - In Mapping - EmpID</p>
+<p class="image"><img src="images/showempinfo.png"
+ alt="ShowJFCData - In Mapping"><br>
+<strong>Figure:</strong> ShowJFCData - In Mapping - EmployeeInfo</p>
+
+</ol>
+<h2 id="deploy">Deploying the Model</h2>
+
+<p>Note that application activities with JFC application can be used only with Swing based portals (clients).
+</p>
+
+<ol>
+ <li>Start your server and deploy the model. For details on how to deploy a model,
+ please refer to the chapter
+ <a href="PLUGINS_ROOT/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/tut-main-12.htm">Deploying a Workflow Model</a>
+ of the <a href="PLUGINS_ROOT/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/support-case-preface.htm">Support Case Example</a>.</li>
+ <li>Start the Swing Portal. For more information, please refer to the chapter
+ <a href="PLUGINS_ROOT/org.eclipse.stardust.docs.enduser/html/handbooks/swing-portal/swing-start.html">
+ Starting the Swing Portal</a> of the <a href="PLUGINS_ROOT/org.eclipse.stardust.docs.enduser/html/toc.html">Enduser Handbooks</a>.</li>
+ <li>Login as administrator (motu/motu). You can use the Shift-F8 short key.
+ </li>
+
+</ol>
+
+<h3>Executing the Workflow</h3>
+<p>The application activity GetDataUsingJFC collects and saves the specified data . Once you complete the GetDataUsingJFC
+activity, the manual activity displays the data in read-only format and sends it to next activity. In the ShowJFCData activity,
+you can view the data in JFC format. </p>
+ <ol>
+ <li>Start the DemoProcess. </li>
+ <li>Specify the information and complete the activity <strong>GetDataUsingJFC</strong></li>
+ <p class="image"><img src="images/getdata.png"
+ alt="GetDataUsingJFC Activity"><br>
+<strong>Figure:</strong> GetDataUsingJFC Activity</p>
+
+ <li>Complete the manual activity</li>
+ <p class="image"><img src="images/manualactivity.png"
+ alt="Manual Activity"><br>
+ <strong>Figure:</strong> Manual Activity</p>
+ <li>Complete the <strong>ShowJFCData </strong>activity</li>
+ <p class="image"><img src="images/showdata.png"
+ alt="ShowJFCData Activity"><br>
+ <strong>Figure:</strong> ShowJFCData Activity</p>
+
+ </ol>
+
+
+<script language="JavaScript" type="text/javascript">
+<!--
+writeFooter();
+-->
+</script>
+</body>
+</html>
diff --git a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/tut-preface.htm b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/tut-preface.htm
index beb5686..088f2dd 100644
--- a/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/tut-preface.htm
+++ b/org.eclipse.stardust.docs.dev/html/handbooks/tutorial/tut-preface.htm
@@ -85,6 +85,7 @@ the product for @productname@ beginners.</p>
This tutorial helps you to create and apply worklist filter for portal configuration.</li>
<li><a href="jms/jms-example.html">Using JMS Application and JMS Trigger</a> - This tutorial helps you to
work with JMS application and JMS trigger.</li>
+ <li><a href="jfc/jfc-example.html">Using JFC Application</a> - This tutorial helps you to use JFC applications.</li>
</ul>
<h3>Related Documents</h3>
<ul>
diff --git a/org.eclipse.stardust.docs.dev/tochandbooks.xml b/org.eclipse.stardust.docs.dev/tochandbooks.xml
index 741c8c8..55e4085 100644
--- a/org.eclipse.stardust.docs.dev/tochandbooks.xml
+++ b/org.eclipse.stardust.docs.dev/tochandbooks.xml
@@ -121,6 +121,8 @@
</topic>
<topic href="html/handbooks/tutorial/jms/jms-example.html" label="Using JMS Application and JMS Trigger">
</topic>
+ <topic href="html/handbooks/tutorial/jfc/jfc-example.html" label="Using JFC Application">
+ </topic>
</topic>
<topic label="Modeling Guide" href="html/handbooks/modelling/mg-preface.htm">
<topic label="The Process Workbench" href="html/handbooks/modelling/mg-modeler-preface.html">