lightning connect で外部データにリアルタイムにアクセス

Post on 17-Jul-2015

432 Views

Category:

Technology

5 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Go Faster with Lightning :

Lightning Connect で 外部データにリアルタイムにアクセス 2015年4月22日

Mitsuhiro Okamoto Developer Programs Manager

mokamoto@salesforce.com

アジェンダ

▪  Lightning Connect概要 ▪  Odataとは ▪  デモ ▪  ロードマップ ▪  Apex Connectorライブラリ ▪  Q & A

Safe Harbor

Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, risks associated with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal quarter ended July 31, 2011. This document and others are available on the SEC Filings section of the Investor Information section of our Web site. Any unreleased services or features referenced in this or other press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.

Lightning Connect概要

Lightning Connectとは?

▪  Winter ’15より正式リリース – 利用には追加機能ライセンス

▪  データをコピーせずに統合する機能を提供する

▪  外部データへシンプルにポイント & クリックでアクセス

▪  データを保存しないので、データレジデンシーの問題を回避

▪  バックオフィスとの連携にかかる開発期間を大幅に低減

どのようにLightning Connectは動作するか?

▪  データアクセスはオンデマンド / リアルタイム

▪  データアクセスは常に参照

▪  データはSalesforce Objectに変換されてユーザに提供される

▪  オープンで業界標準なアクセスプロトコルを採用

どんな外部データソースをサポートしているか?

Open Data (OData) 2.0をサポートするすべてのデータソースで利用可能

▪  一般的なサービス –  SAP NetWeaver ゲートウェイ

–  Microsoft SQLサーバ, Dynamics CRM/NAV, Azureテーブルサービス

–  IBM Websphere exTreme Scale

–  Heroku Connect External Objects

▪  自作のデータプロデューサ –  .Net WCF データサービス, Java (Apache Olingo, odata4j), NodeJS

▪  パートナーから提供されるもの –  Dell Boomi, Informatica, Jitterbit, MuleSoft, Progressive, SoftwareAG

Open Data Protocol (OData)

“Odataはデータを作成や更新を行うAPIのための 標準化されたプロトコルです

OdataはコアのHTTPなどのプロトコルおよびRESTのような一般的に受け入れられている方法論に基づいています

そしてデータを公開するためのAPIとして

必要な機能を全て備えています”

OData

Microsoftによる提案 – 2009

OASISによって標準化 – 2014

OData

リソースに対するURI

http://host/service

/Products

?$filter=Rating+eq+3&$select=Rating,+Name

OData

AtomのXML/JSON表現を踏襲

Odata例

Service Document $ curl 'http://host/service/'

{

"@odata.context": "http://host/service/$metadata",

"value": [

{

"kind": "EntitySet",

"name": "Products",

"url": "Products"

},

...

OData例

Metadata (XML Only ☹) $ curl 'http://host/service/$metadata'

<?xml version="1.0" encoding="utf-8"?>

<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">

<edmx:DataServices>

<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="ODataDemo">

<EntityType Name="Product">

<Key>

<PropertyRef Name="ID"/>

</Key>

<Property Name="ID" Type="Edm.Int32" Nullable="false"/>

<Property Name="Name" Type="Edm.String"/>

...

OData例

Query $ curl 'http://host/service/Products?$filter=Rating+eq+3&$select=Rating,+Name'

{

"@odata.context": "http://host/service/$metadata#Products(Rating,Name)",

"value": [

{

"Name": "Milk",

"Rating": 3

},

...

OData例

特定のエントリを取得 $ curl 'http://host/service/Products(1)'

{

"@odata.context": "http://host/service/$metadata#Products/$entity",

"ID": 1,

"Name": "Milk",

"Description": "Low fat milk",

"ReleaseDate": "1995-10-01T00:00:00Z",

"DiscontinuedDate": null,

"Rating": 3,

"Price": 3.5

}

OData例

エントリを更新

$ curl -w "Status: %{http_code}\\n” \

-H 'Content-Type: application/json' \

-X PATCH \ -d '{"@odata.type":"ODataDemo.Product", "Price":"2.99"}' \

'http://host/service/Products(1)’

Status: 204

OData例

Change Tracking Server will POST notifications to the callback URL

$ curl -H 'Prefer: odata.track-changes' -H 'Prefer: odata.callback; url="https://myserver/cb?token=123"'

'http://host/service/Products'

Lightning Connect Demo

外部オブジェクト≒カスタムオブジェクト

✓  タブ

✓  リストビュー

✓  詳細ページ

✓  Chatterフィード

✓  Visualforceページ上の標準もしくはカスタムコントローラ

✓  Apex SObject タイプ

✓  REST/SOAP API アクセス

✓  ApexやAPIからのSOQL および SOSL クエリ

✓  Salesforce1 モバイルプラットフォームからのアクセス

現在幾つかの制限がある

✗  現在はRead-only (read/write はパイロット)

✗  レポート(2015年後半に利用可能になる予定)

✗  数式と積み上げ集計

✗  トリガ、ワークフロー、承認、プロセス

✗  検証ルール

✗  項目履歴管理

✗  ノート、添付

Lightning Connectロードマップ

§  Spring ‘15 で、読み込み専用アクセスがGA

§  Spring ’15 でのパイロット、Summer ‘15でGAになるもの –  リアルタイム X-Orgアクセス

–  Apex コネクタライブラリによるカスタムコネクタの開発

§  読み込み/書き込み 機能

§  その先* –  OData 4.0 - トリガのサポート

–  外部オブジェクトのカスタムレポート

§  * Safe Harbor

Apex Connector Framework

Apex Connector Framework

❏  Lightning Connect用のカスタムアダプタをApexで開発できる

❏  取得したデータは外部オブジェクトとして動作

❏  データサービス用の独自の実装を提供する

❏  Sync - 外部データソースからのメタデータの同期

❏  Query – SOQLクエリを外部データサービスへ変換する

❏  Search - SOSL検索を外部データサービスへ変換する

❏  Summer ’15で正式リリース。LC追加ライセンスに含まれる

❏ Developer Edition組織で有効化

Apex Connector Demo

もっと見る

http://developer.salesforce.com/lightning

オンラインのチュートリアル

http://bit.ly/jp-connect

コミュニティを利用する

Success Community Group - Official: Lightning Connect

developer.salesforce.com/page/JP:Salesforce1_Lightning_Webinar_Series

•  Lightning App Builder

•  Lightning Component Framework

•  Lightning Process Builder

•  Lightning Connect

Lightning Deep Dive Webinars

Questions?

ありがとうございました

top related