Class EventSubscriptionDelegateImpl
- java.lang.Object
-
- org.camunda.bpm.scenario.impl.delegate.AbstractDelegate<org.camunda.bpm.engine.runtime.EventSubscription>
-
- org.camunda.bpm.scenario.impl.delegate.EventSubscriptionDelegateImpl
-
- All Implemented Interfaces:
org.camunda.bpm.engine.runtime.EventSubscription,Deferrable,EventSubscriptionDelegate,ProcessInstanceAwareDelegate
public class EventSubscriptionDelegateImpl extends AbstractDelegate<org.camunda.bpm.engine.runtime.EventSubscription> implements EventSubscriptionDelegate
- Author:
- Martin Schimak
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.scenario.impl.delegate.AbstractDelegate
delegate
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEventSubscriptionDelegateImpl(WaitstateExecutable waitstate, org.camunda.bpm.engine.runtime.EventSubscription eventSubscription)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefer(String period, Deferred action)Defer a certain action for a certain period of time until it is executed.StringgetActivityId()DategetCreated()StringgetEventName()StringgetEventType()StringgetExecutionId()StringgetId()ProcessInstanceDelegategetProcessInstance()Get the process instance this object is associated to.StringgetProcessInstanceId()StringgetTenantId()static List<EventSubscriptionDelegate>newInstance(WaitstateExecutable waitstate, List<org.camunda.bpm.engine.runtime.EventSubscription> eventSubscriptions)static EventSubscriptionDelegatenewInstance(WaitstateExecutable waitstate, org.camunda.bpm.engine.runtime.EventSubscription eventSubscription)voidreceive()Receive the event the event subscription is waiting for.voidreceive(Map<String,Object> variables)Receive the event the event subscription is waiting for and deliver a map of received information to be stored as process instance variables.
-
-
-
Constructor Detail
-
EventSubscriptionDelegateImpl
protected EventSubscriptionDelegateImpl(WaitstateExecutable waitstate, org.camunda.bpm.engine.runtime.EventSubscription eventSubscription)
-
-
Method Detail
-
newInstance
public static EventSubscriptionDelegate newInstance(WaitstateExecutable waitstate, org.camunda.bpm.engine.runtime.EventSubscription eventSubscription)
-
newInstance
public static List<EventSubscriptionDelegate> newInstance(WaitstateExecutable waitstate, List<org.camunda.bpm.engine.runtime.EventSubscription> eventSubscriptions)
-
getProcessInstance
public ProcessInstanceDelegate getProcessInstance()
Description copied from interface:ProcessInstanceAwareDelegateGet the process instance this object is associated to.- Specified by:
getProcessInstancein interfaceProcessInstanceAwareDelegate- Returns:
- process instance this object is associated to
-
defer
public void defer(String period, Deferred action)
Description copied from interface:DeferrableDefer a certain action for a certain period of time until it is executed. Note that the action is just executed as long as *this* runtime object for which you defer the action still exists in the runtime database. If it disappears before the deferred action triggers, the action will never be executed.- Specified by:
deferin interfaceDeferrable- Parameters:
period- of time for which you want to defer an actionaction- which should be executed after the given period.
-
receive
public void receive()
Description copied from interface:EventSubscriptionDelegateReceive the event the event subscription is waiting for.- Specified by:
receivein interfaceEventSubscriptionDelegate
-
receive
public void receive(Map<String,Object> variables)
Description copied from interface:EventSubscriptionDelegateReceive the event the event subscription is waiting for and deliver a map of received information to be stored as process instance variables.- Specified by:
receivein interfaceEventSubscriptionDelegate
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.camunda.bpm.engine.runtime.EventSubscription
-
getEventType
public String getEventType()
- Specified by:
getEventTypein interfaceorg.camunda.bpm.engine.runtime.EventSubscription
-
getEventName
public String getEventName()
- Specified by:
getEventNamein interfaceorg.camunda.bpm.engine.runtime.EventSubscription
-
getExecutionId
public String getExecutionId()
- Specified by:
getExecutionIdin interfaceorg.camunda.bpm.engine.runtime.EventSubscription
-
getProcessInstanceId
public String getProcessInstanceId()
- Specified by:
getProcessInstanceIdin interfaceorg.camunda.bpm.engine.runtime.EventSubscription
-
getActivityId
public String getActivityId()
- Specified by:
getActivityIdin interfaceorg.camunda.bpm.engine.runtime.EventSubscription
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceorg.camunda.bpm.engine.runtime.EventSubscription
-
getCreated
public Date getCreated()
- Specified by:
getCreatedin interfaceorg.camunda.bpm.engine.runtime.EventSubscription
-
-