You can model both manual activities and activities supported by your applications in the Stardust Process Workbench. The latter can be performed via an application integrated in your system. Integrated applications can be for instance SAP applications, Enterprise JavaBeans™ or JavaServer Pages™. In this tutorial, you will use the Stardust Workflow Execution Perspective of the Stardust Portal. to assist with automatic generation of a JSF browser user interface. Application activities will be used for Java code integration and e-mail notifications.
To use this tutorial for hands-on learning you need the classes from
the org.eclipse.stardust.examples.supportcase package
which you can find in the support-case/src folder of the
provided support case example. In case you have not yet downloaded the
example ZIP file, click the following link to get the needed resources:
You find the resources in folder support-case.
This package has been designed to use the Spring JTA local mode. The business logic and the application functionality within Stardust will be demonstrated here.
To make the classes available in the project you can add the source files to your project:
src folder of your Support-Case dynamic Web project and
choose Import....
Figure: Add Sources to Project
<your-support-examples-folder>/support-case/src/ and
select the check box beside
org to add the package structure of the support-case tutorial classes.
Figure: Browse to the Source Directory
After the import is done you can access the class files in the src folder. If you like you can change
them or add additional class files to extend the tutorial process model.
Figure: Source Folder Structure after Import
Our example needs to integrate applications implemented as plain Java beans to manage their support process. The applications are available as the following Java classes:
org.eclipse.stardust.examples.supportcase.CreateSupportDataAppl
as the application called by the
Init Data and Notify Customer activities.org.eclipse.stardust.examples.supportcase.SupportCase
as initializer of the support case data.To integrate them in your workflow model, you create an application object by using one of the following:
Now create a Plain Java Application as the needed application for the Init Data activity.
Figure: Adding an Application to the Process Definition
Either of these two steps will place an application icon on the canvas. Drag the application icon, Plain Java Application 1, and drop it near the Init Data Application Activity.
Applications represented in your model are invoked at process execution time by the workflow management system and support the processing of activities to which they are assigned.
To set the properties of the created application and assign it to the activity Init Data:
SupportCaseFactory .
Figure: Application Properties Dialog
CreateSupportDataAppl (in package org.eclipse.stardust.examples.supportcase).
createCustomer()
by selecting it in the opening method browser as you click the Browse
button.

CreateSupportDataAppl().

In this ACME example, the SupportCase class creates a data object which will represent the case as it progresses through the workflow. This is a popular pattern for Stardust applications, though there are many other ways the solution can be implemented.
Proceed with the assignment of the application to the activity Init Data:
Figure: Assigning an Application to an Activity
The Java Factory application is now configured and assigned to the activity Init Data.
Then create a second application named Notification also as a plain java application.
CreateSupportDataAppl
(in package org.eclipse.stardust.examples.supportcase).notifyCustomer(java.util.Map)
by selecting it in the opening method browser as you click the Browse
button.CreateSupportDataAppl().
Figure: Integrating a Plain Java Bean
Proceed with the assignment of the application to the activity Notify Customer:
Figure: Assigning an Application to an Activity
The Notification application is now configured and assigned to the activity Notify Customer.