public interface SignalEventReceivedBuilder
Modifier and Type | Method and Description |
---|---|
SignalEventReceivedBuilder |
executionId(String executionId)
Specify a single execution to deliver the signal to.
|
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.
|
SignalEventReceivedBuilder setVariables(Map<String,Object> variables)
variables
- a map of variables added to the executionsSignalEventReceivedBuilder executionId(String executionId)
executionId
- the id of the process instance or the execution to deliver the
signal toSignalEventReceivedBuilder tenantId(String tenantId)
executionId(String)
.tenantId
- the id of the tenantSignalEventReceivedBuilder withoutTenantId()
executionId(String)
.void send()
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 tenantId(String)
or withoutTenantId()
.
ProcessEngineException
- if a single execution is specified and no such execution exists
or has not subscribed to the signalAuthorizationException
- Permissions.UPDATE
permission on
Resources.PROCESS_INSTANCE
or no
Permissions.UPDATE_INSTANCE
permission on
Resources.PROCESS_DEFINITION
.Permissions.CREATE
permission on
Resources.PROCESS_INSTANCE
and no
Permissions.CREATE_INSTANCE
permission on
Resources.PROCESS_DEFINITION
.Copyright © 2017. All rights reserved.