use of io.cdap.cdap.api.customaction.CustomActionSpecification in project cdap by caskdata.
the class WorkflowNodeCreator method createWorkflowCustomActionNode.
static WorkflowNode createWorkflowCustomActionNode(CustomAction action, Id.Namespace deployNamespace, Id.Artifact artifactId, PluginFinder pluginFinder, PluginInstantiator pluginInstantiator, @Nullable AppDeploymentRuntimeInfo runtimeInfo, FeatureFlagsProvider featureFlagsProvider) {
Preconditions.checkArgument(action != null, "CustomAction is null.");
CustomActionSpecification spec = DefaultCustomActionConfigurer.configureAction(action, deployNamespace, artifactId, pluginFinder, pluginInstantiator, runtimeInfo, featureFlagsProvider);
return new WorkflowActionNode(spec.getName(), spec);
}
Aggregations