Package org.apache.unomi.sfdc.actions
Class CreateOrUpdateLeadAction
- java.lang.Object
-
- org.apache.unomi.sfdc.actions.CreateOrUpdateLeadAction
-
- All Implemented Interfaces:
ActionExecutor
public class CreateOrUpdateLeadAction extends Object implements ActionExecutor
Creates or updates a Salesforce lead from the corresponding Apache Unomi profile (using a common identifier field, usually the email address)
-
-
Constructor Summary
Constructors Constructor Description CreateOrUpdateLeadAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
execute(Action action, Event event)
void
setSfdcService(SFDCService sfdcService)
-
-
-
Method Detail
-
setSfdcService
public void setSfdcService(SFDCService sfdcService)
-
execute
public int execute(Action action, Event event)
Description copied from interface:ActionExecutor
- Specified by:
execute
in interfaceActionExecutor
- Parameters:
action
- theAction
to executeevent
- theEvent
that triggered the action- Returns:
- an integer status corresponding to what happened as defined by public constants of
EventService
-
-