@Override public CompositeActionType createInstance(Type type) { return new CompositeActionType(null, null, null, null, null); } }
@Override protected List<Action> getChildren() { return moduleType.getChildren(); } }
/** * 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()); }
result = new CompositeActionType(mType.getUID(), mType.getConfigurationDescriptions(), mType.getLabel(), mType.getDescription(), mType.getTags(), mType.getVisibility(), m.getInputs(), m.getOutputs(), new ArrayList<>(m.getChildren()));
if (at instanceof CompositeActionType) { List<Action> modules = ModuleI18nUtil.getLocalizedModules(i18nProvider, ((CompositeActionType) at).getChildren(), bundle, moduleTypeUID, ModuleTypeI18nUtil.MODULE_TYPE, locale); lat = new CompositeActionType(moduleTypeUID, lconfigDescriptions, llabel, ldescription, at.getTags(), at.getVisibility(), inputs, outputs, modules); } else {
public static CompositeActionTypeDTO map(final CompositeActionType actionType) { final CompositeActionTypeDTO actionTypeDto = map(actionType, new CompositeActionTypeDTO()); actionTypeDto.children = ActionDTOMapper.map(actionType.getChildren()); return actionTypeDto; }
public static ActionType map(CompositeActionTypeDTO actionTypeDto) { if (actionTypeDto.children == null || actionTypeDto.children.isEmpty()) { return new ActionType(actionTypeDto.uid, ConfigDescriptionDTOMapper.map(actionTypeDto.configDescriptions), actionTypeDto.label, actionTypeDto.description, actionTypeDto.tags, actionTypeDto.visibility, actionTypeDto.inputs, actionTypeDto.outputs); } else { return new CompositeActionType(actionTypeDto.uid, ConfigDescriptionDTOMapper.map(actionTypeDto.configDescriptions), actionTypeDto.label, actionTypeDto.description, actionTypeDto.tags, actionTypeDto.visibility, actionTypeDto.inputs, actionTypeDto.outputs, ActionDTOMapper.mapDto(actionTypeDto.children)); } }
.addAll(collectRecords(columnWidths, CHILDREN, ((CompositeActionType) moduleType).getChildren()));
List<Action> childModules = ((CompositeActionType) mt).getChildren(); LinkedHashMap<Action, ActionHandler> mapModuleToHandler = getChildHandlers(module.getId(), module.getConfiguration(), childModules, ruleUID);