Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-edp committed Aug 18, 2023
1 parent d35aa13 commit 9f29868
Show file tree
Hide file tree
Showing 39 changed files with 4,569 additions and 789 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<groupId>com.axonivy.connector.srf.weather</groupId><!-- your group id: e.g. com.axonivy.connector.<myconnector> or com.axonivy.utils.<myutil> -->
<name>srf-weather-connector</name><!-- fill your product name -->
<artifactId>srf-weather-connector-modules</artifactId><!-- fill your product name + a "-modules" postfix -->
<version>11.1.0-SNAPSHOT</version><!-- identicate your minimal compliant ivy version with the first 2 digits -->
<version>10.0.0-SNAPSHOT</version><!-- identicate your minimal compliant ivy version with the first 2 digits -->
<packaging>pom</packaging>

<modules>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
2 changes: 1 addition & 1 deletion srf-weather-connector-demo/config/variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# You can define here your project Variables.
#
Variables:
# myVariable: value
# value: value"
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
Data #class
com.axonivy.connector.srf.weather.connector.demo #namespace
geolocation ch.srgssr.api.srf.meteo.v2.client.GeolocationNamesSearch #field
geolocation PERSISTENT #fieldModifier
forcastPointWeek ch.srgssr.api.srf.meteo.v2.client.ForecastPointWeek #field
forcastPointWeek PERSISTENT #fieldModifier
day ch.srgssr.api.srf.meteo.v2.client.DayForecastInterval #field
day PERSISTENT #fieldModifier
location com.axonivy.connector.srf.weather.connector.demo.Location #field
location PERSISTENT #fieldModifier
srfWeatherForcastData com.axonivy.connector.srf.weather.connector.srfWeatherForecastData #field
srfWeatherForcastData PERSISTENT #fieldModifier
6 changes: 3 additions & 3 deletions srf-weather-connector-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.connector.srf.weather</groupId>
<artifactId>srf-weather-connector-demo</artifactId>
<version>11.1.0-SNAPSHOT</version>
<version>10.0.0-SNAPSHOT</version>
<packaging>iar</packaging>
<dependencies>
<dependency>
<groupId>com.axonivy.connector.srf.weather</groupId>
<artifactId>srf-weather-connector</artifactId>
<version>11.1.0-SNAPSHOT</version>
<version>10.0.0-SNAPSHOT</version>
<type>iar</type>
</dependency>
</dependencies>
Expand All @@ -19,7 +19,7 @@
<plugin>
<groupId>com.axonivy.ivy.ci</groupId>
<artifactId>project-build-plugin</artifactId>
<version>11.1.0</version>
<version>10.0.6</version>
<extensions>true</extensions>
</plugin>
</plugins>
Expand Down
55 changes: 55 additions & 0 deletions srf-weather-connector-demo/processes/srfWeatherForecastDemo.p.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"format" : "10.0.0",
"id" : "189FE26D94E3ECBA",
"config" : {
"data" : "com.axonivy.connector.srf.weather.connector.demo.Data"
},
"elements" : [ {
"id" : "f0",
"type" : "RequestStart",
"name" : "start.ivp",
"config" : {
"callSignature" : "start",
"outLink" : "start.ivp",
"tags" : "demo"
},
"visual" : {
"at" : { "x" : 96, "y" : 64 }
},
"connect" : { "id" : "f4", "to" : "f3" }
}, {
"id" : "f1",
"type" : "TaskEnd",
"visual" : {
"at" : { "x" : 352, "y" : 64 }
}
}, {
"id" : "f3",
"type" : "DialogCall",
"name" : "checkWeather",
"config" : {
"dialogId" : "com.axonivy.connector.srf.weather.connector.demo.checkWeather",
"startMethod" : "start(String,Number)",
"output" : {
"map" : {
"out" : "in",
"out.srfWeatherForcastData" : "result.srfWeatherForcastData"
}
},
"call" : {
"params" : [
{ "name" : "locationName", "type" : "String" },
{ "name" : "zip", "type" : "Number" }
],
"map" : {
"param.locationName" : "in.srfWeatherForcastData.location.locationName",
"param.zip" : "in.srfWeatherForcastData.location.zip"
}
}
},
"visual" : {
"at" : { "x" : 216, "y" : 64 }
},
"connect" : { "id" : "f2", "to" : "f1" }
} ]
}
50 changes: 0 additions & 50 deletions srf-weather-connector-demo/processes/srfweatherDemo.p.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
xmlns:pe="http://primefaces.org/ui/extensions">
<h:body>
<ui:composition template="/layouts/basic-10.xhtml">
<ui:define name="title">checkWeatherForm</ui:define>
<ui:define name="title">checkWeatherForecast</ui:define>
<ui:define name="content">

<h3>Please enter the city for which you'd like
to retrieve the weather information.</h3>
<h3>Please enter the city oder ZIP-Code for which you'd like
to retrieve the weather information. </h3>

<h:form id="form">
<p:messages />
Expand All @@ -21,9 +21,10 @@

