Class AddCalendarWorkitemHandler

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

    @Wid(widfile="GoogleAddCalendarDefinitions.wid",
         name="GoogleAddCalendar",
         displayName="GoogleAddCalendar",
         defaultHandler="mvel: new org.jbpm.process.workitem.google.calendar.AddCalendarWorkitemHandler(\"appName\", \"clentSecret\")",
         documentation="google-calendar-workitem/index.html",
         category="google-calendar-workitem",
         icon="GoogleAddCalendar.png",
         parameters=@WidParameter(name="CalendarSummary",required=true),
         results=@WidResult(name="Calendar",runtimeType="com.google.api.services.calendar.model.Calendar"),
         mavenDepends=@WidMavenDepends(group="org.jbpm.contrib",artifact="google-calendar-workitem",version="7.59.1-SNAPSHOT"),
         serviceInfo=@WidService(category="Google Calendar",description="Add and retrieve Calendars and Calendar Events from Google",keywords="google,calendar,add",action=@WidAction(title="Add a new Google Calendar"),authinfo=@WidAuth(required=true,params={"appName","clentSecret"},paramsdescription={"Google app name","Google client secret"},referencesite="https://developers.google.com/calendar/auth")))
    public class AddCalendarWorkitemHandler
    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

      • AddCalendarWorkitemHandler

        public AddCalendarWorkitemHandler​(String appName,
                                          String clentSecret)
    • Method Detail

      • executeWorkItem

        public void executeWorkItem​(org.kie.api.runtime.process.WorkItem workItem,
                                    org.kie.api.runtime.process.WorkItemManager workItemManager)
      • addCalendar

        public com.google.api.services.calendar.model.Calendar addCalendar​(com.google.api.services.calendar.Calendar client,
                                                                           String calendarSummary)
                                                                    throws IOException
        Throws:
        IOException
      • abortWorkItem

        public void abortWorkItem​(org.kie.api.runtime.process.WorkItem wi,
                                  org.kie.api.runtime.process.WorkItemManager wim)