Questions tagged [ballerina-composer]

ballerina composer is the visual editor for BallerinaLang. Ballerina composer provides the full visual parity for BallerinaLang in the form of sequence diagrams.

[DEPRECATED] The Ballerina Composer is a browser-based tool for creating your Ballerina programs. This is no longer maintained and used The Ballerina extension for Visual Studio Code.

15 questions
4
votes
1 answer

Is Ballerina ready for production?

I find Ballerina a great solution to create an api gateway layer. Is it ready for production? Is someone using it in production? Thanks Gianni
2
votes
1 answer

What is the idiomatic way to create and use Enumerations in Ballerina?

Found some evidence here that enum was supported in Ballerina at one point, but it seems to have been removed. Is anyone aware of a recommended/supported/idiomatic way to deal with enumerated values in Ballerina?
WillD
  • 875
  • 1
  • 7
  • 14
2
votes
1 answer

Is it possible to pass multiple toml config files in ballerina?

As of now in the ballerina; I have seen most of the sample listed in the document has a single toml file for the configuration. Is it possible to pass multiple toml files? If it is possible; It will be very useful to deal with multiple connectors…
Vanji
  • 1,696
  • 14
  • 23
2
votes
1 answer

What is the difference between composer in ballerina and composer used for laravel installation?

I have installed the ballerina-tools-0.95.6 some days ago. It uses composer to provide a browser based developer tool. Now I try to install laravel. The instalation guide directs me to install composer and use that to install laravel. Now I have a…
Kasthuriraajan
  • 145
  • 2
  • 15
1
vote
0 answers

How do I solve a "cannot resolve module 'ballerinax/kafka' " error in ballerina

I'm trying to import ballerinax/kafka so I can solve a kafka assignment but when I type it out, it gives me an error that says cannot resolve module 'ballerinax/kafka'
1
vote
2 answers

Can Ballerina-Composer be used with Ballerina V 1.0?

I have seen several posts about ballerina-composer. But I couldn't find a proper place to download it or docs regarding it in official site. Also checked in ballerina installed location, whether I can start it with composer.bat, but nothing worked.…
koko
  • 169
  • 1
  • 13
1
vote
2 answers

Ballerina docker image with MySQL Driver - how to

using ballerina v.1.0.1. on Mac. On host I put MySQL driver to /Library/Ballerina/ballerina-1.0.1/distributions/jballerina-1.0.1/bre/lib , run ballerine code and I was eble to connecto to DB. When I created docker image with build command and spin a…
lpastor
  • 169
  • 10
1
vote
1 answer

sequence diagrams in #ballerina

It seems that Composer is the only tool that will allow to set up structure in a ballerina program allowing you to create and edit high level logic. VScode seems to have a display function of a sequence diagram and i have not seen any sequence…
1
vote
1 answer

Run from the ballerina composer fails for port 5010

Running a simple example within the ballerina composer fails with the following exception. [2018-06-13 11:01:29,024] ERROR {org.ballerinalang.launcher.Main} - failed to connect to localhost:5010 java.lang.RuntimeException: failed to connect to…
Philipp
  • 4,645
  • 3
  • 47
  • 80
1
vote
2 answers

Ballerina: Twitter Connector : error: wso2.twitter:TwitterError, message: bad Authentication data

Getting following error when trying the twitter connector. error: wso2.twitter:TwitterError, message: bad Authentication data. at tweet.doTweet(MyTwitterService.bal:31) Following is my code doTweet(endpoint caller, http:Request request){ string…
1
vote
4 answers

Ballerina echoservice example throws an error

I've just installed Ballerina version 0.8.0 on Windows. Following the tutorial I tried the echoservice example. Launching the command from the \ballerina-0.8.0\samples\echoService folder ballerina run service echoService.bal I received this…
1
vote
2 answers

How to run a ballerina program from Composer?

I was trying to run a ballerina program from composer but I was unable to run it. There was the following error in the console. ERROR: Unable to run program, ballerina runtime cannot be found. Please set BALLERINA_HOME environment variable pointing…
Nipuna Marcus
  • 213
  • 1
  • 6
0
votes
0 answers

Ballerina Composer Try-it requests 404 but OK from external cURL or Chrome

I'm trying the Composer examples on the welcome page and when I run them, the request is 404 in the Try-it tab but if I use cURL from iTerm or a browser to the same URL, it works fine. I can run the same examples fine from VS Code as well. Is there…
0
votes
2 answers

Can't save ballerina code create using composer

when I try to save ballerina code create using composer flowing error occur. SyntaxError: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL How I solve this problem?
Gihan Chathuranga
  • 442
  • 10
  • 16
0
votes
1 answer

"Error in BLang parser rest service for composer" when run the composer

When I'm run the composer using CMD. Composer run properly.But this error appears in the console. C:\>composer 2017-07-07 23:09:05,446 INFO - Ballerina Composer URL: http://localhost:9091 2017-07-07 23:09:35,164 ERROR - Error in BLang parser rest…
Sachith Wickramaarachchi
  • 5,546
  • 6
  • 39
  • 68