21 Working with Task Flow Styles

Task flow styles are templates used for creating task flows at runtime.

They are useful if you want to reuse a custom visualization in different task flows in your portal. When you create a task flow, the Create Task Flow dialog displays all available task flow styles.

This section includes the following topics:

Permissions

To perform the tasks in this chapter, you need one of the following portal-level permissions:

  • Assets: Create, Edit, and Delete Assets or Create Assets and Edit Assets (standard permissions)

    or
  • Task Flow Styles: Create, Edit, and Delete Task Flow Styles or Create Task Flow Styles and Edit Task Flow Styles (advanced permissions).

For more information about portal-level permissions, see About Roles and Permissions for a Portal.

21.1 About the Built-In Task Flow Styles

WebCenter Portal provides two built-in task flow styles to get you started, described in Table 21-1.

Table 21-1 Built-in Task Flow Styles

Name Description

Blank

A one-column task flow with one layout box into which you can add content, including additional layout components.

Switching this task flow style is allowed.

Stretch

Maximizes the task flow to take up all available space.

Task flows based on this style cannot be switched.

21.2 Creating a Task Flow Style

In Oracle WebCenter Portal, you can create a new task flow style by copying an existing task flow style and then editing the source code to meet your requirements.

21.3 Editing a Task Flow Style

Use the Edit Source option to edit the source code of the task flow style's task flow definition file, view fragment, or the fragment's page definition file.

You may want to edit a task flow style to alter its layout. You can create a custom visualization with the required UI components and use a dummy EL value, #{dataPresenter.dummyData.collectionModel}, as a placeholder for the real data. When you create a task flow using this style, you can replace the dummy EL value with the real binding.

If you need EL assistance, an application developer can provide an EL expression; see Expression Language Expressions in Developing WebCenter Portal Assets and Custom Components with Oracle JDeveloper.

For information about how to edit a task flow style's source files, see Editing the Source Code of an Asset.

21.4 Managing Task Flow Styles

The Assets and Shared Assets pages provide options to manage task flow styles.

  • Delete—You can delete task flow styles when they are no longer required. You cannot delete built-in task flow styles.

    For more information, see Deleting an Asset.

  • Upload—You can upload a task flow style that has been created or edited in another portal or in Oracle JDeveloper.

    For more information, see Uploading an Asset.

  • Download—You can download a task flow style into an archive file for uploading into another portal or for importing into JDeveloper.

    For more information, see Downloading an Asset.

  • Actions

    • Copy—You can create a copy of a task flow style. Copying a task flow style enables you to replicate an existing style to use as the starting point for a new style. As there is no option to create a task flow style from scratch, you can create a copy of an existing style and replace its code with that of a custom style that you want to create.

      For more information, see Copying an Asset.

      For information about editing the source code of a copied task flow style, see Editing the Source Code of an Asset.

    • Security Settings—You can control whether all users or only specific users or groups can access the task flow that you created.

      For more information, see Setting Security for an Asset.

    • Show Properties—Each task flow style has certain properties associated with it that control how it is displayed in a portal. These properties are summarized in the Show Properties dialog.

      For more information, see Viewing Information About an Asset.

    • Edit Source—For more information, see Editing the Source Code of an Asset.

    • Edit Properties—Each task flow style has certain properties associated with it. You can edit these properties through the Edit Properties dialog.

      For more information, see Setting Properties on an Asset.

  • Preview—You can preview how the task flow style appears when it is applied to a task flow.

    For more information, see Previewing an Asset.

  • Available—You can control whether or not a task flow style is included in the Create New Task Flow dialog, and therefore whether or not it is available for use in a portal.

    For more information, see Showing and Hiding Assets.

    Tip:

    In addition to showing or hiding a task flow style in the Create New Task Flow dialog, you can also control whether a shared task flow style is available to any, all, or selected portals in WebCenter Portal. For more information, see Setting Properties on an Asset.