Now we have a Human Task created for the User task and they are connected as well. However, when this task is assigned to someone who performs an action on it, he/she must have a user interface to interact with. We will now develop a user interface like an ADF Form for interaction.
In this section, you will learn how to create a Task Form for an Interactive task:
EnterQuoteUI
.When you click OK, several actions will take place such as creating a new project, creating necessary files, and so on. This will take few minutes and you need to wait until it's done. The user interface for the Task Service is generated automatically. Many dialogs will open to give you an opportunity to do some customization. For the time being, you can click OK on them too.
As your SOA Composite includes a Human Task, you need a way for users to interact with the task. The integrated development environment of Oracle SOA Suite includes Oracle Application Development Framework (Oracle ADF) for this purpose. With Oracle ADF, you can design a Task Form that depicts the Human Task in the SOA composite.
If you check in the Project navigator into the newly created project, EnterQuoteUI
, you will find:
(.jspx)
file.hwtaskflow.xml
file is created to capture the details on connecting with the service engine. By default, it uses remote EJB to connect to the workflow server. Oracle SOA server URL and port are automatically determined by using the WebLogic server runtime MBeans. However, you can override these by explicitly specifying the URL and port information here.You can create a Task Form by using either the Auto-Generate Task Form option or the Launch Task Form Wizard.
Here you will learn how to initiate a Task Form generation using wizards, as follows:
.task
file to open the Task Editor with the Task Service definition.The last User task in the process is to finalize the contract with the Contracts role. Input and Output Business Data is saved in "Quote" (Quote.xsd
), and finally the quote is saved in the Enterprise database by an external service call.
In this section, you will create an Interactive task:
FinalizeContracts
and Title as Finalize Contracts
.quote
Data object, select Editable, and click OK.At runtime, when a token arrives at a User task, control is passed from the BPMN process to the Oracle Human Workflow. Although both are part of the Oracle BPM runtime, control is not passed back to the BPMN process until the Human Tasks are completed.
After the workflow is complete, control is passed back to the BPMN process; any required Data objects are passed back to the User task and the token moves to the next sequence flow of the process.
We can also create a Task Form for the Finalize Contract task, as described in the following section.
In this section, you will learn to create a Task Form:
FinalizeContracts.task
file under Business Catalog | Human Tasks.3.147.66.128