Package org.jbpm.process.workitem.owm
Class CurrentWeatherWorkitemHandler
- java.lang.Object
-
- org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler
-
- org.jbpm.process.workitem.owm.CurrentWeatherWorkitemHandler
-
- All Implemented Interfaces:
org.kie.api.runtime.process.WorkItemHandler
@Wid(widfile="CurrentWeatherDefinitions.wid",name="CurrentWeather",displayName="CurrentWeather",defaultHandler="mvel: new org.jbpm.process.workitem.owm.CurrentWeatherWorkitemHandler(\"apiKey\")",documentation="openweathermap-workitem/index.html",category="openweathermap-workitem",icon="CurrentWeather.png",parameters={@WidParameter(name="CityName",required=true),@WidParameter(name="CountryCode")},results=@WidResult(name="CurrentWeatherData",runtimeType="org.jbpm.process.workitem.owm.CurrentWeatherData"),mavenDepends=@WidMavenDepends(group="org.jbpm.contrib",artifact="openweathermap-workitem",version="7.65.0-SNAPSHOT"),serviceInfo=@WidService(category="Weather Info",description="Retrieve weather info using OpenWeatherMap",keywords="openweathermap,weather,current",action=@WidAction(title="Get current weather information for a location"),authinfo=@WidAuth(required=true,params="apiKey",paramsdescription="OpenWeatherMap api key",referencesite="https://openweathermap.org/appid"))) public class CurrentWeatherWorkitemHandler extends org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler
-
-
Constructor Summary
Constructors Constructor Description CurrentWeatherWorkitemHandler(String apiKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abortWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager manager)
void
executeWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager workItemManager)
void
setOWM(net.aksingh.owmjapis.core.OWM owm)
-
-
-
Constructor Detail
-
CurrentWeatherWorkitemHandler
public CurrentWeatherWorkitemHandler(String apiKey)
-
-
Method Detail
-
executeWorkItem
public void executeWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager workItemManager)
-
abortWorkItem
public void abortWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager manager)
-
setOWM
public void setOWM(net.aksingh.owmjapis.core.OWM owm)
-
-