java action not implemented

0
@Override public String executeAction() throws Exception { // BEGIN USER CODE DefaultHttpClient httpClient = new DefaultHttpClient(); ResponseHandler<String> resonseHandler = new BasicResponseHandler(); HttpPost postMethod = new HttpPost("https://myApi"); String authorizationString = "Basic " + StringUtils.base64Encode("id" + ":" + "key"); postMethod.setHeader("Authorization", authorizationString); postMethod.setHeader( "Content-Type", "application/json"); postMethod.setEntity(new StringEntity("{\"name\" : \"dog\", \"date\" : 1356566, \"id\" : \"2555\"}")); //String response = httpClient.execute(postMethod,resonseHandler); //System.out.println("response :" + response); throw new com.mendix.systemwideinterfaces.MendixRuntimeException("Java action was not implemented"); // END USER CODE } i have a custom java action above to connect to an external server using post but when i trigger the java action using a microflow, i get an error: THE JAVA ACTION WAS NOT IMPLEMENTED... how can i make sure it gets implemented
asked
1 answers
1

You forgot to remove the last line in the USER CODE section, which states:

throw new com.mendix.systemwideinterfaces.MendixRuntimeException("Java action was not implemented");

This is a boiler plate statement and can be removed safely when you have added your own code in the USER CODE section.

answered