Java Action - Mendix Forum

Java Action

0

How to create a object in java action after deployed into eclipse?

asked
3 answers
1

Creating an object works as it works in java.

Clasname objectname = new Classname(); //something like this

But I agree, the apidocs may also help.

answered
1

See https://docs.mendix.com/apidocs-mxsdk/apidocs/ for reference.

 

answered
-2

IMO the easiest way to do this is to call a microflow from java that created the object for you.

Alternatively you can use

Core.instantiate(getContext(), "MyFirstModule.Entity")

-Andrej

answered