Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
            public virtual void notify(DelegateTask delegateTask)
            {
                DelegateExecution execution = delegateTask.Execution;

                execution.setVariable("varName", "varValue", "activityId");
                assertThat(execution.getVariableLocal("varName"), @is(notNullValue()));
            }
Exemplo n.º 3
0
        public virtual void notify(DelegateTask delegateTask)
        {
            ProcessEngineServices services       = delegateTask.ProcessEngineServices;
            RuntimeService        runtimeService = services.RuntimeService;

            runtimeService.setVariable(delegateTask.ExecutionId, "taskListenerCalled", true);
        }
Exemplo n.º 4
0
            public virtual void notify(DelegateTask delegateTask)
            {
                DelegateExecution execution   = delegateTask.Execution;
                string            newKeyValue = (string)execution.getVariable(BUSINESS_KEY_VARIABLE);

                execution.ProcessBusinessKey = newKeyValue;
            }
Exemplo n.º 5
0
 public virtual void notify(DelegateTask delegateTask)
 {
     delegateTask.Execution.setVariable("taskListenerVar", "working");
     if (someField != null)
     {
         delegateTask.Execution.setVariable("taskListenerField", someField.getValue(delegateTask));
     }
 }
Exemplo n.º 6
0
        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);
            }
        }
Exemplo n.º 7
0
        public virtual void notify(DelegateTask delegateTask)
        {
            int?counter = (int?)delegateTask.getVariable("taskListenerCounter");

            if (counter == null)
            {
                counter = 0;
            }
            delegateTask.setVariable("taskListenerCounter", ++counter);
        }
Exemplo n.º 8
0
 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);
     }
 }
Exemplo n.º 9
0
        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);
            }
        }
Exemplo n.º 10
0
        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);
                }
            }
        }
Exemplo n.º 11
0
 public virtual void notify(DelegateTask delegateTask)
 {
     delegateTask.addCandidateGroup("management");
 }
Exemplo n.º 12
0
 public virtual void notify(DelegateTask delegateTask)
 {
     expression.getValue(delegateTask);
 }
Exemplo n.º 13
0
 public virtual void notify(DelegateTask delegateTask)
 {
     delegateTask.setVariable("listener", "listener-notified");
 }
Exemplo n.º 14
0
 public virtual void notify(DelegateTask delegateTask)
 {
     delegateTask.complete();
 }
Exemplo n.º 15
0
 public virtual void notify(DelegateTask delegateTask)
 {
     logAuthentication(delegateTask);
     executeCommand(delegateTask);
 }
Exemplo n.º 16
0
        public virtual void notify(DelegateTask delegateTask)
        {
            string assignee = (string)delegateTask.getVariable("assignee");

            delegateTask.Assignee = assignee;
        }
Exemplo n.º 17
0
 public virtual void notify(DelegateTask delegateTask)
 {
     logAuthentication(delegateTask);
     logInstancesCount(delegateTask);
 }
Exemplo n.º 18
0
 public virtual void notify(DelegateTask delegateTask)
 {
     delegateTask.Assignee = "demo";
 }
Exemplo n.º 19
0
 public virtual void calledInExpression(DelegateTask task, string eventName)
 {
     task.setVariable("calledInExpression", task.Name + "-" + eventName);
 }
Exemplo n.º 20
0
 public virtual void notify(DelegateTask delegateTask)
 {
     delegateTask.Description = "TaskCreateListener is listening!";
 }
Exemplo n.º 21
0
 public virtual void notify(DelegateTask delegateTask)
 {
     TaskDeleteListener.eventCounter++;
 }
Exemplo n.º 22
0
 protected internal abstract HistoryEvent createHistoryEvent(DelegateTask task, ExecutionEntity execution);
Exemplo n.º 23
0
	  public virtual void notify(DelegateTask delegateTask)
	  {
		string variable = businessProcess.getVariable(VARIABLE_NAME);
		assertEquals(INITIAL_VALUE, variable);
		businessProcess.setVariable(VARIABLE_NAME, UPDATED_VALUE);
	  }
Exemplo n.º 24
0
 public virtual void notify(DelegateTask delegateTask)
 {
     delegateTask.setVariableLocal("var", "foo");
 }
Exemplo n.º 25
0
 public void notify(DelegateTask delegateTask)
 {
     delegateTask.setVariable(delegateTask.EventName, true);
 }
Exemplo n.º 26
0
 public virtual void notify(DelegateTask delegateTask)
 {
     modelInstance = delegateTask.BpmnModelInstance;
     userTask      = delegateTask.BpmnModelElementInstance;
 }
Exemplo n.º 27
0
 public void doAssert(DelegateTask task)
 {
     assertThat(task.TenantId, @is(expectedTenantId));
 }
Exemplo n.º 28
0
 public TaskListenerInvocation(TaskListener executionListenerInstance, DelegateTask delegateTask) : this(executionListenerInstance, delegateTask, null)
 {
 }
Exemplo n.º 29
0
 public virtual void notify(DelegateTask delegateTask)
 {
     delegateTask.setVariable("calledThroughNotify", delegateTask.Name + "-notify");
 }