private String getActionTypeInitialize() { return StepAction.super.getActionType(); }
private Map<String, String> getMetadataInitialize() { return StepAction.super.getMetadata(); }
EquivContext context = identifier(parentContext, another.getName(), another.getClass()); context.setFail(ONE_NULL, NULL, NOT_NULL); return false; EquivContext context = identifier(parentContext, one.getName(), one.getClass()); if (another == null) { context.setFail(ANOTHER_NULL, NOT_NULL, NULL); StepDescriptor myDescriptor = one.getDescriptor(); StepDescriptor anotherDescriptor = another.getDescriptor(); if (myDescriptor == null) { if (anotherDescriptor != null) { pair(one.getActionType(), another.getActionType(), "action-type"), pair(one.getDescription(), another.getDescription(), "description"), pair(one.getPattern(), another.getPattern(), "pattern"), pair(one.getId(), another.getId(), "id"), pair(one.getName(), another.getName(), "name"), pair(one.getTags(), another.getTags(), "tags"), pair(one.getMetadata(), another.getMetadata(), "metadata"));
); } else { Action newAction = newExtension.findActionById(action.getId().get()).orElse(null); if (newAction == null) { messages.add( ); } else { messages.addAll(computePropertiesDiffMessages(supplier, action.getProperties(), newAction.getProperties())); messages.addAll(computeMissingMandatoryPropertiesMessages(supplier, newAction.getProperties(), step.getConfiguredProperties())); messages.addAll(computeSecretsUpdateMessages(supplier, newAction.getProperties(), step.getConfiguredProperties()));
StepAction instance = (StepAction) object; if ((bits & 0x1L) == 0) { actionType(instance.getActionType()); bits |= 0x1L; StepDescriptor descriptorValue = instance.getDescriptor(); if (descriptorValue != null) { descriptor(descriptorValue);
private void loadFragments(Step step) { if (StepKind.extension != step.getStepKind()) { return; } final StepAction action = step.getAction().filter(StepAction.class::isInstance).map(StepAction.class::cast).get(); if (action.getDescriptor().getKind() == StepAction.Kind.ENDPOINT) { final CamelContext context = getContext(); final String resource = action.getDescriptor().getResource(); if (ObjectHelper.isNotEmpty(resource) && resources.add(resource)) { final Object instance = mandatoryLoadResource(context, resource); final RoutesDefinition definitions = mandatoryConvertToRoutesDefinition(resource, instance); LOGGER.debug("Resolved resource: {} as {}", resource, instance.getClass()); try { context.addRouteDefinitions(definitions.getRoutes()); } catch (Exception e) { throw new IllegalStateException(e); } } } }
final CamelContext context = builder.getContext(); if (action.getDescriptor().getKind() == StepAction.Kind.ENDPOINT) { for (Map.Entry<String, String> entry: properties.entrySet()) { route.setHeader(entry.getKey(), builder.constant(entry.getValue())); route = route.to(action.getDescriptor().getEntrypoint()); } else if (action.getDescriptor().getKind() == StepAction.Kind.BEAN) { String method = null; String function = action.getDescriptor().getEntrypoint(); String options = null; } else if (action.getDescriptor().getKind() == StepAction.Kind.STEP) { final String target = action.getDescriptor().getEntrypoint(); final TypeConverter converter = context.getTypeConverter();