• No results found

Sybase Unwired Platform Development Paradigm

N/A
N/A
Protected

Academic year: 2021

Share "Sybase Unwired Platform Development Paradigm"

Copied!
12
0
0

Loading.... (view fulltext now)

Full text

(1)

white paper

Sybase

®

Unwired Platform

(2)

taBLe OF CONteNtS

Sybase Unwired Platform ...1

Mobile Application Development ... 2

Mobile Business Object (MBO) Development ... 3

Mobile Business Objects (MBOs) ...4

Mobile Business Object Development in Eclipse ... 5

Device Application Development ... 5

Container-based Development (Mobile Workflows) ...6

SAP Workflow Mobilized Using Sybase Unwired Platform ... 7

Native Application Development ... 7

Production Application Development — Custom Development Using the Object API ...8

Rapid Prototype Development — Device Application Designer ...9

(3)

SyBaSe UNwired pLatFOrm

Sybase Unwired Platform is a flexible, open infrastructure that addresses the challenge of creating and managing multiple mobile applications that securely connect heterogeneous back-end data sources to major mobile device types (See Figure 1). This mobile enterprise application platform enables you to respond strategically as your device type and data source needs evolve, whether because of acquisitions, system refreshes or mobile device technology changes.

Sybase Unwired Platform main components are:

• Sybase Unwired Workspace, which allows modeling of Mobile Business Objects

• Mobile Workflow Forms Designer, which provides quick mobilization of business processes without coding • Device Application Designer, which enables developers to create prototype mobile applications using code

generation approach

• Sybase Control Center, which allows administrators to administer, manage and monitor Sybase Unwired Platform • Sybase Unwired Server, which is the middleware component providing the runtime infrastructure

The key technical features of the Sybase Unwired Platform include:

• Heterogeneous native device development: iPhone®/iPad™, Windows Mobile, Windows 32 laptops/tablets, BlackBerry® • Codeless development for workflow applications: iPhone/iPad, Windows Mobile

• 4GL Rapid Application Development (RAD) tooling and data source integration

• Out-of-the-box integration with enterprise applications (SAP®, databases, and so on) and a full Web services stack • Mobilization of multiple applications and business processes

• Integrated device management and security

Figure 1.

Management Console Control Device and server management and security

BlackBerry iPhone iPad Windows Windows Mobile Consume Heterogeneous mobile devices Connect Heterogeneous data sources Create Eclipse Databases Web Services Software Applications Mobile Business Objects Workflows Native Applications

(4)

mOBiLe appLiCatiON deveLOpmeNt

When developing mobile applications, you must primarily address data and its associated synchronization, the device-resident presentation and business logic. The Sybase Unwired Platform provides the tools developers need to focus on each of these requirements. At the root of the Sybase Unwired Platform development paradigm is the separation between:

• Modeling the data tier and its link with the enterprise information system (EIS). and

• The user interface and business logic of the application.

Sybase Unwired Platform provides tools that enable mobile application development in both these domains (see Figure 2). To address the data aspects of the mobile application, Sybase Unwired Platform uses mobile business objects (MBO). “MBO development” refers to defining object data models with back-end EIS connections, attributes, operations and relationships that allow filtered data sets to be synchronized to the device. This aspect of Sybase Unwired Platform development is supported within Eclipse.

The development tasks associated with the user interface and logic are supported in two paradigms. • The first paradigm involves building native applications using programming languages native to a mobile

operating system in an integrated development environment (IDE) using the generated API.

• The second paradigm involves a codeless container-driven approach, in which metadata drives the application interface and logic.

Depending on the application requirements and complexity of the use case, developers can use any of these approaches to build a mobile application. This paper will help you understand how to develop mobile applications with Sybase Unwired Platform using each of these approaches.

Figure 2. Develop Mobile Business Objects Deploy Mobile Business Objects to Unwired Server Generate Device Object Code

Sybase Unwired Platform Development Task Flow

Sybase Unwired Platform Development Tools

Develop Device Application Generate and Customize Device Application Native Code Test on Emulator and/or Device

Unwired WorkSpace Device Application Development Tool (Eclipse)

Unwired WorkSpace Workflow Development Tool (Eclipse) Native Device Application Development Tools Windows Mobile

