05-12-2016 03:46 AM
05-22-2016 08:49 PM
05-23-2016 02:18 AM
05-23-2016 02:19 AM
Subscribing to a signal is most likely not going to be helpful, since those 'subscribe-able signals' are expected to be thrown from _within_ the engine, by some (other) running instance.
/**
* Notifies the process engine that a signal event of name 'signalName' has been received. This method delivers the signal to a single execution, being the execution referenced by 'executionId'. The
* waiting execution is notified synchronously.
*
* @param signalName
* the name of the signal event
* @param executionId
* the id of the execution to deliver the signal to
* @param processVariables
* a map of variables added to the execution(s)
* @throws ActivitiObjectNotFoundException
* if no such execution exists.
* @throws ActivitiException
* if the execution has not subscribed to the signal
*/
void signalEventReceived(String signalName, String executionId, Map<String, Object> processVariables);
05-24-2016 12:01 AM
Subscribing to signals can help. Signals (and messages) can be invoked outside of the engine.
05-24-2016 03:20 PM
public void execute(DelegateExecution execution) {
ExecutionEntity executionEntity = (ExecutionEntity) execution;
Context.getCommandContext().getEventSubscriptionEntityManager().insertSignalEvent(signalEventDefinition, signal, executionEntity);
}
05-24-2016 03:20 PM
public void execute(DelegateExecution execution) {
ExecutionEntity executionEntity = (ExecutionEntity) execution;
Context.getCommandContext().getEventSubscriptionEntityManager().insertSignalEvent(signalEventDefinition, signal, executionEntity);
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.