public class SignalEventReceivedBuilderImpl extends Object implements SignalEventReceivedBuilder
| Modifier and Type | Field and Description |
|---|---|
protected CommandExecutor |
commandExecutor |
protected String |
executionId |
protected boolean |
isTenantIdSet |
protected String |
signalName |
protected String |
tenantId |
protected VariableMap |
variables |
| Constructor and Description |
|---|
SignalEventReceivedBuilderImpl(CommandExecutor commandExecutor,
String signalName) |
| Modifier and Type | Method and Description |
|---|---|
SignalEventReceivedBuilder |
executionId(String executionId)
Specify a single execution to deliver the signal to.
|
String |
getExecutionId() |
String |
getSignalName() |
String |
getTenantId() |
VariableMap |
getVariables() |
boolean |
isTenantIdSet() |
void |
send()
Delivers the signal to waiting executions and process definitions.
|
SignalEventReceivedBuilder |
setVariables(Map<String,Object> variables)
Add the given variables to the triggered executions.
|
SignalEventReceivedBuilder |
tenantId(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.
|
protected final CommandExecutor commandExecutor
protected final String signalName
protected String executionId
protected String tenantId
protected boolean isTenantIdSet
protected VariableMap variables
public SignalEventReceivedBuilderImpl(CommandExecutor commandExecutor, String signalName)
public SignalEventReceivedBuilder setVariables(Map<String,Object> variables)
SignalEventReceivedBuildersetVariables in interface SignalEventReceivedBuildervariables - a map of variables added to the executionspublic SignalEventReceivedBuilder executionId(String executionId)
SignalEventReceivedBuilderexecutionId in interface SignalEventReceivedBuilderexecutionId - the id of the process instance or the execution to deliver the
signal topublic SignalEventReceivedBuilder tenantId(String tenantId)
SignalEventReceivedBuilderSignalEventReceivedBuilder.executionId(String).tenantId in interface SignalEventReceivedBuildertenantId - the id of the tenantpublic SignalEventReceivedBuilder withoutTenantId()
SignalEventReceivedBuilderSignalEventReceivedBuilder.executionId(String).withoutTenantId in interface SignalEventReceivedBuilderpublic void send()
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) or SignalEventReceivedBuilder.withoutTenantId().
send in interface SignalEventReceivedBuilderpublic String getSignalName()
public String getExecutionId()
public String getTenantId()
public boolean isTenantIdSet()
public VariableMap getVariables()
Copyright © 2022. All rights reserved.