This content has been marked as final.
Show 1 reply
-
1. Re: How to replace operations-dsl.mvel
jimmy001 Nov 24, 2016 3:01 AM (in response to jimmy001)A small update:
I could find the place where it is loaded - MVELLifeCycleManager
public static Map<Operation, List<OperationCommand>> initMVELOperations() { Map<String, Object> vars = new HashMap<String, Object>(); // Search operations-dsl.mvel, if necessary using superclass if TaskService is subclassed InputStream is = null; // for (Class<?> c = getClass(); c != null; c = c.getSuperclass()) { is = MVELLifeCycleManager.class.getResourceAsStream("/operations-dsl.mvel"); // if (is != null) { // break; // } //} if (is == null) { throw new RuntimeException("Unable To initialise TaskService, could not find Operations DSL"); } Reader reader = new InputStreamReader(is); try { return (Map<Operation, List<OperationCommand>>) eval(toString(reader), vars); } catch (IOException e) { throw new RuntimeException("Unable To initialise TaskService, could not load Operations DSL"); } }