@Wid(widfile="GoogleGetEventsDefinitions.wid",
name="GoogleGetEvents",
displayName="GoogleGetEvents",
defaultHandler="mvel: new org.jbpm.process.workitem.google.calendar.GetEventsWorkitemHandler()",
documentation="google-calendar-workitem/index.html",
parameters=@WidParameter(name="CalendarSummary",required=true),
results=@WidResult(name="AllEvents"),
mavenDepends=@WidMavenDepends(group="org.jbpm.contrib",artifact="google-calendar-workitem",version="7.10.0.Final"),
serviceInfo=@WidService(category="Google Calendar",description="Add and retrieve Calendars and Calendar Events from Google",keywords="google,calendar,events,get,all",action=@WidAction(title="Get all events from an existing Google Calendars")))
public class GetEventsWorkitemHandler
extends org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler
| Constructor and Description |
|---|
GetEventsWorkitemHandler(String appName,
String clentSecret) |
| Modifier and Type | Method and 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) |
com.google.api.services.calendar.model.Events |
getAllEvents(com.google.api.services.calendar.Calendar client,
String calendarId) |
String |
getCalendarIdBySummary(com.google.api.services.calendar.Calendar client,
String summary) |
void |
setAuth(GoogleCalendarAuth auth) |
public void executeWorkItem(org.kie.api.runtime.process.WorkItem workItem,
org.kie.api.runtime.process.WorkItemManager workItemManager)
public String getCalendarIdBySummary(com.google.api.services.calendar.Calendar client, String summary)
public com.google.api.services.calendar.model.CalendarList getAllCalendars(com.google.api.services.calendar.Calendar client)
public com.google.api.services.calendar.model.Events getAllEvents(com.google.api.services.calendar.Calendar client,
String calendarId)
throws IOException
IOExceptionpublic void abortWorkItem(org.kie.api.runtime.process.WorkItem wi,
org.kie.api.runtime.process.WorkItemManager wim)
public void setAuth(GoogleCalendarAuth auth)
Copyright © 2001–2018 jBPM dev team. All rights reserved.