Class SpeedLimitsWorkitemHandler

  • All Implemented Interfaces:
    org.kie.api.runtime.process.WorkItemHandler

    @Wid(widfile="GoogleMapsSpeedLimitsDefinitions.wid",
         name="GoogleMapsSpeedLimits",
         displayName="GoogleMapsSpeedLimits",
         defaultHandler="mvel: new org.jbpm.process.workitem.google.maps.SpeedLimitsWorkitemHandler(\"apiKey\")",
         documentation="google-maps-workitem/index.html",
         category="google-maps-workitem",
         icon="GoogleMapsSpeedLimits.png",
         parameters=@WidParameter(name="PlaceIds",required=true),
         results=@WidResult(name="Speedlimits",runtimeType="com.google.maps.model.SpeedLimit"),
         mavenDepends=@WidMavenDepends(group="org.jbpm.contrib",artifact="google-maps-workitem",version="7.64.0.Final"),
         serviceInfo=@WidService(category="Google Maps",description="Interact with Google Maps Services",keywords="google,maps,speedlimit,places",action=@WidAction(title="Get speedlimits for places using Google Maps"),authinfo=@WidAuth(required=true,params="apiKey",paramsdescription="Google maps api key",referencesite="https://developers.google.com/maps/premium/previous-licenses/clientside/auth")))
    public class SpeedLimitsWorkitemHandler
    extends org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler
    • Field Summary

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

        handlingProcessId, handlingStrategy, logThrownException, retries
    • Constructor Detail

      • SpeedLimitsWorkitemHandler

        public SpeedLimitsWorkitemHandler​(com.google.maps.GeoApiContext geoApiContext)
    • 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 wi,
                                  org.kie.api.runtime.process.WorkItemManager wim)