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 org.camunda.bpm.engine.variable.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() |
org.camunda.bpm.engine.variable.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 org.camunda.bpm.engine.variable.VariableMap variables
public SignalEventReceivedBuilderImpl(CommandExecutor commandExecutor, String signalName)
public SignalEventReceivedBuilder setVariables(Map<String,Object> variables)
SignalEventReceivedBuilder
setVariables
in interface SignalEventReceivedBuilder
variables
- a map of variables added to the executionspublic SignalEventReceivedBuilder executionId(String executionId)
SignalEventReceivedBuilder
executionId
in interface SignalEventReceivedBuilder
executionId
- the id of the process instance or the execution to deliver the
signal topublic SignalEventReceivedBuilder tenantId(String tenantId)
SignalEventReceivedBuilder
SignalEventReceivedBuilder.executionId(String)
.tenantId
in interface SignalEventReceivedBuilder
tenantId
- the id of the tenantpublic SignalEventReceivedBuilder withoutTenantId()
SignalEventReceivedBuilder
SignalEventReceivedBuilder.executionId(String)
.withoutTenantId
in interface SignalEventReceivedBuilder
public void send()
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)
or SignalEventReceivedBuilder.withoutTenantId()
.
send
in interface SignalEventReceivedBuilder
public String getSignalName()
public String getExecutionId()
public String getTenantId()
public boolean isTenantIdSet()
public org.camunda.bpm.engine.variable.VariableMap getVariables()
Copyright © 2017. All rights reserved.