Creating a Mobile Workflow Form

Goal: Create a mobile workflow form using the TravelRequest mobile business object.

Prerequisites
Complete Deploying the WorkFlow101 Mobile Application Project.
Task
  1. From the main menu, select New > Mobile Workflow Forms Editor.
  2. Select MobileWorkflow101 as the parent folder and enter travelrequest.xbw as the file name.
  3. Click Next.
  4. Select Can be started on demand from the client and click Finish.
  5. In the Mobile Workflow Forms editor, click Flow Design.
    You see the Start icon with the Start Screen connected to it.
  6. In Workspace Navigator, expand MobileWorkflow101 > Mobile Business Objects > TraveRequest > Operations.
  7. Drag and drop the create operation onto the Flow Design page.
    A TravelRequest_create screen is automatically created.


    mwf_travelrequest_screen

  8. Add a GoTo connection from the Start Screen to the TravelRequest_create screen:
    1. In the Palette, click GoTo.
    2. Click the Start Screen, and while holding the mouse down, drag the connection to the TravelRequest_create screen.
  9. Double-click the Start screen, which opens the Screen Design page.
  10. From the Palette, select the HtmlView control and click the Start screen.
  11. Click Flow Design to return to the Flow Design page.
  12. Click the Client-initiated starting point so you can view its properties in the Properties view.
    If the Properties view does not appear, right-click the Flow Design page and select Show Properties View.
  13. The Properties view shows all of the keys that were automatically created for each parameter in the create method of the TravelRequest mobile business object.
  14. Create a new key for the Start screen:
    1. In the Properties view, in Keys, click New.
    2. Enter these values:
      • Name – IntroKey
      • Type – string

      mwf_new_key
    3. Click OK.
      The new key, IntroKey, appears in the list of keys in the Properties view.
  15. Define the default value for the new key:
    1. Click the Screen Design tab.
    2. If necessary, select Start Screen.

      mwf_select_screen
    3. Select the HtmlView control to view the properties in the Properties view.
    4. In Input Data Binding, from Key, select IntroKey.
    5. In Default value, enter: <H2>Travel Request App</H2>This application enables vacation requests to be sent for approval.

      mwf_introkey_data_binding
  16. Select TravelRequest_create.

    mwf_select_travel_screen
  17. On the Menu, select the Create operation to view its properties.

    mwf_blue_menu
  18. In Properties, click Parameter Mappings.
    The parameter mapping table shows the mobile business object parameters for the operation and the keys that are used for those parameters.


    mwf_travel_create_properties

  19. Select File > Save.
Related tasks
Generating Code for a Mobile Workflow Package
Registering the Emulator in Sybase Control Center
Configuring Connection Settings
Assigning the Mobile Workflow Package to a User
Setting Up a New E-mail Account on the Emulator
Viewing and Running the Mobile Workflow Form on the Emulator