BlackBerry – IDE, Eclipse IDE Plug-in Windows – Eclipse, Visual Studio

Windows Mobile – Visual Studio iPhone – Xcode

iPhone Windows Mobile iPad

BlackBerry Unwired WorkSpace Mobile

Business Object Development Tool (Eclipse)

BlackBerry

Java Objective CiPhone Windows

(5)

mOBiLe BUSiNeSS OBjeCt (mBO) deveLOpmeNt

Sybase Unwired Platform includes the Eclipse development environment, which contains tools designed for MBO development, testing and deployment. As mentioned previously MBO development refers to defining object data models with back-end EIS connections, attributes, operations and relationships that allow filtered data sets to be synchronized to the device (Figure 3). The tools in Eclipse support online and offline access to data mobilization, applications, services and processes.

Figure 3.

The development approach to back-end mobile data models can be either “top-down” or “bottom-up.” A top-down approach creates the MBO based on what the client wants to use, then eventually binds to the data source. The bottom-up approach uses the data source to create the MBO.

1. Connect to back-end data sources. 2. Connect to Sybase Unwired Server. 3. Create mobile application projects.

4. Create MBO attributes and “create, update and delete” (CUD) operations. 5. Attach MBOs to back-end data sources.

6. Edit, rename, delete, move, copy, group and view MBOs.

7. Perform additional MBO design activities — create logical roles, search, and so on. 8. Deploy MBOs to Sybase Unwired Server.

Subset Personalize Mobilize

(6)

mOBiLe BUSiNeSS OBjeCtS (mBOs)

MBOs encapsulate business process logic and data into a reusable unit. Again, to create MBOs, you have two development options: the top-down approach or the bottom-up approach.

To use a top-down development approach, use the Mobile Application Diagram and palette, as shown in Figure 4, which will launch a set of wizards that create MBOs with operations and attributes. When you are ready, bind the MBO to its data source.

If you are using the bottom-up approach, drag and drop a data source to create the MBO directly from the data source with immediate binding. You can either define MBO attributes and operations without immediately binding them to a data source, or you can define them from and bind them to a data source.

At some point in the development process, you must bind the attributes and operations that define an MBO to a data source. If you already have a connection to the data source through a connection profile, you can quickly generate attribute and operation bindings based on the data source. However, if you do not yet have access to the required data source, you can define the MBO, and later bind the operations and attributes to the data source.

The difference between the two development approaches is when you create and bind the attributes and operations. You can either create an MBO and bind to a data source immediately, or you can defer data source binding.

You have two options for creating an MBO and binding to a data source immediately:

1. Drag and drop the data source onto the Mobile Application Diagram, which launches the appropriate wizards and automatically creates bindings based on the selected data source.

2. Create an MBO and its operations and attributes using the Mobile Application Diagram and palette that launches a set of wizards and allows you to bind them directly to a data source.

(7)

To create an MBO and defer data source binding:

1. Create an MBO and its operations and attributes using the Mobile Application Diagram and palette. After you define the data source, bind the MBO to it from the Properties view.

2. Create attributes and operations for mobile business objects, create relationships between mobile business objects, bind them to a back-end data sources, and modify and test them.

The last step in the MBO development process is to create a deployment package that contains the mobile

application, including mobile business objects, role mappings, server connection mappings and other mobile business object-related artifacts.

Once your development package is complete, deploy it to Sybase Unwired Server. Optionally, you can create a deployment profile that enables you to manage multiple deployment packages.

mOBiLe BUSiNeSS OBjeCt deveLOpmeNt iN eCLipSe

Sybase Unwired WorkSpace works like a plug-in to your Eclipse development environment. Experienced Eclipse developers are familiar with the consistent use of windows, explorers, views, wizards and preferences. Developers new to Eclipse can use the online help, cheat sheets, samples and tutorials of Sybase Unwired WorkSpace to become familiar with MBO and device application development.

deviCe appLiCatiON deveLOpmeNt

Sybase Unwired Platform supports two main modes of application development when creating the user interface and logic. These two modes are container-based development and native application development.

Container-based applications are appropriate for extensions of business processes or workflows such as approvals or requests.

