Package org.camunda.bpm.engine.impl
Class SignalEventReceivedBuilderImpl
java.lang.Object
org.camunda.bpm.engine.impl.SignalEventReceivedBuilderImpl
- All Implemented Interfaces:
SignalEventReceivedBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CommandExecutor
protected String
protected boolean
protected final String
protected String
protected VariableMap
-
Constructor Summary
ConstructorDescriptionSignalEventReceivedBuilderImpl
(CommandExecutor commandExecutor, String signalName) -
Method Summary
Modifier and TypeMethodDescriptionexecutionId
(String executionId) Specify a single execution to deliver the signal to.boolean
void
send()
Delivers the signal to waiting executions and process definitions.setVariables
(Map<String, Object> variables) Add the given variables to the triggered executions.Specify a tenant to deliver the signal to.Specify that the signal can only be received on executions or process definitions which belongs to no tenant.
-
Field Details
-
commandExecutor
-
signalName
-
executionId
-
tenantId
-
isTenantIdSet
protected boolean isTenantIdSet -
variables
-
-
Constructor Details
-
SignalEventReceivedBuilderImpl
-
-
Method Details
-
setVariables
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
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
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
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
-
getExecutionId
-
getTenantId
-
isTenantIdSet
public boolean isTenantIdSet() -
getVariables
-