Kapitel 6 Flashcards
Welche Web-Technologien benutzt der Hybrid Web Container?
Hybrid Web Container uses:
- HTML
- CSS
- JavaScript
These web technologies make it easy for you to customize the generated files by using JavaScript code
Wie wird der HTML-Code bzgl. Seiten unterteilt und wie kann man den generierten HTML-Code bearbeiten?
The generated HTML files contain all screens for the workflow app, each in their own <div> section of the
document
- Files can be opened with third-party Web development tools and modified
- Any changes made using a third-party tool will be overwritten if generated from the Mobile Workflow deployment tool
- Mobile Workflow Forms Editor includes a HTMLView control that can be placed on a screen, and in which custom HTML
code can be inserted - Will be published in-line when the file is re-generated
Welche CSS-Library wird verwendet und welche Plattformen verwenden dann doch etwas anderes?
jQueryMobile CSS file is embedded as the default look-andfeel for iOS, BlackBerry 6, and Android
- Windows Mobile and BlackBerry 5 uses a different CSS library
Can select from the variety of themes within the jQueryMobile framework or use your own CSS rules for skinning pages and
screen elements
- These can be device specific
- You can use your own CSS
Welche Datei steht für eigene JavaScript-Funktionen zur Verfügung?
Customization points have been provided in custom.js to allow modifications
- Customization of the HTML page can be executed using embedded JavaScript in these customization points
Additional custom JavaScript files can be added to the Mobile Workflow package
Welche Dateien werden generiert für den Mobile Workflow?
Files created each time a generate is performed:
- manifest.xml
- A compilation of all resources used in the application
- .zip
- The deployment unit for the application
- This is what is actually deployed to the device
Files re-created for a generation:
- workflow.html (Container of all screens in the workflow app, each in their own <div>
section of the document)
- workflow_CustomLookAndFeel.html (Same as above, but for BlackBerry 5.0 devices)
- workflow_jQueryMobileLookAndFeel.html (Same as above, but for iOS, Android and BlackBerry 6.0 devices)
- WorkflowClient.xml (Mappings between the keys and the MBO parameters, operations and attributes)
- Resources.js (Functions to determine the locale – do not edit)
- Workflow.js (Internal functions called by the generated code – do not edit)
Re-Created if the file does NOT exist:
- API.js (Public functions that can be called by the developer, Recommend you do not edit this file)
- Utils.js (Internal workflow functions, Recommend you do not edit this file)
- All * css files
- Custom.js
- WorkflowMessage.js (objects that allow you to easily view and manipulate the contents of the in-memory data that the workflow application is using)
Wie ist Custom.js aufgebaut?
Contains pre-defined customization points (function stubs) that can be coded with JavaScript: WorkflowLoad, Submit,
NavigateForward, NavigateBackward, ShowScreen, MenuItemClick, Save
- Each customization point has a Before and After version, i.e. BeforeWorkflowLoad
- Before methods return a boolean
- If true, the default behavior is executed, i.e. NavigateForward (next screen)
- If false, the default behavior is replaced with the developers custom code
Welche Schritte sind notwendig für ein Server-initiated Lookup?
Online lookup can also be added to server-initiated workflow applications
The Object Query will be automatically generated:
- Create an MBO with one load parameter
- Map the parameter as a propagate-to attribute
- Then assign the MBO to a cache group that uses an Online policy
Wozu dient der On-Device-Result-Cache?
- When value is non-zero, the results of the query will be cached and encrypted in a cache on the device
- Subsequent requests using the same parameter values will use the results from the cache rather than a new result set retrieved from the server
- The contents of the cache can be cleared through custom code, either selectively or entirely
- Can now specify a timeout value when making an online request that invokes an object query
- Formerly referred to as “synchronous submit”
Was ist lokalisierbar?
The following can be localized in a Workflow application:
- Screens
- Screen Controls
- Menu items
Localization is accomplished by defining conversion instructions within a locale properties file
Lokalisierung geschieht im Workflow-Forms-Editor in einem separaten Tab (Localization) und wird in einem separaten Properties-File abgespeichert.
Language, Country, Variant können angegeben werden.
Application names can not begin with a numeric
Combination Requirements:
- If you add a locale that includes a country, must also include
the locale that contains only the language
- If you add locale that includes a variant, must also include a locale with the language and country
Wie kann Authentifizierung im FlowDesign aktiviert werden?
Static certificate-based authentication can be specified at design-time (Click Generate from Certificate to display Picker dialog)
UND:
Create a menu item on a workflow screen
- Select the “Select Certificate” type to allow the user to display and choose an X.509 certificate
- The screen is automatically created that allows the user to select which certificate to use