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 java.lang.Object implements SignalEventReceivedBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected CommandExecutor
commandExecutor
protected java.lang.String
executionId
protected boolean
isTenantIdSet
protected java.lang.String
signalName
protected java.lang.String
tenantId
protected VariableMap
variables
-
Constructor Summary
Constructors Constructor Description SignalEventReceivedBuilderImpl(CommandExecutor commandExecutor, java.lang.String signalName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SignalEventReceivedBuilder
executionId(java.lang.String executionId)
Specify a single execution to deliver the signal to.java.lang.String
getExecutionId()
java.lang.String
getSignalName()
java.lang.String
getTenantId()
VariableMap
getVariables()
boolean
isTenantIdSet()
void
send()
Delivers the signal to waiting executions and process definitions.SignalEventReceivedBuilder
setVariables(java.util.Map<java.lang.String,java.lang.Object> variables)
Add the given variables to the triggered executions.SignalEventReceivedBuilder
tenantId(java.lang.String tenantId)
Specify a tenant to deliver the signal to.SignalEventReceivedBuilder
withoutTenantId()
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 java.lang.String signalName
-
executionId
protected java.lang.String executionId
-
tenantId
protected java.lang.String tenantId
-
isTenantIdSet
protected boolean isTenantIdSet
-
variables
protected VariableMap variables
-
-
Constructor Detail
-
SignalEventReceivedBuilderImpl
public SignalEventReceivedBuilderImpl(CommandExecutor commandExecutor, java.lang.String signalName)
-
-
Method Detail
-
setVariables
public SignalEventReceivedBuilder setVariables(java.util.Map<java.lang.String,java.lang.Object> variables)
Description copied from interface:SignalEventReceivedBuilder
Add the given variables to the triggered executions.- Specified by:
setVariables
in interfaceSignalEventReceivedBuilder
- Parameters:
variables
- a map of variables added to the executions- Returns:
- the builder
-
executionId
public SignalEventReceivedBuilder executionId(java.lang.String executionId)
Description copied from interface:SignalEventReceivedBuilder
Specify a single execution to deliver the signal to.- Specified by:
executionId
in interfaceSignalEventReceivedBuilder
- Parameters:
executionId
- the id of the process instance or the execution to deliver the signal to- Returns:
- the builder
-
tenantId
public SignalEventReceivedBuilder tenantId(java.lang.String tenantId)
Description copied from interface:SignalEventReceivedBuilder
Specify 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:
tenantId
in interfaceSignalEventReceivedBuilder
- Parameters:
tenantId
- the id of the tenant- Returns:
- the builder
-
withoutTenantId
public SignalEventReceivedBuilder withoutTenantId()
Description copied from interface:SignalEventReceivedBuilder
Specify 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:
withoutTenantId
in interfaceSignalEventReceivedBuilder
- Returns:
- the builder
-
send
public void send()
Description copied from interface:SignalEventReceivedBuilder
Delivers 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:
send
in interfaceSignalEventReceivedBuilder
-
getSignalName
public java.lang.String getSignalName()
-
getExecutionId
public java.lang.String getExecutionId()
-
getTenantId
public java.lang.String getTenantId()
-
isTenantIdSet
public boolean isTenantIdSet()
-
getVariables
public VariableMap getVariables()
-
-