/** * Create a system handler for modules of {@link CompositeActionType} type. * * @param action parent action module instance. The action which has {@link CompositeActionType} type. * @param mt {@link CompositeActionType} instance of the parent module * @param mapModuleToHandler map of pairs child action module to its action handler * @param ruleUID UID of rule where the parent action is part of. */ public CompositeActionHandler(Action action, CompositeActionType mt, LinkedHashMap<Action, ActionHandler> mapModuleToHandler, String ruleUID) { super(action, mt, mapModuleToHandler); compositeOutputs = getCompositeOutputMap(moduleType.getOutputs()); }
CompositeActionType m = (CompositeActionType) mType; result = new CompositeActionType(mType.getUID(), mType.getConfigurationDescriptions(), mType.getLabel(), mType.getDescription(), mType.getTags(), mType.getVisibility(), m.getInputs(), m.getOutputs(), new ArrayList<>(m.getChildren()));