Native application development makes sense when: • Business logic is needed

• Device services integration is intrinsic to mobile applications • User interface expectations depend on device-specific capabilities

• No boundaries other than what is provided natively by the mobile operating system are required • Ability to evolve with mobile operating system is required

The development lifecycle for native device applications, which you can perform in parallel with back-end MBOs, includes:

1. Develop device applications 2. Generate code and application 3. Deploy application to simulator 4. Debug/test against simulator

(8)

CONtaiNer-BaSed deveLOpmeNt (mOBiLe wOrkFLOwS)

In container-based development, the application is metadata-based and the device has a single container that interprets this metadata (Figure 5). This container needs to be deployed once and from then on multiple application metadata can be deployed automatically without having to generate any code.

Figure 5.

Business processes such as alerts, time recording and travel requests require immediate action, but these messages are generally accessible only with desktop or laptop computers and may not be fulfilled in a timely manner. However, mobile workflows allow users to complete pre-defined business processes swiftly (Figure 6). Using a metadata-driven application paradigm, a Sybase Unwired Platform workflow container enables the rapid development of mobile workflows, in which existing enterprise business processes or workflows can be extended to a mobile device relatively easily so that decisions can be made at any instant on a mobile device (Figure 7).

Sybase Unwired Platform has primarily two kinds of workflow models — server-initiated and client-initiated. These models can co-exist within one package.

In the server-initiated workflow model, for example, a manager receives a request, perhaps an approval for leave. The request is initiated by a notification from the back-end system, where Sybase Unwired Platform receives e-mail or data change notification (DCN) from a master account. Sybase Unwired Platform, in turn, delivers a message to an individual device based on configured distribution and MBO extraction rules.

In the client-initiated workflow model, the user sends a message, such as an expense report. Users can open workflow forms on their mobile devices and enter data that can be used either for kicking off an enterprise workflow or continuing a step in an already executing workflow.

All of this development is enabled through a WYSIWYG design tool that binds the decisions and actions to MBOs.

Connect Data Source

Integration

Sybase

Unwired

Platform

Server

Mobile Device Container Deploy

MBO WorkflowDeploy

Sybase Unwired WorkSpace

(9)

Sap wOrkFLOw mOBiLized USiNg SyBaSe UNwired pLatFOrm

Figure 7.

Native appLiCatiON deveLOpmeNt

In native application development, the application is based on compiled code that is specific to a particular mobile operating system. An iPhone application, for example, is developed in Objective C, Windows Mobile in C# and so on. Native application development provides the most flexibility in terms of leveraging the device services to their fullest potential, but each application must be provisioned individually after compilation even for minor changes.

Developers use Sybase Unwired Platform for native application development using a standard IDE. Developers taking the standard IDE approach for native application development (Figure 8) can use the generated code based on the MBO. You will build the business logic and user interface pieces of the mobile application in your IDE of choice. iPhone uses XCode, Windows Mobile uses Visual Studio, and BlackBerry uses BlackBerry Eclipse plug-in. When it comes to building highly performing production applications, the recommended approach for building applications in SUP is using native IDE’s like XCode, and Visual Studio, to leverage the MBO API.

Employee Initiates Travel Request Manager Receives Notification Check Amount Notify Employee Notify Manager Manager Logs into WEB UI Approve Small Amounts Manager Approves/ Rejects Employee uses a Widget on Device to Initiate Travel Request Manager Receives a Workflow Notification on Device Manager Views the Details Manager Approves or Rejects Connect

Sybase

Unwired

Platform

MBO API Deploy MBO Generate Code

(10)

Optionally, developers can use Sybase Device Application Designer to develop protype applications. Device Application Designer is a RAD tool with a WYSIWYG editor that provides a graphical approach to building prototype mobile applications for Windows Mobile and BlackBerry devices. In this approach, assembling the code that enables screen rendering, control layout, and other functionality is generated by the Device Application Designer in code that is native to the platform. Developers can take this generated code and integrate their business logic using extension mechanisms native to the platform. For BlackBerry, Sybase Unwired Platform leverages the generation gap pattern for customizing generated code in a repeatable fashion. Windows Mobile is supported using partial classes. The Sybase Device Application Designer approach fits well as a development option where a prototype needs to be built for an end-to-end demonstration of mobility value proposition.

