Generated Mobile Workflow Files

When you generate the Mobile Workflow package files, some files are generated every time and others are generated only under certain conditions.

These files are generated every time you generate the Mobile Workflow package:
  • manifest.xml
  • <workflow_name>.zip

These files are regenerated only if the Generate option is selected in the Mobile Workflow package generation wizard:

These files are regenerated only if the Generate option is selected and the files do not exist:
  • API.js
  • Custom.js
  • Utils.js
  • WorkflowMessage.js
  • all *.css files

When you choose to generate the Mobile Workflow package into the current project, the zip file containing the Mobile Workflow application and its files is placed in the Generated Workflow folder in the project, for example, C:\Documents and Settings\<username>\workspace\<Project_Name>\Generated Workflow. They are shown in the WorkSpace Navigator. This shows the generated file structure for a project named PurchaseOrder.
mwf_generated_file_structure

The Generated Workflow\<project_name> folder contains:
  • html – this folder includes:
    • workflow.html – contains all the screens in the Mobile Workflow application, each in its own <div> section.
    • workflow_CustomLookAndFeel – contains all the screens in the Mobile Workflow application. This file is used for BlackBerry 5.0 platforms.
    • workflow_jQueryMobileLookAndFeel – contains all the screens in the Mobile Workflow application. This file is used for BlackBerry 6.0 and iOS platforms.
    • js\Custom.js – edit this file to customize the Mobile Workflow application. Since you can modify this file, it is generated only once, or when not already present in the generated files. This ensures that it is not overwritten if you subsequently re-generate the Mobile Workflow package. Examples of ways you can customize the Mobile Workflow application include the ability to:
      • Manipulate HTML elements.
      • Write code that gets called before or after generated behavior is invoked for menu items.
      • Implement custom validation logic.
  • <project_name>.zip – contains the mobile workflow application and its files, including the images, user interface, and controls