- Install Ballerina using windows installer.
- Open cmd or powershell.
- Clone this scripts.
git clone https://gist.github.com/e606661be03d7045be973868b9e9ed67.git wintests
. cd
towintests
.- run
test
command.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ballerina/io; | |
// Type Nodes | |
type Node record { | |
string kind; | |
string value; | |
}; | |
type NodeA record { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ballerina/io; | |
public type Element object { | |
public function accept(Visitor visitor); | |
}; | |
public class ConcreteElementA { | |
*Element; | |
public function accept(Visitor visitor) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.wso2.bpmn.helloworld.v2; | |
import org.activiti.engine.delegate.DelegateExecution; | |
import org.activiti.engine.delegate.JavaDelegate; | |
/** | |
* Hello World Service Task - Version 2. | |
*/ | |
public class HelloWorldServiceTaskV2 implements JavaDelegate { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.wso2.bpmn.helloworld.v1; | |
import org.activiti.engine.delegate.DelegateExecution; | |
import org.activiti.engine.delegate.JavaDelegate; | |
/** | |
* Hello World Service Task- V1. | |
*/ | |
public class HelloWorldServiceTaskV1 implements JavaDelegate { | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.deployer.bpel.carbon.wso2.org" xmlns:xsd="http://types.services.deployer.bpel.carbon.wso2.org/xsd"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<ser:uploadService> | |
<ser:fileItems> | |
<!--Optional:--> | |
<xsd:dataHandler>UEsDBAoAAAAIAEyOIkRwFzFB2gQAAKIUAAAZAAAAQ2xpZW50LXNvYXB1aS1wcm9qZWN0LnhtbNVY | |
bW/bNhD+3l+h6btNO0WHQLAdpGmKDliTok3XAkUxMNLZ4SaTKknFMYr9992JFCUmTmx32YZ8MGCS | |
c2RsUEsBAhQDCgAAAAgATI4iRBvrzEtPAQAAUgQAAAoAAAAAAAAAAAAAAKSBWBMAAGRlcGxveS54 | |
bWxQSwUGAAAAAAYABgB3AQAAzxQAAAAA</xsd:dataHandler> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<htd:humanInteractions | |
xmlns:htd="http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803" | |
xmlns:htt="http://docs.oasis-open.org/ns/bpel4people/ws-humantask/types/200803" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
xmlns:tns=”http://www.example.com/simpleTask” targetNamespace="http://www.example.com/simpleTask" | |
xsi:schemaLocation="http://docs.oasis-open.org/ns/bpel4people/ws-humantask/200803 | |
http://docs.oasis-open.org/bpel4people/ws-humantask.xsd | |
http://docs.oasis-open.org/ns/bpel4people/ws-humantask/types/200803 | |
http://docs.oasis-open.org/bpel4people/ws-humantask-types.xsd"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<api xmlns="http://ws.apache.org/ns/synapse" name="Transform" context="/Transform"> | |
<resource methods="POST"> | |
<inSequence> | |
<property name="messageType" value="application/json" scope="axis2"></property> | |
<log level="custom"> | |
<property name="Status" expression="json-eval($.StockQuotes.Stock)"></property> | |
</log> | |
<filter source="json-eval($.StockQuotes.Stock.Symbol)" regex="null"> | |
<then> | |
<payloadFactory media-type="json"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<proxy xmlns="http://ws.apache.org/ns/synapse" | |
name="EchoUTBasicProxy" | |
transports="https,http" | |
statistics="disable" | |
trace="disable" | |
startOnLoad="true"> | |
<target> | |
<inSequence> | |
<log level="custom" separator="," description="Log"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<proxy xmlns="http://ws.apache.org/ns/synapse" | |
name="EchoUTDynamicProxy" | |
transports="https,http" | |
statistics="disable" | |
trace="disable" | |
startOnLoad="true"> | |
<target> | |
<inSequence> | |
<log level="full"/> |
NewerOlder