Class 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
    • Field Summary

      • Fields inherited from class org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler

        handlingProcessId, handlingStrategy, logThrownException, retries
    • 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)  
      • Methods inherited from class org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler

        findNodeInstance, handleException, handleException, setLogThrownException
    • 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)