Example #1
0
        public override void execute(PerfTestRunContext context)
        {
            IDictionary <string, object> variables = new Dictionary <string, object>();

            if (processVariables != null)
            {
//JAVA TO C# CONVERTER TODO TASK: There is no .NET Dictionary equivalent to the Java 'putAll' method:
                variables.putAll(processVariables);
            }
            // unique run id as variable
            variables[RUN_ID] = context.getVariable(RUN_ID);

            ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(processDefinitionKey, variables);

            context.setVariable(PROCESS_INSTANCE_ID, processInstance.Id);
        }
Example #2
0
        public override void execute(PerfTestRunContext context)
        {
            string taskId = context.getVariable(taskIdKey);

            taskService.complete(taskId, processVariables);
        }