/// <summary> /// /// </summary> public virtual void Signal(SignalCmd signalCmd) { //TODO: plan is to restrict access to events using a new security policy on events // - that's another piece of work though so for now no security here runtimeService.SignalEventReceived(signalCmd.Name, signalCmd.InputVariables); eventPublisher.PublishEvent(signalCmd); }
/// <summary> /// /// </summary> /// <param name="signalCmd"></param> public virtual void Receive(SignalCmd signalCmd) { if ((signalCmd.InputVariables == null) || (signalCmd.InputVariables.Count == 0)) { runtimeService.SignalEventReceived(signalCmd.Name); } else { runtimeService.SignalEventReceived(signalCmd.Name, signalCmd.InputVariables); } }
/// <summary> /// /// </summary> public virtual void Signal(SignalCmd signalCmd) { //TODO: plan is to restrict access to events using a new security policy on events // - that's another piece of work though so for now no security here if (string.IsNullOrWhiteSpace(signalCmd.ExecutionId) == false) { runtimeService.SignalEventReceived(signalCmd.Name, signalCmd.ExecutionId, signalCmd.InputVariables); } else { runtimeService.SignalEventReceivedWithTenantId(signalCmd.Name, signalCmd.InputVariables, signalCmd.TenantId); } eventPublisher.PublishEvent(signalCmd); }
/// <summary> /// /// </summary> /// <param name="signalCmd"></param> public virtual void BroadcastSignal(SignalCmd signalCmd) { IMessage <SignalCmd> message = MessageBuilder <SignalCmd> .WithPayload(signalCmd).Build(); resolver.ResolveDestination("signalEvent").Send <SignalCmd>(message); }
public virtual Task <bool> SendSignal(SignalCmd cmd) { processEngineWrapper.Signal(cmd); return(Task.FromResult(true)); }
/// <summary> /// /// </summary> /// <param name="signalCmd"></param> public virtual void SendSignal(SignalCmd signalCmd) { eventHandler.BroadcastSignal(signalCmd); }
public Task <ActionResult> SendSignal_(SignalCmd cmd) { throw new NotImplementedException(); }
public virtual Task <ActionResult> SendSignal(SignalCmd cmd) { processEngineWrapper.Signal(cmd); return(Task.FromResult <ActionResult>(Ok())); }
/// <inheritdoc /> public async Task <ActionResult> SendSignal(SignalCmd cmd) { return(await httpProxy.PostAsync <ActionResult>($"{serviceUrl}/signal", cmd).ConfigureAwait(false)); }