public virtual void notify(DelegateTask delegateTask) { delegateTask.Execution.setVariable("greeting", "Hello from " + greeter.getValue(delegateTask.Execution)); delegateTask.Execution.setVariable("shortName", shortName.getValue(delegateTask.Execution)); delegateTask.setVariableLocal("myTaskVariable", "test"); }
public virtual void notify(DelegateTask delegateTask) { DelegateExecution execution = delegateTask.Execution; execution.setVariable("varName", "varValue", "activityId"); assertThat(execution.getVariableLocal("varName"), @is(notNullValue())); }
public virtual void notify(DelegateTask delegateTask) { ProcessEngineServices services = delegateTask.ProcessEngineServices; RuntimeService runtimeService = services.RuntimeService; runtimeService.setVariable(delegateTask.ExecutionId, "taskListenerCalled", true); }
public virtual void notify(DelegateTask delegateTask) { DelegateExecution execution = delegateTask.Execution; string newKeyValue = (string)execution.getVariable(BUSINESS_KEY_VARIABLE); execution.ProcessBusinessKey = newKeyValue; }
public virtual void notify(DelegateTask delegateTask) { delegateTask.Execution.setVariable("taskListenerVar", "working"); if (someField != null) { delegateTask.Execution.setVariable("taskListenerField", someField.getValue(delegateTask)); } }
public virtual void notify(DelegateTask delegateTask) { PerfTestRunContext perfTestRunContext = org.camunda.bpm.qa.performance.engine.framework.PerfTestRunContext_Fields.currentContext.get(); if (perfTestRunContext != null) { perfTestRunContext.setVariable(TASK_ID, delegateTask.Id); } }
public virtual void notify(DelegateTask delegateTask) { int?counter = (int?)delegateTask.getVariable("taskListenerCounter"); if (counter == null) { counter = 0; } delegateTask.setVariable("taskListenerCounter", ++counter); }
protected internal override HistoryEvent createHistoryEvent(DelegateTask task, ExecutionEntity execution) { if (historyLevel.isHistoryEventProduced(HistoryEventTypes.ACTIVITY_INSTANCE_UPDATE, execution)) { return(eventProducer.createActivityInstanceUpdateEvt(execution, task)); } else { return(null); } }
public virtual void notify(DelegateTask delegateTask) { if (this.expression != null && this.expression.getValue(delegateTask) != null) { // get the expression variable string expression = this.expression.getValue(delegateTask).ToString(); // this expression will be evaluated when completing the task delegateTask.setVariableLocal("validationRule", expression); } }
public virtual void notify(DelegateTask task) { // get the event handler //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.engine.impl.history.handler.HistoryEventHandler historyEventHandler = org.camunda.bpm.engine.impl.context.Context.getProcessEngineConfiguration().getHistoryEventHandler(); HistoryEventHandler historyEventHandler = Context.ProcessEngineConfiguration.HistoryEventHandler; ExecutionEntity execution = ((TaskEntity)task).getExecution(); if (execution != null) { // delegate creation of the history event to the producer HistoryEvent historyEvent = createHistoryEvent(task, execution); if (historyEvent != null) { // pass the event to the handler historyEventHandler.handleEvent(historyEvent); } } }
public virtual void notify(DelegateTask delegateTask) { delegateTask.addCandidateGroup("management"); }
public virtual void notify(DelegateTask delegateTask) { expression.getValue(delegateTask); }
public virtual void notify(DelegateTask delegateTask) { delegateTask.setVariable("listener", "listener-notified"); }
public virtual void notify(DelegateTask delegateTask) { delegateTask.complete(); }
public virtual void notify(DelegateTask delegateTask) { logAuthentication(delegateTask); executeCommand(delegateTask); }
public virtual void notify(DelegateTask delegateTask) { string assignee = (string)delegateTask.getVariable("assignee"); delegateTask.Assignee = assignee; }
public virtual void notify(DelegateTask delegateTask) { logAuthentication(delegateTask); logInstancesCount(delegateTask); }
public virtual void notify(DelegateTask delegateTask) { delegateTask.Assignee = "demo"; }
public virtual void calledInExpression(DelegateTask task, string eventName) { task.setVariable("calledInExpression", task.Name + "-" + eventName); }
public virtual void notify(DelegateTask delegateTask) { delegateTask.Description = "TaskCreateListener is listening!"; }
public virtual void notify(DelegateTask delegateTask) { TaskDeleteListener.eventCounter++; }
protected internal abstract HistoryEvent createHistoryEvent(DelegateTask task, ExecutionEntity execution);
public virtual void notify(DelegateTask delegateTask) { string variable = businessProcess.getVariable(VARIABLE_NAME); assertEquals(INITIAL_VALUE, variable); businessProcess.setVariable(VARIABLE_NAME, UPDATED_VALUE); }
public virtual void notify(DelegateTask delegateTask) { delegateTask.setVariableLocal("var", "foo"); }
public void notify(DelegateTask delegateTask) { delegateTask.setVariable(delegateTask.EventName, true); }
public virtual void notify(DelegateTask delegateTask) { modelInstance = delegateTask.BpmnModelInstance; userTask = delegateTask.BpmnModelElementInstance; }
public void doAssert(DelegateTask task) { assertThat(task.TenantId, @is(expectedTenantId)); }
public TaskListenerInvocation(TaskListener executionListenerInstance, DelegateTask delegateTask) : this(executionListenerInstance, delegateTask, null) { }
public virtual void notify(DelegateTask delegateTask) { delegateTask.setVariable("calledThroughNotify", delegateTask.Name + "-notify"); }