Error using the get_do() function on the State Class

I am attempting to use the get_do function under the State class however I receive an error when I use it that the Method doesn’t exist has anyone else received this error?

This is my code, where elem_ms is a Mode or State object:
involved_do_SysFnc = elem_ms.get_do()

This is the error which is returned:
org.eclipse.ease.ScriptExecutionException: Traceback (most recent call last):
File “workspace://Python4Capella/sample_scripts/”, line 187, in
module = _pyease_ast.Module(tree.body[:-1], type_ignores=[])
File “workspace://Python4Capella/sample_scripts/”, line 109, in getModesandStates
# Strings can be send directly
File “workspace://Python4Capella/simplified_api/”, line 1914, in get_do
File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\py4j-python_0.10.9.3-bnd-2odeag\src\py4j\”, line 1322, in call
answer, self.gateway_client, self.target_id,
File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\py4j-python_0.10.9.3-bnd-2odeag\src\py4j\”, line 332, in get_return_value
format(target_id, “.”, name, value))
py4j.protocol.Py4JError: An error occurred while calling o1734.getDo. Trace:
py4j.Py4JException: Method getDo([]) does not exist
at py4j.reflection.ReflectionEngine.getMethod(
at py4j.reflection.ReflectionEngine.getMethod(
at py4j.Gateway.invoke(
at py4j.commands.AbstractCommand.invokeMethod(
at py4j.commands.CallCommand.execute(
at py4j.ClientServerConnection.sendCommand(
at py4j.CallbackClient.sendCommand(
at py4j.CallbackClient.sendCommand(
at py4j.reflection.PythonProxyHandler.invoke(
at com.sun.proxy.$Proxy30.executeScript(Unknown Source)
at org.eclipse.ease.lang.python.py4j.internal.Py4jScriptEngine.internalExecute(
at org.eclipse.ease.lang.python.py4j.internal.Py4jScriptEngine.execute(
at org.eclipse.ease.AbstractScriptEngine.inject(

It seems the Java method is called getDoActivity().

You can replace the following line in the

return create_e_list(self.get_java_object().getDo(), AbstractAction)


return create_e_list(self.get_java_object().getDoActivity(), AbstractAction)

And they are supposed to return AbstractEvent and not AbstractAction so you might want to change it to:

return create_e_list(self.get_java_object().getDoActivity(), AbstractEvent)

The same return type should be used for State.get_entry() and State.get_exit().

I opened an issue:

Thank you for your help!