Package org.camunda.bpm.engine.impl
Class SignalEventReceivedBuilderImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.SignalEventReceivedBuilderImpl
-
- All Implemented Interfaces:
SignalEventReceivedBuilder
public class SignalEventReceivedBuilderImpl extends Object implements SignalEventReceivedBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutorcommandExecutorprotected StringexecutionIdprotected booleanisTenantIdSetprotected StringsignalNameprotected StringtenantIdprotected VariableMapvariables
-
Constructor Summary
Constructors Constructor Description SignalEventReceivedBuilderImpl(CommandExecutor commandExecutor, String signalName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SignalEventReceivedBuilderexecutionId(String executionId)Specify a single execution to deliver the signal to.StringgetExecutionId()StringgetSignalName()StringgetTenantId()VariableMapgetVariables()booleanisTenantIdSet()voidsend()Delivers the signal to waiting executions and process definitions.SignalEventReceivedBuildersetVariables(Map<String,Object> variables)Add the given variables to the triggered executions.SignalEventReceivedBuildertenantId(String tenantId)Specify a tenant to deliver the signal to.SignalEventReceivedBuilderwithoutTenantId()Specify that the signal can only be received on executions or process definitions which belongs to no tenant.
-
-
-
Field Detail
-
commandExecutor
protected final CommandExecutor commandExecutor
-
signalName
protected final String signalName
-
executionId
protected String executionId
-
tenantId
protected String tenantId
-
isTenantIdSet
protected boolean isTenantIdSet
-
variables
protected VariableMap variables
-
-
Constructor Detail
-
SignalEventReceivedBuilderImpl
public SignalEventReceivedBuilderImpl(CommandExecutor commandExecutor, String signalName)
-
-
Method Detail
-
setVariables
public SignalEventReceivedBuilder setVariables(Map<String,Object> variables)
Description copied from interface:SignalEventReceivedBuilderAdd the given variables to the triggered executions.- Specified by:
setVariablesin interfaceSignalEventReceivedBuilder- Parameters:
variables- a map of variables added to the executions- Returns:
- the builder
-
executionId
public SignalEventReceivedBuilder executionId(String executionId)
Description copied from interface:SignalEventReceivedBuilderSpecify a single execution to deliver the signal to.- Specified by:
executionIdin interfaceSignalEventReceivedBuilder- Parameters:
executionId- the id of the process instance or the execution to deliver the signal to- Returns:
- the builder
-
tenantId
public SignalEventReceivedBuilder tenantId(String tenantId)
Description copied from interface:SignalEventReceivedBuilderSpecify a tenant to deliver the signal to. The signal can only be received on executions or process definitions which belongs to the given tenant. Cannot be used in combination withSignalEventReceivedBuilder.executionId(String).- Specified by:
tenantIdin interfaceSignalEventReceivedBuilder- Parameters:
tenantId- the id of the tenant- Returns:
- the builder
-
withoutTenantId
public SignalEventReceivedBuilder withoutTenantId()
Description copied from interface:SignalEventReceivedBuilderSpecify that the signal can only be received on executions or process definitions which belongs to no tenant. Cannot be used in combination withSignalEventReceivedBuilder.executionId(String).- Specified by:
withoutTenantIdin interfaceSignalEventReceivedBuilder- Returns:
- the builder
-
send
public void send()
Description copied from interface:SignalEventReceivedBuilderDelivers the signal to waiting executions and process definitions. The notification and instantiation happen synchronously.
Note that the signal delivers to all tenants if no tenant is specified using
SignalEventReceivedBuilder.tenantId(String)orSignalEventReceivedBuilder.withoutTenantId().- Specified by:
sendin interfaceSignalEventReceivedBuilder
-
getSignalName
public String getSignalName()
-
getExecutionId
public String getExecutionId()
-
getTenantId
public String getTenantId()
-
isTenantIdSet
public boolean isTenantIdSet()
-
getVariables
public VariableMap getVariables()
-
-