Figure 9 shows a Native Mobile Application Functional Architecture where both the designer-generated user interface and the custom-built user interface consume the Object API modeled in the Eclipse tool. In both cases, custom coding is required.

Figure 9.

prOdUCtiON appLiCatiON deveLOpmeNt — CUStOm deveLOpmeNt USiNg the OBjeCt api

To develop custom, production mobile device applications, use the Sybase Unwired Platform Client Object API, which is generated from the MBO and comes in multiple formats: .NET, Java and Objective C. You can use Visual Studio or any other tool of choice to build the application interface binding to the Client Object API.

After you have deployed MBOs, application development can proceed entirely with the Client Object API, if required. The Client Object API uses the data persistence library to access and store object data in the database on the device.

The Sybase Unwired Platform Code Generation API generates the Client Object API. This code generation takes place in Unwired WorkSpace in Eclipse. You can generate code manually or by using scripts. Unwired WorkSpace uses the Code Generation API to provide generation objects as inputs, then the Code Generation API executes using those inputs. The code generation engine applies the correct templates based on options and the MBO model, and outputs client objects.

Designer Generated Prototype

MBO Object API Layer Custom

Device Application

Generated Object API

Mobile Application

Object API Framework

Mobile OS Services Messaging

(11)

rapid prOtOtype deveLOpmeNt — deviCe appLiCatiON deSigNer

The following steps illustrate how to create a prototype device application using the Device Application Designer in the Eclipse-based Sybase Unwired Workspace.

1. Using the Flow Design page of the Device Application Designer, create a flow design for custom application screens. 2. Add and connect screens you design, as well as customized stock screens.

3. Connect the Start icon to a target screen. The Start icon appears on the Flow Design page, and its connection is attached to the first screen you add to the Flow Design. You can change the target to any screen in the Flow Design.

4. Select a device to display an empty canvas in the Screen Design page, formatted for that device. 5. Add controls to your device application screen using the Screen Design palette.

6. Generate the device application code using the Generate Device Application wizard. 7. Test using a mobile device simulator.

Figure 10.

The Device Application Designer (Figure 10) components are:

• A graphic editor that includes introduction, flow design, screen design, and source editor pages.

• A toolbar with icons to verify, generate, undo, redo, zoom, select and specify the orientation of devices and select screens.

• An outline view in thumbnail and hierarchical modes.

• A multi-tabbed properties view, in which the contents depend on the item selected from the Workbench. • Problems view to see errors and warnings in your application.

SUmmary

The flexible, open Sybase Unwired Platform infrastructure offers development teams many options to create and manage mobile applications that connect heterogeneous back-end data sources to major device types. Sybase Unwired WorkSpace provides a graphical environment for developing the data aspects of mobile applications. Device application developers can use native tools to bind to the Object API programmatically, or work in a GUI environment

(12)

Sybase, Inc.

Worldwide Headquarters One Sybase Drive Dublin, CA 94568-7902 U.S.A

References

Related documents

Online backchannel as a formative assessment in improving writing skills The interview data showed that most of the students considered online backchannel applied as

This observational study of the presentation, management and outcomes of uncomplicated UTI in primary care in four European countries involving nearly 800 well described

Therefore, most research in sport and exercise is based on Csikszentmihalyi‟s nine dimensions, through Jackson‟s early work (e.g., 1996) and subsequent development of the Flow

Sharpdesk Mobile is a powerful, cutting edge mobile scanning and printing that connects Sharp MFPs via wireless to mobile products such as iPad, iPhone, Android, Windows 8

In the response to natural disasters and humanitarian interaction between Indonesian National Army with civilian authorities (National Disaster Management Agency or

Mobile to Mobile Calling is not available (i) with fixed wireless devices with usage substantially from a single cell site, (ii) for data usage including Push to Talk calls,

A ny visitor of the Huntington Library will take note of its grandeur almost immediately, even as the thick, high shrubbery at its entrance gently ushers you in. My tour of

ordered combination of claimed steps, using unconventional rules that relate sub-sequences of phonemes, timings, and morph weight sets, is not directed to an abstract idea and