// This file was generated by Mendix Modeler.
//
// WARNING: Only the following code will be retained when actions are regenerated:
// - the import list
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time you deploy the project.
// Special characters, e.g., é, ö, à, etc. are supported in comments.
package communitycommons.actions;
import com.mendix.systemwideinterfaces.core.IMendixObject;
import communitycommons.Misc;
import com.mendix.systemwideinterfaces.core.IContext;
import com.mendix.webui.CustomJavaAction;
/**
* Identical to executeMicroflowAsUser, but takes 1 argument
*/
public class executeMicroflowAsUser_1 extends CustomJavaAction<java.lang.String>
{
private java.lang.String microflowName;
private java.lang.String username;
private java.lang.Boolean sudoContext;
private java.lang.String arg1name;
private IMendixObject arg1value;
public executeMicroflowAsUser_1(IContext context, java.lang.String microflowName, java.lang.String username, java.lang.Boolean sudoContext, java.lang.String arg1name, IMendixObject arg1value)
{
super(context);
this.microflowName = microflowName;
this.username = username;
this.sudoContext = sudoContext;
this.arg1name = arg1name;
this.arg1value = arg1value;
}
@Override
public java.lang.String executeAction() throws Exception
{
// BEGIN USER CODE
Object res = Misc.executeMicroflowAsUser(getContext(), microflowName, username, sudoContext, arg1name, arg1value);
return res == null ? null : res.toString();
// END USER CODE
}
/**
* Returns a string representation of this action
*/
@Override
public java.lang.String toString()
{
return "executeMicroflowAsUser_1";
}
// BEGIN EXTRA CODE
// END EXTRA CODE
}