Create ADF task form with Task Form Wizard

Today I took a look at the configuration possibilities of a human task. I found an second wizard to generate a task form for the human task. Below i created a small example of the wizard with it’s functions.

Example
Creating a new SOA project

Accept the default settings

I know that i want to have a human task so i preselect this option. An empty composite is also good to start with.

Give the human task a name

After finishing the creation of the human task i created a customer.xsd file that contains an object of customer i’m going to use in the proces

Add a BPEL process that has as input and output the customer object from the earlier created xsd file.

I made the service call of the BPEL public so i can call it from outside the SCA component. And i connected the humantask to the BPEL so i will have an adapter in to call this human task.

After configuring the humantask in the BPEL (Just drag the human task activity in your process and select (or create) a human task definition from your SCA component. After that right click on the human task activity and select Launch Task From Wizard.

The wizard starts with creating a separate project with the workspace. This is to separate the user interface of the SCA logic.

Second step is the Form name with a Task Flow Name. I have left the default settings for this purpose.

Now we will start configuring the layout of the page. We specify the amount of columns we want have in the form and select from the available items the items we want to show to the user.

We can specify now the layout of the body page.

For each area in the layout we specify which items we want to show of the payload.

This we repeat for the other two area’s


Now all that’s left is to specify the information for in the footer. I decided to place there the comment information of the task.

The summary shows us the layout that we have specified. We can pres now finish and wait while JDeveloper generates the task form for us.

You will have now a jspx page with the layout that you have specified in the wizard.

Now we have a SCA component with a human task and a project with the task form so the user can complete the task. We just have to deploy it now to the server.

Right mouse click on the SCA component project and select deploy in the drop down menu.

In the deploy wizard i select the application server option because i have one running in a locally hosted virtual machine.

I leave the default configuration plan as is. So far it’s like deploying a SCA component without a human task form.

Now we come to the extra step in the wizard to deploy the task form. In the drop down list of the Ear Profile Name you will see all deployment plans available in your project. So if you have multiple task forms in your workspace be careful with selecting the correct profile.

Now I have to select to which Application Server i want to deploy the applications. I have got two Application Server connections in my JDeveloper so that’s why i have a choice here. I select the weblogic11g machine.

Now we have specified all the necessary parameters we can press finish but for this demo i continue the rest of the wizard to show you the other option that i will accept as they are with their default values.
You can specify the partition where you want to deploy to.

As a last form you have a summary of the specified settings.

Now we finish the wizard and JDeveloper deploys the applications. After the deployment invoked the web service to initiate an instance of the sca component. I logged in into the integrated worklist application [url = http://server:port/integrated/worklistapp
I logged in with the user that should have assigned the task (in my case i created the account jcooper) and i had my Check Customer Information task. As you see below the screen looks good for a default generated screen.

That’s a way to generate your task form application.

Popularity: 27% [?]

Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

No Responses to “Create ADF task form with Task Form Wizard”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>