<p:outputLabel for="dataLName" value="Location" />
<p:inputText id="dataLName"
value="#{data.data.location.locationName}"></p:inputText>
<!-- <p:outputLabel for="dataZip" value="Zip" /> -->
<!-- <p:inputText id="dataZip" value="#{data.data.location.zip}"></p:inputText> -->
value="#{data.srfWeatherForcastData.location.locationName}"></p:inputText>
<p:outputLabel for="dataZip" value="Zip" />
<p:inputText id="dataZip"
value="#{data.srfWeatherForcastData.location.zip}"></p:inputText>
</p:panelGrid>


Expand All @@ -40,18 +41,18 @@
styleClass="ui-panelgrid-blank ui-fluid"
columnClasses="ui-g-12 ui-md-12 ui-lg-12">

<h:outputText value="#{data.data.location.locationName}"
<h:outputText value="#{data.srfWeatherForcastData.location.locationName}"
style="font-weight: bold; font-size: 30px" />

</p:panelGrid>

<p:panelGrid columns="1" layout="grid"
rendered="#{data.data.day.symbolCode != null ? true : false}"
rendered="#{data.srfWeatherForcastData.day.symbolCode != null ? true : false}"
styleClass="ui-panelgrid-blank ui-fluid"
columnClasses="ui-g-12 ui-md-12 ui-lg-12">

<p:dataTable id="theTable" widgetVar="theTable"
value="#{data.data.forcastPointWeek.days}" var="day" rows="7"
value="#{data.srfWeatherForcastData.forcastPointWeek.days}" var="day" rows="7"
emptyMessage="Keine Daten verfügbar">


Expand Down Expand Up @@ -87,18 +88,6 @@
</p:column>

<p:column headerText="">
<!-- <table style="border: none; border-collapse: collapse;"> -->
<!-- <tr style="border: none;"> -->
<!-- <td -->
<!-- style="text-align: right; width: 60px; padding: 0px; border: none;"><h:graphicImage -->
<!-- name="images/Meteo-API-Icons/#{day.symbolCode}.svg" -->
<!-- width="60" height="60" /></td> -->
<!-- <td style="border: none;"><h:outputText -->
<!-- value="min: #{day.getTNC()}°" /><br /> <h:outputText value="max: #{day.getTXC()}°" /> -->
<!-- </td> -->

<!-- </tr> -->
<!-- </table> -->

<table style="align: left">
<tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
checkWeatherData #class
com.axonivy.connector.srf.weather.connector.demo.checkWeather #namespace
srfWeatherForcastData com.axonivy.connector.srf.weather.connector.srfWeatherForecastData #field
srfWeatherForcastData PERSISTENT #fieldModifier
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"format" : "10.0.0",
"id" : "18A0758E68F62B82",
"kind" : "HTML_DIALOG",
"config" : {
"data" : "com.axonivy.connector.srf.weather.connector.demo.checkWeather.checkWeatherData"
},
"elements" : [ {
"id" : "f0",
"type" : "HtmlDialogStart",
"name" : "start(String,Number)",
"config" : {
"callSignature" : "start",
"result" : {
"params" : [
{ "name" : "srfWeatherForcastData", "type" : "com.axonivy.connector.srf.weather.connector.srfWeatherForecastData" }
],
"map" : {
"result.srfWeatherForcastData" : "in.srfWeatherForcastData"
}
},
"guid" : "18A0758E68F275E0",
"input" : {
"params" : [
{ "name" : "locationName", "type" : "String" },
{ "name" : "zip", "type" : "Number" }
]
}
},
"visual" : {
"at" : { "x" : 96, "y" : 64 }
},
"connect" : { "id" : "f2", "to" : "f1" }
}, {
"id" : "f1",
"type" : "HtmlDialogEnd",
"visual" : {
"at" : { "x" : 224, "y" : 64 }
}
}, {
"id" : "f3",
"type" : "HtmlDialogEventStart",
"name" : "close",
"config" : {
"guid" : "18A0758E6906B548"
},
"visual" : {
"at" : { "x" : 96, "y" : 160 }
},
"connect" : { "id" : "f5", "to" : "f4" }
}, {
"id" : "f4",
"type" : "HtmlDialogExit",
"visual" : {
"at" : { "x" : 224, "y" : 160 }
}
}, {
"id" : "f6",
"type" : "HtmlDialogEventStart",
"name" : "getWeather",
"config" : {
"guid" : "18A07596251FA920"
},
"visual" : {
"at" : { "x" : 104, "y" : 264 }
},
"connect" : { "id" : "f9", "to" : "f7" }
}, {
"id" : "f7",
"type" : "SubProcessCall",
"name" : "srfWeatherForecast",
"config" : {
"processCall" : "srfWeatherForecast:call(Number,String)",
"output" : {
"map" : {
"out" : "in",
"out.srfWeatherForcastData" : "result.srfWeatherForecastData"
}
},
"call" : {
"params" : [
{ "name" : "zip", "type" : "Number" },
{ "name" : "locationName", "type" : "String" }
],
"map" : {
"param.zip" : "in.srfWeatherForcastData.location.zip",
"param.locationName" : "in.srfWeatherForcastData.location.locationName"
}
}
},
"visual" : {
"at" : { "x" : 248, "y" : 264 }
},
"connect" : { "id" : "f10", "to" : "f8" }
}, {
"id" : "f8",
"type" : "HtmlDialogEnd",
"visual" : {
"at" : { "x" : 392, "y" : 264 }
}
} ]
}

This file was deleted.

Loading

0 comments on commit 9f29868

Please sign in to comment.