How to get a Variable from the ProcessExecutor in Python

Hello everyone,

probably a very simple question.
How can I get the Value of a Variable from the Process Executor in Python?

Unbenannt

I tried to get the Counter value with the following code, but it doesn´t work.

def OnStatementExecute(executor, statement):

  • print executor.getProperty(“Counter”).Value*

Thank you in advance.