protected internal virtual void PlanTransactionDependentExecutionListener(IListenerFactory listenerFactory, IExecutionEntity execution, ITransactionDependentExecutionListener executionListener, ActivitiListener activitiListener) { IDictionary <string, object> executionVariablesToUse = execution.Variables; ICustomPropertiesResolver customPropertiesResolver = CreateCustomPropertiesResolver(activitiListener); IDictionary <string, object> customPropertiesMapToUse = InvokeCustomPropertiesResolver(execution, customPropertiesResolver); TransactionDependentExecutionListenerExecutionScope scope = new TransactionDependentExecutionListenerExecutionScope(execution.ProcessInstanceId, execution.Id, execution.CurrentFlowElement, executionVariablesToUse, customPropertiesMapToUse); AddTransactionListener(activitiListener, new ExecuteExecutionListenerTransactionListener(executionListener, scope)); }
public ExecuteExecutionListenerTransactionListener(ITransactionDependentExecutionListener listener, TransactionDependentExecutionListenerExecutionScope scope) { this.listener = listener; this.scope = scope; }