Pages

Monday, October 21, 2013

Webcenter Portal Task Flows with Page Service API

In this example i am going to create a webcenter portal task flow using Page Service API.

If you want to create task flow in Webcenter portal, Oracle is providing a standard way go to Administration  -> Under UI components -> Task Flows-> Create(Button)



But you can create a task flow using page service api also.

                pageServiceImpl.createTaskFlow(newTaskFlowPage,
                                               newTaskFlowPageDef,
                                               newTaskFlowDefinition,
                                               srcTaskFlowPage,
                                               srcTaskFlowPageDef,
                                               srcTaskFlowDefinition);


based on this we can create a task flow from existing Task flow template.

First we need to create a .Jsff page, pagedef.xml and taskflow-definition.xml file. Place them in the same folder structure like bellow. 


Then using the about page service api method we can create a task flow.


for this sample we need to add some extra jar files shown below.



you can download the sample project.

 Sample UI screen shots.

Click on the "New TaskFlow" link





0 comments:

Post a Comment