public class AddEventFunction extends AbstractExplorerNodeWorkflowComponent implements com.opensymphony.workflow.FunctionProvider
Modifier and Type | Field and Description |
---|---|
protected CurrentUserProvider |
_currentUserProvider
The current user provider.
|
protected ObservationManager |
_observationManager
Observer manager.
|
protected AmetysObjectResolver |
_resolver
The Ametys object resolver
|
EXPLORERNODE_KEY
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
Constructor and Description |
---|
AddEventFunction() |
Modifier and Type | Method and Description |
---|---|
protected void |
_initializeWorkflow(ModifiableCalendarEvent event,
Map transientVars,
Map<String,Object> jsParameters)
Initialize the workflow store
|
protected void |
_notifyListeners(CalendarEvent event)
Notify listeners that the event has been created
|
protected void |
_setEventData(ModifiableCalendarEvent event,
Map transientVars,
Map<String,Object> jsParameters)
Set the event data
|
void |
execute(Map transientVars,
Map args,
com.opensymphony.module.propertyset.PropertySet ps) |
void |
service(ServiceManager smanager) |
getExplorerNode
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser
protected AmetysObjectResolver _resolver
protected ObservationManager _observationManager
protected CurrentUserProvider _currentUserProvider
public AddEventFunction()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class AbstractWorkflowComponent
ServiceException
public void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
execute
in interface com.opensymphony.workflow.FunctionProvider
com.opensymphony.workflow.WorkflowException
protected void _initializeWorkflow(ModifiableCalendarEvent event, Map transientVars, Map<String,Object> jsParameters) throws com.opensymphony.workflow.WorkflowException
event
- The eventtransientVars
- The transient variablesjsParameters
- The JS parameterscom.opensymphony.workflow.WorkflowException
- if an error occurredprotected void _setEventData(ModifiableCalendarEvent event, Map transientVars, Map<String,Object> jsParameters) throws com.opensymphony.workflow.WorkflowException
event
- The eventtransientVars
- The transient variablesjsParameters
- The JS parameterscom.opensymphony.workflow.WorkflowException
- if an error occurredprotected void _notifyListeners(CalendarEvent event)
event
- The created event