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.

1 Like

Those are properties in the vcProcessRoutine.

In your case you can get the “Counter” property value like this:
counterValue = statement.ParentRoutine.Counter