[wso2con eu 2017] an overview of ballerina composer
TRANSCRIPT
![Page 1: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/1.jpg)
Architect/Associate Director, WSO2
An Overview of Ballerina Composer
Joseph Fonseka
![Page 2: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/2.jpg)
Ballerina is a textual and a graphical language.
2
![Page 3: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/3.jpg)
Why graphical ?
3
![Page 4: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/4.jpg)
Java
![Page 5: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/5.jpg)
Ballerinafunction main(string[] args) { endpoint<http:HttpClient > UserAPI { create http:HttpClient("http://londoni.com/users",{}); } endpoint<http:HttpClient > EmployeeAPI { create ttp:HttpClient("http://londoni.com/employe",{}); } http:Response person; http:Request employee; person,_ = UserAPI.get(args[0], {}); employee.setStringPayload(person.getStringPayload()); _,_ = EmployeeAPI.post(args[1], employee);}
![Page 6: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/6.jpg)
Ballerina Visually
![Page 7: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/7.jpg)
Graphical Syntax
7
![Page 8: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/8.jpg)
Function
![Page 9: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/9.jpg)
Statement
![Page 10: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/10.jpg)
Block Statement
![Page 11: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/11.jpg)
Workers
![Page 12: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/12.jpg)
Worker Messaging
![Page 13: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/13.jpg)
Endpoint
![Page 14: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/14.jpg)
Service
![Page 15: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/15.jpg)
Struct
![Page 16: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/16.jpg)
Composer is a tool to editBallerina programs graphically and
textually
16
![Page 17: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/17.jpg)
• Comes with Ballerina tools distribution
• Run composer with the following command– <ballerina_home>/bin/composer
• Access http://localhost:9091 in your browser
How to Install ?
![Page 18: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/18.jpg)
•
Composer
![Page 19: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/19.jpg)
Components
![Page 20: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/20.jpg)
Graphical Editor
![Page 21: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/21.jpg)
• Constructs– Services & Main– Top Level constructs– Statements
• Current Package• Connectors• Library
Tool Palette
![Page 22: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/22.jpg)
Textual Editor
![Page 23: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/23.jpg)
Split View
![Page 24: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/24.jpg)
Swagger Editor ( API Design )
![Page 25: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/25.jpg)
Transformer
![Page 26: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/26.jpg)
• Language Server Protocol implementation for Ballerina.– https://langserver.org/
Ballerina Language Server
![Page 27: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/27.jpg)
• Code completion– In scope variables– Functions– Connectors & Actions– Keywords
• Code snippet support
Language Server Features
![Page 28: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/28.jpg)
Launcher
![Page 29: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/29.jpg)
Try It
![Page 30: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/30.jpg)
Debugger
![Page 31: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/31.jpg)
Ballerina Composer on Cloud
31
![Page 32: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/32.jpg)
Composer on Cloud
![Page 33: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/33.jpg)
• Complete the Language server to work with other clients. ( ie. VSCode, Eclipse )
• Built in tools for special integration scenarios ( ie. Data Integration )
• Ship with electron and will work as a desktop editor.
Future
![Page 34: [WSO2Con EU 2017] An Overview of Ballerina Composer](https://reader031.vdocuments.us/reader031/viewer/2022022415/5a64910b7f8b9a2c568b5c67/html5/thumbnails/34.jpg)
• GitHub – https://github.com/ballerinalang/composer
• More Info– https://ballerinalang.org/
• Technologies.
Contribute
ReactJS
Images from https://en.wikipedia.org