@Wid(widfile="GoogleAddEventDefinitions.wid",name="GoogleAddEvent",displayName="GoogleAddEvent",defaultHandler="mvel: new org.jbpm.process.workitem.google.calendar.AddEventWorkitemHandler(\"appName\", \"clentSecret\")",documentation="google-calendar-workitem/index.html",category="google-calendar-workitem",icon="GoogleAddEvent.png",parameters={@WidParameter(name="CalendarSummary",required=true),@WidParameter(name="EventSummary",required=true),@WidParameter(name="EventStart"),@WidParameter(name="EventEnd"),@WidParameter(name="EventAttendees"),@WidParameter(name="EventCreator")},results=@WidResult(name="Event",runtimeType="com.google.api.services.calendar.model.Event"),mavenDepends=@WidMavenDepends(group="org.jbpm.contrib",artifact="google-calendar-workitem",version="7.47.0-SNAPSHOT"),serviceInfo=@WidService(category="Google Calendar",description="Add and retrieve Calendars and Calendar Events from Google",keywords="google,calendar,add,event",action=@WidAction(title="Add a new event to existing 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 AddEventWorkitemHandler
extends org.jbpm.process.workitem.core.AbstractLogOrThrowWorkItemHandler
Constructor and Description |
---|
AddEventWorkitemHandler(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) |
com.google.api.services.calendar.model.Event |
addEvent(com.google.api.services.calendar.Calendar client,
String calendarId,
String paramEventSummary,
String paramEventStart,
String paramEventEnd,
String paramEventAttendees,
String paramEventCreator) |
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) |
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 com.google.api.services.calendar.model.Event addEvent(com.google.api.services.calendar.Calendar client, String calendarId, String paramEventSummary, String paramEventStart, String paramEventEnd, String paramEventAttendees, String paramEventCreator) throws Exception
Exception
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 void abortWorkItem(org.kie.api.runtime.process.WorkItem wi, org.kie.api.runtime.process.WorkItemManager wim)
public void setAuth(GoogleCalendarAuth auth)
Copyright © 2001–2020 jBPM dev team. All rights reserved.