use of co.cask.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, ArtifactRepository artifactRepository, PluginInstantiator pluginInstantiator) {
Preconditions.checkArgument(action != null, "CustomAction is null.");
CustomActionSpecification spec = DefaultCustomActionConfigurer.configureAction(action, deployNamespace, artifactId, artifactRepository, pluginInstantiator);
return new WorkflowActionNode(spec.getName(), spec);
}
Aggregations