Creating a Mobile Workflow Form

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

Prerequisites
Complete Deploying the WorkFlow101 Mobile Application Project.
Task
  1. In the Sybase Unwired WorkSpace menu, click File > New > Mobile Workflow Forms Editor.
  2. Select the MobileWorkflow101 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 the Flow Design tab.
    The new flow diagram contains a Client-initiated screen, connected to a Start Screen.
    TravelRequest initial flow diagram
  6. In Workspace Navigator, expand MobileWorkflow101 > Mobile Business Objects > TravelRequest > Operations.
  7. Drag the create operation onto the flow diagram.
    The TravelRequest_create screen is added.
    Adding a table to the workflow design
  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.
    A line with an arrow connects the two screens.
    TravelRequest screen connections
  9. Double-click the Start screen to open its Screen Design page.
  10. In the Palette, select the HtmlView control and click the Start screen.
    The HtmlView control is added to the Start screen design.
    Start screen with HtmlView control
  11. Click Flow Design.
  12. In the Flow Design, select the Client-initiated screen.
    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. If the Properties view does not open, right-click the Client-initiated screen and select Show Properties View.
    Client-initiated screen properties
  13. In the Properties view, create a new key for the Start screen:
    1. In the Properties view, in Keys, click New.
    2. Enter these values:
      • NameIntroKey
      • Typestring
    3. Click OK.
      The new key, IntroKey, is added to the list of keys in the Properties view.
      Introkey properties
  14. Define the default value for the new key:
    1. In the Mobile Workflow Forms editor, click the Screen Design tab.
    2. If the Start Screen is not selected, select Start Screen in the screen selection control above the Screen Design.

      Select Start screen
    3. In the Start Screen, select the HtmlView control to display its properties.
    4. In Properties view, click the Key control and select IntroKey.
    5. In Default value, enter the message code:
      <H2>Travel Request App</H2>This application enables vacation requests to be sent for approval<br>.

      Introkey data binding
  15. View the current parameter settings of the TravelRequest screen:
    1. In the screen selection control above the Screen Design page, change the screen to TravelRequest_create.

      Select Travel screen
    2. In the menu, select the Create operation to display its properties.
    3. In Properties, click Parameter Mappings.
      The parameter mapping table shows the mobile business object parameters for the operation and their keys.
      TravelRequest_create parameters
  16. Save the travelrequest workflow form.