Class GetCalendarsWorkitemHandler
- java.lang.Object
-
- org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler
-
- org.jbpm.process.workitem.google.calendar.GetCalendarsWorkitemHandler
-
- All Implemented Interfaces:
org.kie.api.runtime.process.WorkItemHandler
@Wid(widfile="GoogleGetCalendarsDefinitions.wid", name="GoogleGetCalendars", displayName="GoogleGetCalendars", defaultHandler="mvel: new org.jbpm.process.workitem.google.calendar.GetCalendarsWorkitemHandler(\"appName\", \"clentSecret\")", documentation="google-calendar-workitem/index.html", category="google-calendar-workitem", icon="GoogleGetCalendars.png", results=@WidResult(name="AllCalendars",runtimeType="com.google.api.services.calendar.model.CalendarList"), 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,get,all",action=@WidAction(title="Get all existing Google Calendars"),authinfo=@WidAuth(required=true,params={"appName","clentSecret"},paramsdescription={"Google app name","Google client secret"},referencesite="https://developers.google.com/calendar/auth"))) public class GetCalendarsWorkitemHandler extends org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler
-
-
Constructor Summary
Constructors Constructor Description GetCalendarsWorkitemHandler(String appName, String clentSecret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abortWorkItem(org.kie.api.runtime.process.WorkItem wi, org.kie.api.runtime.process.WorkItemManager wim)
void
executeWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager workItemManager)
com.google.api.services.calendar.model.CalendarList
getAllCalendars(com.google.api.services.calendar.Calendar client)
void
setAuth(GoogleCalendarAuth auth)
-
-
-
Method Detail
-
executeWorkItem
public void executeWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager workItemManager)
-
getAllCalendars
public com.google.api.services.calendar.model.CalendarList getAllCalendars(com.google.api.services.calendar.Calendar client)
-
abortWorkItem
public void abortWorkItem(org.kie.api.runtime.process.WorkItem wi, org.kie.api.runtime.process.WorkItemManager wim)
-
setAuth
public void setAuth(GoogleCalendarAuth auth)
-
-