In this sample you create an SCA import component for invoking the module from Hello World Part 1, a human task component to prompt for the name information, and a business process component that invokes the first two components. This gives you an introduction to some of the capabilities (activities) of a business process and an introduction to the other core tools that supplement the business object, interface and mediation flow tools introduced in the Hello World Part 1 sample.
At a conceptual level, the Hello World Part 2 sample application is comprised of a module named HelloWorldProcess that contains a business process also named HelloWorldProcess and a human task component named HelloWorldTask, as well as an import and export named HelloWorldImport and HelloWorldExport respectively, as shown in the following figure:
A human task is a unit of work performed by a person. There are several kinds of human tasks, such as a To-do task where the system assigns a task to a person, who usually supplies the necessary information and completes the task, returning the information to the process. In this sample, the HelloWorldProcess business process assigns a To-do task for completion by a person -- you!
The HelloWorldProcess business process is a long-running process, which means that it can come to a complete stop while waiting for input or instructions. The most common form of this interruption would be a human interaction or decision, but it could also be the result of calling a long-running asynchronous service.
In the sample, the business process receives text input indicating gender and sends this text to a To-do human task which displays it while prompting for user name information. You will find and claim that task in the supplied Web-based user interface for working with human tasks, and then enter the prompted-for name information. When you are finished with the task you complete it to send the response back to the business process. The process then decides on a title string based on the gender input text, and sends the title and name information to the service implemented by the module from the first Hello World sample, which results in the concatenated name prefixed by “Hello”. This result is written to the console using a small snippet of visual Java code, and returned to the waiting caller of the process.
This figure shows what the business process for this sample looks like: